Ticket #3977: 3977.patch
File 3977.patch, 1.1 KB (added by , 16 years ago) |
---|
-
_source/plugins/styles/plugin.js
801 801 if ( match.length == 1 ) // one space, preserve it 802 802 return ' ' ; 803 803 else if ( offset == 0 ) // beginning of block 804 return CKEDITOR.tools.rep lace( ' ', match.length - 1 ) + ' ';804 return CKEDITOR.tools.repeat( ' ', match.length - 1 ) + ' '; 805 805 else // end of block 806 return ' ' + CKEDITOR.tools.rep lace( ' ', match.length - 1 );806 return ' ' + CKEDITOR.tools.repeat( ' ', match.length - 1 ); 807 807 } ) ; 808 808 809 809 // 3. Convert \n to <BR>. … … 812 812 blockHtml = blockHtml.replace( /[ \t]{2,}/g, 813 813 function ( match ) 814 814 { 815 return CKEDITOR.tools.rep lace( ' ', match.length - 1 ) + ' ' ;815 return CKEDITOR.tools.repeat( ' ', match.length - 1 ) + ' ' ; 816 816 } ) ; 817 817 818 818 var newBlockClone = newBlock.clone();