Ticket #6097: 6097.patch

File 6097.patch, 4.9 KB (added by Charlie, 14 years ago)

replaced all

  • _source/core/dom/element.js

     
    789789                        {
    790790                                var child = children.getItem( i );
    791791
    792                                 if ( child.type == CKEDITOR.NODE_ELEMENT && child.getAttribute( '_fck_bookmark' ) )
     792                                if ( child.type == CKEDITOR.NODE_ELEMENT && child.getAttribute( '_cke_bookmark' ) )
    793793                                        continue;
    794794
    795795                                if ( child.type == CKEDITOR.NODE_ELEMENT && !child.isEmptyInlineRemoveable()
     
    917917                                        // queuing them to be moved later. (#5567)
    918918                                        var pendingNodes = [];
    919919
    920                                         while ( sibling.getAttribute( '_fck_bookmark' )
     920                                        while ( sibling.getAttribute( '_cke_bookmark' )
    921921                                                || sibling.isEmptyInlineRemoveable() )
    922922                                        {
    923923                                                pendingNodes.push( sibling );
  • _source/core/dom/range.js

     
    305305                return node.type != CKEDITOR.NODE_TEXT
    306306                            && node.getName() in CKEDITOR.dtd.$removeEmpty
    307307                            || !CKEDITOR.tools.trim( node.getText() )
    308                             || node.getParent().hasAttribute( '_fck_bookmark' );
     308                            || node.getParent().hasAttribute( '_cke_bookmark' );
    309309        }
    310310
    311311        var whitespaceEval = new CKEDITOR.dom.walker.whitespaces(),
     
    399399                        var clone;
    400400
    401401                        startNode = this.document.createElement( 'span' );
    402                         startNode.setAttribute( '_fck_bookmark', 1 );
     402                        startNode.setAttribute( '_cke_bookmark', 1 );
    403403                        startNode.setStyle( 'display', 'none' );
    404404
    405405                        // For IE, it must have something inside, otherwise it may be
     
    705705                                endNode = this.endContainer;
    706706
    707707                        if ( startNode.is && startNode.is( 'span' )
    708                                 && startNode.hasAttribute( '_fck_bookmark' ) )
     708                                && startNode.hasAttribute( '_cke_bookmark' ) )
    709709                                this.setStartAt( startNode, CKEDITOR.POSITION_BEFORE_START );
    710710                        if ( endNode && endNode.is && endNode.is( 'span' )
    711                                 && endNode.hasAttribute( '_fck_bookmark' ) )
     711                                && endNode.hasAttribute( '_cke_bookmark' ) )
    712712                                this.setEndAt( endNode,  CKEDITOR.POSITION_AFTER_END );
    713713                },
    714714
     
    914914                                                                // If this is a visible element.
    915915                                                                // We need to check for the bookmark attribute because IE insists on
    916916                                                                // rendering the display:none nodes we use for bookmarks. (#3363)
    917                                                                 if ( sibling.$.offsetWidth > 0 && !sibling.getAttribute( '_fck_bookmark' ) )
     917                                                                if ( sibling.$.offsetWidth > 0 && !sibling.getAttribute( '_cke_bookmark' ) )
    918918                                                                {
    919919                                                                        // We'll accept it only if we need
    920920                                                                        // whitespace, and this is an inline
     
    10731073                                                                // If this is a visible element.
    10741074                                                                // We need to check for the bookmark attribute because IE insists on
    10751075                                                                // rendering the display:none nodes we use for bookmarks. (#3363)
    1076                                                                 if ( sibling.$.offsetWidth > 0 && !sibling.getAttribute( '_fck_bookmark' ) )
     1076                                                                if ( sibling.$.offsetWidth > 0 && !sibling.getAttribute( '_cke_bookmark' ) )
    10771077                                                                {
    10781078                                                                        // We'll accept it only if we need
    10791079                                                                        // whitespace, and this is an inline
  • _source/core/dom/walker.js

     
    374374                {
    375375                        return ( node && node.getName
    376376                                        && node.getName() == 'span'
    377                                         && node.hasAttribute('_fck_bookmark') );
     377                                        && node.hasAttribute('_cke_bookmark') );
    378378                }
    379379
    380380                return function( node )
  • _source/plugins/styles/plugin.js

     
    407407                                var nodeType = currentNode.type;
    408408                                var nodeName = nodeType == CKEDITOR.NODE_ELEMENT ? currentNode.getName() : null;
    409409
    410                                 if ( nodeName && currentNode.getAttribute( '_fck_bookmark' ) )
     410                                if ( nodeName && currentNode.getAttribute( '_cke_bookmark' ) )
    411411                                {
    412412                                        currentNode = currentNode.getNextSourceNode( true );
    413413                                        continue;
     
    813813        {
    814814                // Exclude the ones at header OR at tail,
    815815                // and ignore bookmark content between them.
    816                 var duoBrRegex = /(\S\s*)\n(?:\s|(<span[^>]+_fck_bookmark.*?\/span>))*\n(?!$)/gi,
     816                var duoBrRegex = /(\S\s*)\n(?:\s|(<span[^>]+_cke_bookmark.*?\/span>))*\n(?!$)/gi,
    817817                        blockName = preBlock.getName(),
    818818                        splitedHtml = replace( preBlock.getOuterHtml(),
    819819                                duoBrRegex,
     
    835835                var headBookmark = '',
    836836                        tailBookmark = '';
    837837
    838                 str = str.replace( /(^<span[^>]+_fck_bookmark.*?\/span>)|(<span[^>]+_fck_bookmark.*?\/span>$)/gi,
     838                str = str.replace( /(^<span[^>]+_cke_bookmark.*?\/span>)|(<span[^>]+_cke_bookmark.*?\/span>$)/gi,
    839839                        function( str, m1, m2 ){
    840840                                        m1 && ( headBookmark = m1 );
    841841                                        m2 && ( tailBookmark = m2 );
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy