Modify

Opened 2 years ago

Last modified 19 months ago

#8884 assigned defect

Tweak toolbars to include only supported commands & elements

Reported by: itamarost Owned by: itamarost
Priority: high Component: CkEditorPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.12

Description

The current implementation uses the default CKEditor toolbar, that contains many rich features that sometimes are relevant only to pure HTML content, and on the other hand excludes features that are wiki-specific.

See as reference the BBCode plugin for CKEditor: file:///C:/Users/EdanM/projects/eclipse/ckenv/htdocs/js/ckeditor/_samples/bbcode.html

Attachments (2)

config.js (1.1 KB) - added by framay 21 months ago.
sample CKEditor configuration file with less buttons
CKEditor.png (13.9 KB) - added by framay 21 months ago.
presentation of CKEditor with sample configuration

Download all attachments as: .zip

Change History (5)

comment:1 Changed 2 years ago by itamarost

  • Status changed from new to assigned

Used local link by mistake, and can't edit description...
Correct link for BBCode reference: http://nightly.ckeditor.com/7035/_samples/bbcode.html

Changed 21 months ago by framay

sample CKEditor configuration file with less buttons

Changed 21 months ago by framay

presentation of CKEditor with sample configuration

comment:2 Changed 21 months ago by framay

the important thing in the configuration file is this line:

config.toolbar = 'Custom';

Much nicer would be if it could be parametrized in trac.ini. In a future version you could have different toolbars and show them depending on the rights the authenticated user has.

comment:3 Changed 19 months ago by framay

Isn't this be done by configuring CKEditor's config.js file? For sample configuration see config.js.sample.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as assigned .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from itamarost. Next status will be 'new'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.