Project

General

Profile

Actions

Bug #83639

open

CKEditor: Using "data-cke-pa-onclick" to generate onclick attribute

Added by Alessandro Schmitz almost 7 years ago. Updated over 6 years ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
RTE (rtehtmlarea + ckeditor)
Target version:
-
Start date:
2018-01-22
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
8
PHP Version:
7.0
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Following looks like a bug to me:

I wanted to add an onclick attribute to an <a> tag.
As CKEditor uses onclick-Events it's recommend (or even necessary?) to use data attributes like

data-cke-pa-onclick

which should be parsed on output.

In the backend this gets parsed on save, so after saving the record I have <a onclick="something">.
Once I save this record then again (e.g. editors change some text in this record), the onclick gets removed as it's not allowed here.

Actions #1

Updated by Susanne Moog almost 7 years ago

  • Category set to RTE (rtehtmlarea + ckeditor)
Actions #2

Updated by Alessandro Schmitz over 6 years ago

A workarround currently is to allow the onclick attribute via YAML configuration with:

    typo3link:
      additionalAttributes:
        - onclick
Actions

Also available in: Atom PDF