[CKEditor] Uncaught SyntaxError: Unexpected token :

[CKEditor] Uncaught SyntaxError: Unexpected token :

  
Forge Component
(11)
Published on 12 Oct by OutSystems Labs
11 votes
Published on 12 Oct by OutSystems Labs
Hi,

I'm trying to use CKEditor without success. I'm getting the following error in the js console: Uncaught SyntaxError: Unexpected token :

I believe the cause is the ID of the textarea/input generated by the platform. 

I have pages using CKEditor without problems that were created with StyleGuide (some years ago) and where the html ids look like this: <textarea id="wtTextArea"...

And then I'm trying to use CKEditor in a page using the new LondonTheme where the html ids look like this: <textarea id="RichWidgets_wt10:wtMainContent:wtTextArea"

Those colon's are breaking the editor code! 

Any suggestions on how to override this situation?

Thanks,
João H.
João,

I came across this issue when I deployed the java version.

I too had issues with the ":" colon, it seems that the EVAL does not like the colon and the version of JSF uses colons to identify field id's instead of underscores "_"  

I fix it by replacing a few lines in the javasource of the CKEdit WebBlock  the code goes from:

 

To



I've attached source with the fix.

Regards, 

Jean 
Caro Systems