Opened 9 years ago
Last modified 9 years ago
#13694 review Bug
Link dialog removes onclick attribute
Reported by: | Henning | Owned by: | kkrzton |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 3.0 |
Keywords: | Cc: |
Description
Steps to reproduce
- go to CKEditor demo http://ckeditor.com/demo#standard
- switch to source code mode
- remove the existing source
- enter
<a href="www.google.de" onclick="alert('onclick');" >my link with onclick</a>
- switch to wysiwyg mode
- doubleclick the link
- in the link dialog, click the OK button
Expected result
onclick attribute is preserved without change.
Actual result
onclick attribute is removed
Other details (browser, OS, CKEditor version, installed plugins)
I guess that CKEditor removes the onClick attribute because it might have been generated by CKEditor before via the Target option _<popup window>_. But CKEditors link dialog should remove the onClick only if the target option _<popup window>_ was set when the link dialog was opened.
Change History (3)
comment:1 Changed 9 years ago by
Status: | new → confirmed |
---|---|
Version: | 4.4.6 → 3.0 |
comment:2 Changed 9 years ago by
Owner: | set to kkrzton |
---|---|
Status: | confirmed → assigned |
comment:3 Changed 9 years ago by
Status: | assigned → review |
---|
Changes in t/13694.
Added handling of user defined onclick attribute. Before it was always removed because of popup onlick handling.
Problem can be reproduced from CKEditor 3.0. If you insert the code and then edit the link using Link dialog, the onclick attribute is removed.
From what I have checked only the onclick is removed (tested with ACF disabled).