zoukankan      html  css  js  c++  java
  • CKEDITOR 默认最大化

     createEditor("newsEditer"); //创建一个editer

    //editer 最大化

     CKEDITOR.instances["newsEditer"].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 == 'newsEditer') {
                            var command = editor.getCommand('maximize');
                            command.exec();
                        }
                    }, 0);
                }, null, null, 9999);

  • 相关阅读:
    Object之总结(一)
    Object之registerNatives
    Object之finalize
    阿里腾讯百度360
    Object之getClass
    Object之clone
    Object之toString
    Object之notify
    Object之wait
    Object之equals与hashCode
  • 原文地址:https://www.cnblogs.com/wlwjc/p/3444999.html
Copyright © 2011-2022 走看看