Ticket #6203: 6203.patch

File 6203.patch, 2.0 KB (added by Garry Yao, 13 years ago)
  • _source/plugins/wysiwygarea/plugin.js

     
    10061006                                                editor.document.$.designMode = 'on';
    10071007                                                setTimeout( function()
    10081008                                                {
    1009                                                         editor.document.$.designMode = 'off';
    1010                                                         if ( CKEDITOR.currentInstance == editor )
    1011                                                                 editor.document.getBody().focus();
     1009                                                        if ( editor.document )
     1010                                                        {
     1011                                                                editor.document.$.designMode = 'off';
     1012                                                                if ( CKEDITOR.currentInstance == editor )
     1013                                                                        editor.document.getBody().focus();
     1014                                                        }
    10121015                                                }, 50 );
    10131016                                        },
    10141017                                        function()
  • _source/plugins/undo/plugin.js

     
    9494                                        undoManager.onChange();
    9595                                });
    9696
     97                        // Make the undo manager unavailable after editor destroyed.
     98                        editor.on( 'destroy', function()
     99                                {
     100                                        undoManager.enabled = 0;
     101                                });
     102
    97103                        editor.ui.addButton( 'Undo',
    98104                                {
    99105                                        label : editor.lang.undo,
  • _source/core/editor_basic.js

     
    2929        /**
    3030         * Creates an editor class instance. This constructor should be rarely
    3131         * used, in favor of the {@link CKEDITOR} editor creation functions.
    32          * @ class Represents an editor instance.
     32         * @ class Represents an editor instance. (<strong>Note:</strong> All instance methods of "CKEDITOR.editor" invocation is invalid after editor instance destroyed by calling {@link CKEDITOR.editor#destroy})
    3333         * @param {Object} instanceConfig Configuration values for this specific
    3434         *              instance.
    3535         * @param {CKEDITOR.dom.element} [element] The element linked to this
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy