/*
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';
};
Tue, 07/05/2011 - 20:29
#1

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
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:
CKEDITOR.editorConfig = function( config ) { // Define changes to default configuration here. For example: // config.language = 'fr'; // config.uiColor = '#AADC6E'; //CKEDITOR.config.toolbar_Basic = [[ 'newplugin', 'Bold', 'Italic', 'Underline', 'button-pre', 'abbr', 'Source', 'blockquote', 'inserthtml' ]]; CKEDITOR.config.toolbar_Basic = [['Source', '-', 'Save', 'NewPage', 'Preview', '-', 'Templates'], ['Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Print', 'SpellChecker', 'Scayt'], ['Undo', 'Redo', '-', 'Find', 'Replace', '-', 'SelectAll', 'RemoveFormat'], ['Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 'HiddenField'], '/', ['Bold', 'Italic', 'Underline', 'Strike', '-', 'Subscript', 'Superscript'], ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', 'Blockquote'], ['JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'], ['Link', 'Unlink', 'Anchor'], ['Image', 'Flash', 'Table', 'HorizontalRule', 'Smiley', 'SpecialChar', 'PageBreak'], '/', ['Styles', 'Format', 'Font', 'FontSize'], ['TextColor', 'BGColor'], ['Maximize', 'ShowBlocks', '-', 'About'], ['abbr', 'inserthtml']]; config.toolbar = 'Basic'; config.startupOutlineBlocks = true; config.extraPlugins = "abbr, inserthtrml"; };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
CKEDITOR.replace( '__EDITORNAME__', { extraPlugins : 'abbr,inserthtml' });