I've got a standard installation of ckeditor (version:"4.1.2",revision:"d6f1e0e") and most features work, but the ones that cause dialogs (link, image, paste, about) are giving me a javascript error
not sure if it's my configuration or what (probably is). at first I thought it was caused by puting ckeditor inside of a jquery UI dialog, but even without the dialog i get the errors...
I've done significant googling and am stuck.
here's the full stack trace:
Uncaught TypeError: string is not a function ckeditor.js:506
CKEDITOR.ui.dialog.uiElementckeditor.js:506
CKEDITOR.tools.extend.htmlckeditor.js:441
l.buildckeditor.js:423
a.buildckeditor.js:518
CKEDITOR.dialog.addPageckeditor.js:493
CKEDITOR.dialogckeditor.js:483
CKEDITOR.tools.extend.openDialogckeditor.js:523
(anonymous function)ckeditor.js:523
(anonymous function)
ok, so I dug deeper. I
ok, so I dug deeper. I installed the uncompressed version so I could understand where the errors were. the error is now in plugin.js under the dialog plugin. line 2213 to be exact.
this line was:
to get around the error I was getting (string is not a function), I changed it to this:
which got rid of my original error, but now the buttons in my dialog look wonky - the text in them is [object, object] so something unexpected is getting thrown around somewhere
I'm using jquery UI and their dialogs, is there a conflict somewhere?
further research shows me
further research shows me that it's another javascript library conflicting. we're using clojure on the back end which puts a huge library JS file into our app (that has required functionality in it)
if I remove this script file, the editor works fine. it's only 23,000 lines. wish me luck
argh. who edits the String
argh. who edits the String prototype??? so sick of other people's code. and talking to myself.
peace.
Hi Mrblakwell,
Hi Mrblakwell,
glad to hear that your story had a positive ending :-) And thanks for letting us know that it was not a CKEditor issue after all. If it were, however, you are most welcome to report all errors on our Development site! Good luck with taming all those JS libraries!
Documentation Manager, CKSource
See CKEditor 5 docs, CKEditor 4 docs, CKEditor 3 docs, CKFinder 3 docs, CKFinder 2 docs for help.
Visit the new CKEditor SDK for samples showcasing editor features to try out and download!