Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

add multiple extra plugins on a toolbar of ckeditor

Tags:

I want to add multiple plugins(which i have created) on a toolbar of ckeditor. I have written below code in config.js

CKEDITOR.editorConfig = function( config ) {     config.toolbar_Full =  [         ['Styles', 'Bold', 'Italic', 'Underline', 'SpellChecker', 'Scayt', '-', 'NumberedList', 'BulletedList'],         ['Link', 'Unlink'], ['Undo', 'Redo', '-', 'SelectAll'], '/', ['timestamp', '-', 'linkbutton']     ];     config.extraPlugins = 'linkbutton, timestamp'; }; 

and i have two different custom plugins. but another plugin is not accepted. How to add another plugin on a one toolbar?

like image 532
KomalJariwala Avatar asked Sep 28 '12 11:09

KomalJariwala


People also ask

How do I add codes to CKEditor?

If you would like to use inline code formatting in your WYSIWYG editor, check out the basic text styles feature with its support for inline <code> element. The code block feature is enabled by default in the superbuild only. See the installation section to learn how to enable it in your editor.


1 Answers

You are just right except of the space after the comma so your definition regarding http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html#.extraPlugins should be:

config.extraPlugins = 'linkbutton,timestamp'; 
like image 94
Francis Avatar answered Nov 09 '22 05:11

Francis