Ticket #3129: 3129_2.patch
File 3129_2.patch, 2.4 KB (added by , 15 years ago) |
---|
-
_source/plugins/sourcearea/plugin.js
125 125 editor.mode == 'source' ? 126 126 CKEDITOR.TRISTATE_ON : 127 127 CKEDITOR.TRISTATE_OFF ); 128 }); 128 129 // Force selection change to update corresponding commands states. 130 if ( editor.mode == 'wysiwyg' ) 131 editor.checkSelection(); 132 else 133 editor.fire( 'selectionChange', { selection : null, path : { elements: [] }, element : null } ); 134 }, null, null, 1 ); 129 135 } 130 136 }); 131 137 -
_source/plugins/link/plugin.js
58 58 * for this in Firefox. So we must detect the state by element paths. 59 59 */ 60 60 var command = editor.getCommand( 'unlink' ), 61 element = evt.data.path.lastElement .getAscendant( 'a', true );61 element = evt.data.path.lastElement && evt.data.path.lastElement.getAscendant( 'a', true ); 62 62 if ( element && element.getName() == 'a' && element.getAttribute( 'href' ) ) 63 63 command.setState( CKEDITOR.TRISTATE_OFF ); 64 64 else -
_source/plugins/elementspath/plugin.js
53 53 editor.on( 'selectionChange', function( ev ) 54 54 { 55 55 var env = CKEDITOR.env; 56 57 var selection = ev.data.selection; 58 59 var element = selection.getStartElement(), 56 var element = ev.data.element, 60 57 html = [], 61 58 elementsList = this._.elementsPath.list = []; 62 59 -
_source/plugins/selection/plugin.js
147 147 { 148 148 delete this._.selectionPreviousPath; 149 149 }; 150 150 151 /** 152 * Force firing of the 'selectionChange' event. 153 */ 154 CKEDITOR.editor.prototype.checkSelection = checkSelectionChange; 155 151 156 /** 152 157 * Gets the current selection from the document. 153 158 * @returns {CKEDITOR.dom.selection} A selection object.