-
Notifications
You must be signed in to change notification settings - Fork 134
Home
tsechingho edited this page Feb 7, 2013
·
8 revisions
Welcome to the ckeditor-rails wiki!
please refer to these:
- http://docs.ckeditor.com/
- http://docs.cksource.com/CKEditor_3.x/Developers_Guide
- http://docs.cksource.com/ckeditor_api
examples:
Edit app/assets/javascripts/ckeditor/config.js.coffee
and add a toolbar naming 'Pure'
# http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html#.toolbar_Full
CKEDITOR.editorConfig = (config) ->
config.language = 'en'
config.width = '725'
config.height = '600'
config.toolbar_Pure = [
{ name: 'document', items: [ 'Source','-','Save','NewPage','DocProps','Preview','Print','-','Templates' ] },
{ name: 'clipboard', items: [ 'Cut','Copy','Paste','PasteText','PasteFromWord','-','Undo','Redo' ] },
{ name: 'editing', items: [ 'Find','Replace','-','SelectAll','-','SpellChecker', 'Scayt' ] },
{ name: 'tools', items: [ 'Maximize', 'ShowBlocks','-','About' ] }
'/',
{ name: 'basicstyles', items: [ 'Bold','Italic','Underline','Strike','Subscript','Superscript','-','RemoveFormat' ] },
{ name: 'paragraph', items: [ 'NumberedList','BulletedList','-','Outdent','Indent','-','Blockquote','CreateDiv','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','-','BidiLtr','BidiRtl' ] },
{ name: 'links', items: [ 'Link','Unlink','Anchor' ] },
'/',
{ name: 'styles', items: [ 'Styles','Format','Font','FontSize' ] },
{ name: 'colors', items: [ 'TextColor','BGColor' ] },
{ name: 'insert', items: [ 'Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak' ] },
]
config.toolbar = 'Pure'
true
please refer to these: