自己贴上解决方案,供遇到的人参考:
<script type="text/javascript">
var oCKeditor;
(function () {
oCKeditor = CKEDITOR.replace('editor1');
oCKeditor.on('instanceReady', function (event) {
var editor = event.editor;
setTimeout(function () {
// Delay bit more if editor is still not ready.
if (!editor.element) {
setTimeout(arguments.callee, 100);
return;
}
event.removeListener('instanceReady', this.callee);
if (editor.name == 'editor1') {
var command = editor.getCommand('maximize');
command.exec();
}
}, 0);
}, null, null, 9999);
})();
</script>