Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ckeditor toolbar buttons - how to remove or use custom toolbar?

skahlertAug 8 2011
Hello!

Does anybody know how to remove buttons from the CKEDITOR v.3 (rich text editor) used in Apex 4.x?

Currently I am hiding the unwanted elements using CSS.

However, there's alledgedly an option to customize and use your own toolbar with ckeditor.
Therefore I added the following code to the /i/libraries/ckeditor/3.2/config.js:
CKEDITOR.editorConfig = function( config )
{
config.toolbar = 'MyToolbar';

config.toolbar_MyToolbar =
[
['NewPage','Preview'],
['Cut','Copy','Paste','PasteText','PasteFromWord','-','Scayt'],
['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
['Image','Table','HorizontalRule','Smiley','SpecialChar','PageBreak'],
'/',
['Styles','Format'],
['Bold','Italic','Strike'],
['NumberedList','BulletedList','-','Outdent','Indent'],
['Maximize','-','About']
];
};

 CKEDITOR.replace( 'MyToolbar',
            {   toolbar:'MyToolbar'    }
         );
Nevertheless, the toolbar doesn't change at all. I have been reading hours now and was hoping for someone who figured it out!

Many thanks,

Sebastian
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 5 2011
Added on Aug 8 2011
0 comments
858 views