Hi,
I am trying to get a custom toolbar with limited command set working.
The base load of ckeditor is fine and the FULL toolbar is displayed and the options all work.
I have the following code in one of my pages, it shows the textarea+ckeditor interface with the full load of toolbar icons.
In the ckeditor/configs/comps_config.js file I have this code ... I would like it to use the Comps1 toolbar set, but it does not. I have tried clearing the cache, but no banana.
I am a newbie at this and a lot of the forum posts, and online docs assume a level of familiarity with ckeditor that I don't have. If someone can point out what I need to change in simple terms I would appreciate it.
Thx
GC
I am trying to get a custom toolbar with limited command set working.
The base load of ckeditor is fine and the FULL toolbar is displayed and the options all work.
I have the following code in one of my pages, it shows the textarea+ckeditor interface with the full load of toolbar icons.
<script type="text/javascript" src="ckeditor/ckeditor.js"></script> <script type="text/javascript" src="ckeditor/configs/comps_config.js"></script> <textarea class="ckeditor" id="newabuse" name="newabuse" cols=150 rows=4 ></textarea>
In the ckeditor/configs/comps_config.js file I have this code ... I would like it to use the Comps1 toolbar set, but it does not. I have tried clearing the cache, but no banana.
I am a newbie at this and a lot of the forum posts, and online docs assume a level of familiarity with ckeditor that I don't have. If someone can point out what I need to change in simple terms I would appreciate it.
Thx
GC
CKEDITOR.editorConfig = function( config )
{
config.toolbar = 'Comps1';
config.toolbar_Comps1 =
[
['Cut','Copy','Paste','PasteText','PasteFromWord','-','SpellChecker', 'Scayt'],
['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
'/',
['BidiLtr', 'BidiRtl'],
['Link','Unlink'],
['Image','Flash','Table','HorizontalRule','Smiley','SpecialChar'],
['Maximize', 'ShowBlocks','-','About']
'/',
['Styles','Format','Font','FontSize'],
['TextColor','BGColor'],
['Bold','Italic','Underline','Strike','-','Subscript','Superscript'],
['NumberedList','BulletedList','-','Outdent','Indent'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
];
config.toolbar_Full =
[
['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','CreateDiv'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
['BidiLtr', 'BidiRtl'],
['Link','Unlink','Anchor'],
['Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak','Iframe'],
'/',
['Styles','Format','Font','FontSize'],
['TextColor','BGColor'],
['Maximize', 'ShowBlocks','-','About']
];
config.toolbar_Basic =
[
['Bold', 'Italic', '-', 'NumberedList', 'BulletedList', '-', 'Link', 'Unlink','-','About']
];
};
Re: config.js not changing toolbars
Or a site with a basic example up I can try to pull apart ?
Re: config.js not changing toolbars
This snippet might be interesting for you
// Replace the <textarea id="editor1"> with an CKEditor instance. var editor = CKEDITOR.replace( 'editor1', { // Defines a simpler toolbar to be used in this sample. // Note that we have added out "MyButton" button here. toolbar : [ [ 'Source', '-', 'Bold', 'Italic', 'Underline', 'Strike','-','Link', '-', 'MyButton' ] ] });Re: config.js not changing toolbars
Thanks typeof for the follow up !!!