My solution is specific to CMS I am building. My biggest cracker at the 
moment is documentation ;-)

It took me about two days to crack toolbar. Although everything is in ck 
documentation http://docs.ckeditor.com it is very muddy ;-(

Put this somewhere into ck_config.js

CKEDITOR.editorConfig = function( config ) {
config.toolbar_basic = [
    [ 'Save', '-', 'Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', 
'-', 'Undo', 'Redo' ],
    [ 'Bold', 'Italic', 'Underline', 
'-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock']
];
//You may reconfigure toolbar for all sessions
config.toolbar = config.toolbar_basic;
};

Or comment out last line and put into ckeditor object initializer for 
specific session:

CKEDITOR.replace( 'record_body',{height: 500, customConfig: 
'/ck/ck_config.js', contentsCss: '/ck/ck_css.css', toolbar: 'basic'} )


by
TheR

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/2fe1089484dc1074f528094837857cd7%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to