quyen91 / toy-app-rubyonrail

simple demo for learning ruby on rails
0 stars 0 forks source link

Config ckeditor #31

Open quyen91 opened 8 years ago

quyen91 commented 8 years ago

Remove some unnecessary field http://docs.cksource.com/CKEditor_3.x/Howto/Plugin_Removal Config toolbar http://ckeditor.com/latest/samples/toolbarconfigurator/index.html#basic Change p tag into br tag when press enter

CKEDITOR.editorConfig = function( config )
{
// Define changes to default configuration here. For example:
// config.language = 'fr';
// config.uiColor = '#AADC6E';
config.uiColor = '#949AAA';
config.enterMode = CKEDITOR.ENTER_BR;
};
quyen91 commented 8 years ago

when we want to get content from ckeditor with truncate function. Simply add escape: false inside truncate function