How do I send the ckeditor config using jQuery service?

Posted by syn4k on Stack Overflow See other posts from Stack Overflow or by syn4k
Published on 2010-12-21T19:44:53Z Indexed on 2010/12/21 19:53 UTC
Read the original article Hit count: 187

Filed under:
|
|
|

My service is built and it is sending the config variable to my js file: [['SpellChecker','-','Undo','Redo','-','Bold','Italic','Underline','NumberedList','BulletedList']]

The above is assigned to my javascript like so:

var config = "<?= stripslashes($_REQUEST['config']) ?>";

I can alert out the config just fine: console.log(config) does send back the correct data...

However, I get an error thrown in my console!:

v is undefined [Break On This Error] var u=n.toolbox.toolbars,v=n.config.to...aximize','ShowBlocks','-','About']];

If I comment out the config:

//CKEDITOR.config.toolbar = config;

everything works fine but the configuration doesn't exist, of course...

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about service