javascript - How do I pass in config info to CKEditor using the jQuery adapter? -
I'm using with the latest.
I have successfully found it to work, and display it.
However, as I am totally new to CKeditor , how do I pass the config variable using the jQuery method?
This is what I have found
$ ('# input-content'). Cleditor ('', {toolbar: 'basic'});
I think what I have read, the first argument is to be a callback, and the other config, but by doing so, the editor has not changed at all.
How do I use the jQuery adapters etc?
I have completed using this code. Hope this will be helpful.
Here is the html:
& lt; Textarea id = "txtMessage" class = "editor" & gt; & Lt; / Textarea & gt;
And here's Javascript:
try {var config = {height: 180, width: 515, linkShowAdvancedTab: false, scayt_autoStartup: true, enterMode: Number (2), toolbar_food: [['Styles',' Bold ',' Italic ',' Underline ',' SpellCaker ',' Skate ',' - ',' Numerical List ',' Bulleted List '], [' Link ',' unlink '], [' undo ',' redo ',' - ',' select ']]}; . $ ('Textarea.editor') CKEditor (config); }
Comments
Post a Comment