Hi,
I'm fairly new to CKeditor, I come from using Redactor but in the end I found it is nowhere near as good as CKeditor and I have a question concerning the difference into remove a plugin using 'RemovePlugins' and just not including a plugin from the toolbar config.
I can just leave out 'image' for example in the toolbar config or I can remove it via 'RemovePlugins'. Is there a difference or is the RemovePlugins functions purely a 'convenience' function say in the situation you only need to remove 'image' and you want the rest to be default?
I'm mostly asking to know if I should use one in favour of the other performance wise.
Thanks.
I think that you'll find the
I think that you'll find the answer in CKEditor Best Practices guide. In short, removing button from the toolbar slightly improves the performance because the button will not have to be created, but it's much better to remove entire plugin (using the builder), because then less code needs to be downloaded and executed.
The options for removing plugins and removing buttons exist simultaneously, because there are plugins which add more than one button.
Piotrek (Reinmar) Koszuliński
CKEditor JavaScript Developer
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
thanks got it, yeah I know
thanks got it, yeah I know about the builder, its an awesome option you offer however its not applicable for me I think as I chose to use the CDN version. What might be a solution is to build my own 'CDN version' however that is a complete different question.. altough interesting as well.
For me it is important that I can include ckeditor in 1 file like with the CDN version what I wonder is how are the URL's handled?
I mean when using the CDN version I assume the .js file contains full paths to include files from the CDN such as when inserting smileys etc because if you'd use relative url's CKeditor would be looking for those files on the local server which won't be there.
So in short my follow up question; how would I create my own 1 file include version which I can offer via my own CDN?
Thanks for the help!
Smileys are the only
Smileys are the only problematic case, because paths to them must be stored in the data, so they are always added with a full URL. You can also configure it.
Therefore, setting up your own CDN with CKEditor is simply:
That's what we do with our CDN :).
CKEditor will automatically find out the address of its main folder or, if it's included in the website in some special way, you can also configure it. Based on that CKEditor creates all paths, so it's able to load all files from the CDN without any additional effort from the developer.
Piotrek (Reinmar) Koszuliński
CKEditor JavaScript Developer
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
awesomeness, thanks for the
awesomeness, thanks for the info much appreciated!