Ticket #7694: 7694_2.patch
File 7694_2.patch, 900 bytes (added by , 14 years ago) |
---|
-
_source/plugins/styles/plugin.js
815 815 { 816 816 var root = range.getCommonAncestor( true, true ), 817 817 element = root.getAscendant( this.element, true ); 818 element && setupElement( element, this );818 element && !element.isReadOnly() && setupElement( element, this ); 819 819 } 820 820 821 821 function removeObjectStyle( range ) … … 872 872 873 873 while ( ( block = iterator.getNextParagraph() ) ) // Only one = 874 874 { 875 var newBlock = getElement( this, doc, block ); 876 replaceBlock( block, newBlock ); 877 } 875 if ( !block.isReadOnly() ) 876 { 877 var newBlock = getElement( this, doc, block ); 878 replaceBlock( block, newBlock ); 879 } 880 } 878 881 879 882 range.moveToBookmark( bookmark ); 880 883 }