Hello
Is there an available list of configuration options that can be set when calling the CKEDITOR.replace() method. In particular, I would like to do the following:
Ian
Is there an available list of configuration options that can be set when calling the CKEDITOR.replace() method. In particular, I would like to do the following:
- - Set the size of the editor and prevent resizing
- Have the 'Scayt' (spell checker as yout type) on by default
- Startup the editor in readonly mode ( to be enabled by javascript at a later time )
Ian
Re: CKEditor configuration options
The difference between the two is that in the first case, the defaults are changed for any other editors created, whereas in the second case, only the editor being initialized will get the changes.
It looks like any of the CKEDITOR.config settings can be changed this way. See the following for more settings that can be set: ckeditor/_docs/api/symbols/CKEDITOR.config.html
The size of the editor can be set with 'height' and 'width', but I haven't figured out how to prevent the user from resizing the editor.
Ian
Re: CKEditor configuration options
Ian
Re: CKEditor configuration options
cheers.
Re: CKEditor configuration options
Hello,
I know I'm a little late, and you've probably come up with something already, but I ended up writing my own autosave routine for CKEditor.
I just used a simple window.setInterval and created an ajax function to post the data to a PHP page on my server. I used jQuery to make the ajax quicker and simpler.
It did take me a while to figure out the best way to retrieve the data from CKeditor. In the end, I used the ajax method of creating the editor, like this:
And this code for my autosave interval:
The editing variable is set to false in several places to turn off the autosaving when necessary. The saveDraft() function is elsewhere in my code, and does a simple ajax post.
Hope this helps somebody!
Re: CKEditor configuration options
Edit:
Tested and works on: FF 2&3, Opera 9+, Safari 3+, Chrome 2+
Does not work on IE7
Re: CKEditor configuration options