Hello all..
Ive got a simple enough question (i think..) i want to add a plugin to the full toolbar..Im not quite sure what change i have to make to the config.js file to achieve this..This is what i have tried:
/* Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.editorConfig = function( config ) { config.extraPlugins = 'abbr'; };
Re: add plugin to config file
Is your plugin folder named 'abbr' too?
Is this folder placed in /plugins?
Is your plugin added correctly (means, is there a line CKEDITOR.plugins.add( 'abbr' .... in plugin.js)?
Re: add plugin to config file
Re: add plugin to config file
datalink
yes, to all of them questions..
alfonsoml
I assume you are talking about adding code like:
but if i want to add to the full toolbar instead of the basic, how do i do that?
Thanks
Re: add plugin to config file
Every toolbar needs a seperate definition, means if you have a button not defined in a toolbar, define your own toolbar with this button. Read http://docs.cksource.com/CKEditor_3.x/Developers_Guide/Toolbar#Toolbar_Customization
Re: add plugin to config file
Thanks again.. I copied over the full toolbar definition defined in ckeditor.js and defined this in the config file..I can now add an extra plugin.. However the problem i have now is i can only seem to add one extra plugin at a time.. If I try two at a time it doesnt work..I seen this problem in another forum and the solution given was to use the following syntax:
config.extraPlugins = "abbr, inserthtrml";
No editor renders when i use this syntax..So then i tried the following:
config.extraPlugins = "abbr", "inserthtrml";
This only shows up the "abbr" plugin..
Can you help me out here please? This is the complete code in my config file:
The last two elements in CKEDITOR.config.toolbar_Basic are my extra plugins..
Re: add plugin to config file
Re: add plugin to config file
No, sorry that was a typo..inserthtml is the plugin.. In any case, even with the right spelling (plus ive tried other plugins), the editor will not add more than one plugin at a time..Any ideas why this is so?
Thanks
Re: add plugin to config file
Works the plugin alone?
Re: add plugin to config file
Thanks for your time..
Re: add plugin to config file