Changes between Version 3 and Version 4 of Ticket #9295, comment 4


Ignore:
Timestamp:
May 9, 2013, 10:52:11 AM (6 years ago)
Author:
liujunhao
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #9295, comment 4

    v3 v4  
    11You can replace the function mergeSiblings with this code.
    22mergeSiblings: (function() {
    3             function i(j, k, l) {
    4                 if (k && k.type == 1) {
    5                     var m = [];
    6                   //myself code start
     3 //myself code start
    74                    var tempnode;
    85                    for(var tttt in j){
     
    2825                    var regSpanEnd = new RegExp(">naps\\/<");//for replace</span>
    2926                    var reglist = tempcontent.match(regExp);//get <span>
    30                     var reverseStr="";//temp reverse node innerHtml
    3127                    tempcontent= tempcontent.replace(regExp,"");//for remove <span>
    3228                    for(var count in reglist){
     29                     var reverseStr="";//temp reverse node innerHtml
    3330                        //reverse start
    3431                        for(var iiii=0;iiii<tempcontent.length;iiii++){
     
    4845                    tempnode.innerHTML = tempcontent;//set node innerHtml
    4946  //myself code end
     47            function i(j, k, l) {
     48                if (k && k.type == 1) {
     49                    var m = [];
     50                 
    5051
    5152                    while (k.data('cke-bookmark') || k.isEmptyInlineRemoveable()) {
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy