CKEditor可让您单击工具栏按钮以“最大化”文本区域。我想在页面加载时自动执行此操作。谢谢您的帮助。
答案 0 :(得分:0)
请尝试以下代码:
var editor = CKEDITOR.replace( 'editor1', { /*Editor instance configuration goes here*/ });
editor.on( 'instanceReady', function(event){
if(event.editor.getCommand( 'maximize' ).state == CKEDITOR.TRISTATE_OFF);//ckeck if maximize is off
event.editor.execCommand( 'maximize');
});