Ticket #5121: 5121_2.patch
File 5121_2.patch, 1.3 KB (added by , 14 years ago) |
---|
-
_source/plugins/styles/plugin.js
110 110 111 111 CKEDITOR.style.prototype = 112 112 { 113 setEditor : function( editor ) 114 { 115 this._.editor = editor; 116 }, 117 113 118 apply : function( document ) 114 119 { 115 120 applyStyle.call( this, document, false ); … … 752 757 753 758 var iterator = range.createIterator(); 754 759 iterator.enforceRealBlocks = true; 760 iterator.enlargeBr = ( this._.editor.config.enterMode != CKEDITOR.ENTER_BR ); 755 761 756 762 var block; 757 763 var doc = range.document; -
_source/plugins/stylescombo/plugin.js
102 102 103 103 var style = styles[ value ], 104 104 selection = editor.getSelection(); 105 105 106 106 var elementPath = new CKEDITOR.dom.elementPath( selection.getStartElement() ); 107 107 108 style.setEditor( editor ); 109 108 110 if ( style.type == CKEDITOR.STYLE_INLINE && style.checkActive( elementPath ) ) 109 111 style.remove( editor.document ); 110 112 else