Ticket #3385: 3385.patch
File 3385.patch, 4.6 KB (added by , 14 years ago) |
---|
-
_source/core/dom/elementpath.js
101 101 102 102 return true; 103 103 } 104 // %REMOVE_START% 105 ,toString : function() 106 { 107 var str =""; 108 for ( var i = 0 ; i < this.elements.length ; i++ ) 109 { 110 var element = this.elements[ i ]; 111 str += 112 // Path block decorated as " 113 ( element.equals( this.block ) ? 114 ( '\"' + element.getName() + '\"' ) : 115 // Path block limit decorated as * 116 ( element.equals( this.blockLimit )? 117 ( '*' + element.getName() + '*' ) : element.getName() ) )+ 118 ( i == this.elements.length -1 ? '' : '->' ); 119 } 120 return str + '\n'; 121 } 122 // %REMOVE_END% 104 123 }; -
_source/core/dom/nodelist.js
20 20 var $node = this.$[ index ]; 21 21 return $node ? new CKEDITOR.dom.node( $node ) : null; 22 22 } 23 24 // %REMOVE_START% 25 ,toString : function() 26 { 27 var str = ""; 28 for ( var i = 0 ; i < this.count() ; i++ ) 29 { 30 str += CKEDITOR.tools.rtrim( this.getItem( i ).toString() ); 31 } 32 return str + '\n'; 33 } 34 // %REMOVE_END% 23 35 }; -
_source/core/dom/documentfragment.js
25 25 { 26 26 node = node.$; 27 27 node.parentNode.insertBefore( this.$, node.nextSibling ); 28 }, 29 30 getHtml : function() 31 { 32 var str = "", 33 childList = this.getChildren(); 34 for ( var i = 0; i < childList.count(); i++ ) 35 { 36 var child = childList.getItem( i ); 37 str += ( child.getOuterHtml? 38 child.getOuterHtml() : child.getText() ); 39 } 40 return str; 41 }, 42 43 getOuterHtml : function() 44 { 45 return this.getHtml(); 28 46 } 47 29 48 }, 30 49 true, 31 50 { … … 43 62 'getDocument' : 1, 44 63 'getChildCount' : 1, 45 64 'getChild' : 1, 46 'getChildren' : 1 65 'getChildren' : 1, 66 'getHtml' : 1, 67 'getOuterHtml' : 1 68 ,'toString' : 1 // %REMOVE_LINE% 47 69 } ); -
_source/core/dom/range.js
1527 1527 1528 1528 return container.getChild[ this.endOffset - 1 ] || container ; 1529 1529 } 1530 // %REMOVE_START% 1531 ,toString : function() 1532 { 1533 if ( this.collapsed ) 1534 { 1535 // TODO: print previous and next source node by range iterator; 1536 return '^' + '\n'; 1537 } 1538 else 1539 return '[' + CKEDITOR.tools.rtrim( 1540 this.cloneContents().toString() ) + ']' + '\n'; 1541 } 1542 // %REMOVE_END% 1530 1543 }; 1531 1544 })(); 1532 1545 -
_source/core/dom/node.js
630 630 } 631 631 } 632 632 } 633 633 634 } 634 635 ); -
_source/core/dom/text.js
108 108 else 109 109 return this.$.nodeValue.substring( indexA, indexB ); 110 110 } 111 }); 111 // %REMOVE_START% 112 ,toString : function() 113 { 114 return '#' + this.getText() + '\n'; 115 } 116 // %REMOVE_END% 117 }, true ); -
_source/core/dom/walker.js
218 218 { 219 219 return iterate.call( this, true, true ) !== false; 220 220 } 221 // %REMOVE_START% 222 ,toString : function() 223 { 224 return ( this.startNode? this.startNode.toString() : '^' )+ '...' 225 + ( this.current? this.current.toString() + '...' : '' ) 226 + ( this.endNode? this.endNode.toString() : '$' ) 227 + '\n'; 228 } 229 // %REMOVE_END% 221 230 } 222 231 }); 223 232 })(); -
_source/core/dom/element.js
1324 1324 newNode.$._cke_expando = this.$._cke_expando; 1325 1325 this.$ = newNode.$; 1326 1326 } 1327 }); 1327 // %REMOVE_START% 1328 ,toString : function() 1329 { 1330 return this.getOuterHtml() + '\n'; 1331 } 1332 // %REMOVE_END% 1333 }, true );