Ticket #6869: 6869_2.patch
File 6869_2.patch, 2.3 KB (added by , 13 years ago) |
---|
-
CHANGES.html
39 39 <p> 40 40 New features:</p> 41 41 <ul> 42 <li></li> 42 <a href="http://dev.ckeditor.com/ticket/6869">#6869</a> : The "data-cke-nostyle" attribute (which was introduced for escaping element from been touched by the style system since 3.5) 43 is deprecated in favor of the new one <strong>"data-nostyle"</strong>.</li> 43 44 </ul> 44 45 <p> 45 46 Fixed issues:</p> -
_source/plugins/styles/plugin.js
367 367 368 368 // Gets the parent element which blocks the styling for an element. This 369 369 // can be done through read-only elements (contenteditable=false) or 370 // elements with the "data- cke-nostyle" attribute.370 // elements with the "data-nostyle" attribute. 371 371 function getUnstylableParent( element ) 372 372 { 373 373 var unstylable, … … 378 378 if ( element.getName() == 'body' ) 379 379 break; 380 380 381 if ( element.getAttribute( 'data- cke-nostyle' ) )381 if ( element.getAttribute( 'data-nostyle' ) ) 382 382 unstylable = element; 383 383 else if ( !editable ) 384 384 { … … 473 473 var nodeType = currentNode.type; 474 474 var nodeName = nodeType == CKEDITOR.NODE_ELEMENT ? currentNode.getName() : null; 475 475 var nodeIsReadonly = nodeName && ( currentNode.getAttribute( 'contentEditable' ) == 'false' ); 476 var nodeIsNoStyle = nodeName && currentNode.getAttribute( 'data- cke-nostyle' );476 var nodeIsNoStyle = nodeName && currentNode.getAttribute( 'data-nostyle' ); 477 477 478 478 if ( nodeName && currentNode.data( 'cke-bookmark' ) ) 479 479 { -
_source/plugins/colorbutton/plugin.js
220 220 221 221 function isUnstylable( ele ) 222 222 { 223 return ( ele.getAttribute( 'contentEditable' ) == 'false' ) || ele.getAttribute( 'data- cke-nostyle' );223 return ( ele.getAttribute( 'contentEditable' ) == 'false' ) || ele.getAttribute( 'data-nostyle' ); 224 224 } 225 225 } 226 226 });