Ticket #6869: 6869_2.patch

File 6869_2.patch, 2.3 KB (added by Garry Yao, 13 years ago)
  • CHANGES.html

     
    3939        <p>
    4040                        New features:</p>
    4141        <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>
    4344        </ul>
    4445        <p>
    4546                        Fixed issues:</p>
  • _source/plugins/styles/plugin.js

     
    367367
    368368        // Gets the parent element which blocks the styling for an element. This
    369369        // 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.
    371371        function getUnstylableParent( element )
    372372        {
    373373                var unstylable,
     
    378378                        if ( element.getName() == 'body' )
    379379                                break;
    380380
    381                         if ( element.getAttribute( 'data-cke-nostyle' ) )
     381                        if ( element.getAttribute( 'data-nostyle' ) )
    382382                                unstylable = element;
    383383                        else if ( !editable )
    384384                        {
     
    473473                                var nodeType = currentNode.type;
    474474                                var nodeName = nodeType == CKEDITOR.NODE_ELEMENT ? currentNode.getName() : null;
    475475                                var nodeIsReadonly = nodeName && ( currentNode.getAttribute( 'contentEditable' ) == 'false' );
    476                                 var nodeIsNoStyle = nodeName && currentNode.getAttribute( 'data-cke-nostyle' );
     476                                var nodeIsNoStyle = nodeName && currentNode.getAttribute( 'data-nostyle' );
    477477
    478478                                if ( nodeName && currentNode.data( 'cke-bookmark' ) )
    479479                                {
  • _source/plugins/colorbutton/plugin.js

     
    220220
    221221                function isUnstylable( ele )
    222222                {
    223                         return ( ele.getAttribute( 'contentEditable' ) == 'false' ) || ele.getAttribute( 'data-cke-nostyle' );
     223                        return ( ele.getAttribute( 'contentEditable' ) == 'false' ) || ele.getAttribute( 'data-nostyle' );
    224224                }
    225225        }
    226226});
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy