Ticket #5018: 5018_3.patch
File 5018_3.patch, 1.8 KB (added by , 14 years ago) |
---|
-
_source/plugins/styles/plugin.js
937 937 for ( var attName in attributes ) 938 938 { 939 939 // The 'class' element value must match (#1318). 940 if ( attName == 'class'&& element.getAttribute( attName ) != attributes[ attName ] )940 if ( ( attName == 'class' || style._.definition.unique ) && element.getAttribute( attName ) != attributes[ attName ] ) 941 941 continue; 942 942 removeEmpty = element.hasAttribute( attName ); 943 943 element.removeAttribute( attName ); … … 945 945 946 946 for ( var styleName in styles ) 947 947 { 948 // Unique style insist on having full match. (#5018) 949 if ( style._.definition.unique 950 && element.getStyle( styleName ) != styles[ styleName ] ) 951 continue; 952 948 953 removeEmpty = removeEmpty || !!element.getStyle( styleName ); 949 954 element.removeStyle( styleName ); 950 955 } -
_source/plugins/find/dialogs/find.js
67 67 68 68 var findDialog = function( editor, startupPage ) 69 69 { 70 // Style object for highlights. 71 var highlightStyle = new CKEDITOR.style( editor.config.find_highlight ); 70 // Style object for highlights, must be defined as unique style to avoid conflicting with ordinary text color styles. (#5018) 71 var highlightStyle = new CKEDITOR.style( CKEDITOR.tools.extend( { unique : true }, 72 editor.config.find_highlight ) ); 72 73 73 74 /** 74 75 * Iterator which walk through the specified range char by char. By