$ckeditor = 'js:[
{ name: "document", items : [ "NewPage", "Preview" ] },
{ name: "clipboard", items : [ "Cut","Copy","Paste","PasteText","PasteFromWord","-","Undo","Redo" ] },
{ name: "editing", items : [ "Find","Replace","-","SelectAll","-","Scayt" ] },
{ name: "insert", items : [ "Image","Flash","Table","HorizontalRule","Smiley","SpecialChar","PageBreak"
,"Iframe" ] },
"/", //Line Break
{ name: "styles", items : [ "Styles","Format" ] },
{ name: "basicstyles", items : [ "Bold","Italic","Strike","-","RemoveFormat" ] },
{ name: "paragraph", items : [ "NumberedList","BulletedList","-","Outdent","Indent","-","Blockquote" ] },
{ name: "links", items : [ "Link","Unlink","Anchor" ] },
{ name: "tools", items : [ "Maximize","-","About" ] }
]';
echo $form->ckEditorRow($model, 'description', array( 'options'=>array(
'disableNativeSpellChecker'=>false,
'scayt_autoStartup'=>true,
'fullpage'=>'js:true',
'width'=>'768',
'resize_maxWidth'=>'768',
'resize_minWidth'=>'320',
'toolbar'=>$ckeditor,
)));More on options you can choose on this page: http://ckeditor.com/latest/samples/plugins/toolbar/toolbar.html
Ingen kommentarer:
Send en kommentar