Ruby on Rails
Tuesday, September 2, 2014
Hi Damjan Rems,
Thank you so so so so much, you did a fantastic job, solved my problem, was waiting for this solution.
Thanks & Regards,
Rasool.
On Tuesday, 2 September 2014 16:18:38 UTC+5:30, Ruby-Forum.com User wrote:
-- Thank you so so so so much, you did a fantastic job, solved my problem, was waiting for this solution.
Thanks & Regards,
Rasool.
On Tuesday, 2 September 2014 16:18:38 UTC+5:30, Ruby-Forum.com User wrote:
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/a37e4815-f669-4566-b9e9-0ad9f52c66c2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment