Ticket #6097: 6097.patch
File 6097.patch, 4.9 KB (added by , 14 years ago) |
---|
-
_source/core/dom/element.js
789 789 { 790 790 var child = children.getItem( i ); 791 791 792 if ( child.type == CKEDITOR.NODE_ELEMENT && child.getAttribute( '_ fck_bookmark' ) )792 if ( child.type == CKEDITOR.NODE_ELEMENT && child.getAttribute( '_cke_bookmark' ) ) 793 793 continue; 794 794 795 795 if ( child.type == CKEDITOR.NODE_ELEMENT && !child.isEmptyInlineRemoveable() … … 917 917 // queuing them to be moved later. (#5567) 918 918 var pendingNodes = []; 919 919 920 while ( sibling.getAttribute( '_ fck_bookmark' )920 while ( sibling.getAttribute( '_cke_bookmark' ) 921 921 || sibling.isEmptyInlineRemoveable() ) 922 922 { 923 923 pendingNodes.push( sibling ); -
_source/core/dom/range.js
305 305 return node.type != CKEDITOR.NODE_TEXT 306 306 && node.getName() in CKEDITOR.dtd.$removeEmpty 307 307 || !CKEDITOR.tools.trim( node.getText() ) 308 || node.getParent().hasAttribute( '_ fck_bookmark' );308 || node.getParent().hasAttribute( '_cke_bookmark' ); 309 309 } 310 310 311 311 var whitespaceEval = new CKEDITOR.dom.walker.whitespaces(), … … 399 399 var clone; 400 400 401 401 startNode = this.document.createElement( 'span' ); 402 startNode.setAttribute( '_ fck_bookmark', 1 );402 startNode.setAttribute( '_cke_bookmark', 1 ); 403 403 startNode.setStyle( 'display', 'none' ); 404 404 405 405 // For IE, it must have something inside, otherwise it may be … … 705 705 endNode = this.endContainer; 706 706 707 707 if ( startNode.is && startNode.is( 'span' ) 708 && startNode.hasAttribute( '_ fck_bookmark' ) )708 && startNode.hasAttribute( '_cke_bookmark' ) ) 709 709 this.setStartAt( startNode, CKEDITOR.POSITION_BEFORE_START ); 710 710 if ( endNode && endNode.is && endNode.is( 'span' ) 711 && endNode.hasAttribute( '_ fck_bookmark' ) )711 && endNode.hasAttribute( '_cke_bookmark' ) ) 712 712 this.setEndAt( endNode, CKEDITOR.POSITION_AFTER_END ); 713 713 }, 714 714 … … 914 914 // If this is a visible element. 915 915 // We need to check for the bookmark attribute because IE insists on 916 916 // 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' ) ) 918 918 { 919 919 // We'll accept it only if we need 920 920 // whitespace, and this is an inline … … 1073 1073 // If this is a visible element. 1074 1074 // We need to check for the bookmark attribute because IE insists on 1075 1075 // 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' ) ) 1077 1077 { 1078 1078 // We'll accept it only if we need 1079 1079 // whitespace, and this is an inline -
_source/core/dom/walker.js
374 374 { 375 375 return ( node && node.getName 376 376 && node.getName() == 'span' 377 && node.hasAttribute('_ fck_bookmark') );377 && node.hasAttribute('_cke_bookmark') ); 378 378 } 379 379 380 380 return function( node ) -
_source/plugins/styles/plugin.js
407 407 var nodeType = currentNode.type; 408 408 var nodeName = nodeType == CKEDITOR.NODE_ELEMENT ? currentNode.getName() : null; 409 409 410 if ( nodeName && currentNode.getAttribute( '_ fck_bookmark' ) )410 if ( nodeName && currentNode.getAttribute( '_cke_bookmark' ) ) 411 411 { 412 412 currentNode = currentNode.getNextSourceNode( true ); 413 413 continue; … … 813 813 { 814 814 // Exclude the ones at header OR at tail, 815 815 // 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, 817 817 blockName = preBlock.getName(), 818 818 splitedHtml = replace( preBlock.getOuterHtml(), 819 819 duoBrRegex, … … 835 835 var headBookmark = '', 836 836 tailBookmark = ''; 837 837 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, 839 839 function( str, m1, m2 ){ 840 840 m1 && ( headBookmark = m1 ); 841 841 m2 && ( tailBookmark = m2 );