Opened 15 years ago

Closed 15 years ago

#4240 closed Bug (fixed)

CKEditor does not work with elements with hyphen in their ID

Reported by: Wiktor Walc Owned by: Garry Yao
Priority: Normal Milestone: CKEditor 3.0
Component: General Version:
Keywords: Confirmed HasPatch Review+ Cc:


Open replacebycode.html sample, change the ID "editor2" into "edi-tor2", launch it in your browser and an error will occur (and as a result the event instanceReady is not triggered):

invalid assignment left-hand side
Line 1

Note: window.parent._cke_htmlToLoad_edi-tor

CKEditor should support at least this:

ID and NAME tokens must begin with a letter ([A-Za-z]) and may be followed by any number of letters, digits ([0-9]), hyphens ("-"), underscores ("_"), colons (":"), and periods (".").

It seems that the source of this problem is the wysiwygarea plugin: 'window.parent._cke_htmlToLoad_' + + ' (line 244-246)

Attachments (1)

4240.patch (912 bytes) - added by Garry Yao 15 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 Changed 15 years ago by Garry Yao

Keywords: Confirmed HasPatch added
Milestone: CKEditor 3.0CKEditor 3.1
Priority: HighNormal

Changed 15 years ago by Garry Yao

Attachment: 4240.patch added

comment:2 Changed 15 years ago by Garry Yao

Keywords: Review? added
Milestone: CKEditor 3.1CKEditor 3.0
Owner: set to Garry Yao
Status: newassigned

Wiktor point me that it's critical for CKEditor to work with Drupal, so retarget to this release.

comment:3 Changed 15 years ago by Wiktor Walc

Keywords: Review+ added; Review? removed

I've searched in CKEditor source code for + and wysiwygarea plugin was the only place where it was incorrectly used, so R+.

comment:4 Changed 15 years ago by Garry Yao

Resolution: fixed
Status: assignedclosed

Fixed with [4111] on trunk and [4110] on 3.0.x branch.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy