Ticket #3611: 3611.patch
File 3611.patch, 2.0 KB (added by , 15 years ago) |
---|
-
_source/plugins/styles/plugin.js
81 81 var objectElements = { a:1,embed:1,hr:1,img:1,li:1,object:1,ol:1,table:1,td:1,tr:1,ul:1 }; 82 82 83 83 var semicolonFixRegex = /\s*(?:;\s*|$)/; 84 var removeValueRegex = /([^:]+:)([^;]+);/g; 84 85 85 86 CKEDITOR.style = function( styleDefinition, variablesValues ) 86 87 { … … 197 198 { 198 199 if ( attName == '_length' ) 199 200 continue; 200 if ( attribs[attName] == element.getAttribute( attName ) ) 201 var testAttrib = attribs[ attName ]; 202 var elementAttrib = element.getAttribute( attName ); 203 204 // If ignoring the values, simply remove them so that they're not compared. 205 if ( def.ignore_values ) 201 206 { 207 testAttrib = testAttrib.replace( removeValueRegex, '\1;' ); 208 elementAttrib = elementAttrib.replace( removeValueRegex, '\1;' ); 209 } 210 211 if ( testAttrib == elementAttrib ) 212 { 202 213 if ( !fullMatch ) 203 214 return true; 204 215 } -
_source/plugins/colorbutton/plugin.js
1 /*1 /* 2 2 Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved. 3 3 For licensing, see LICENSE.html or http://ckeditor.com/license 4 4 */ … … 148 148 { 149 149 element : 'span', 150 150 styles : { 'color' : '#(color)' }, 151 overrides : [ { element : 'font', attributes : { 'color' : null } } ] 151 overrides : [ { element : 'font', attributes : { 'color' : null } } ], 152 ignore_values : true 152 153 }; 153 154 154 155 CKEDITOR.config.colorButton_backStyle = 155 156 { 156 157 element : 'span', 157 styles : { 'background-color' : '#(color)' } 158 styles : { 'background-color' : '#(color)' }, 159 ignore_values : true 158 160 };