При вставке огромного текста в редактор, он зависает.
На строке:
Скриншот:
На строке:
Код |
---|
// Handle tags from safari, chrome for (i = 0; i < l; i++) { re = arDivRules[i][0]; re = re.replace(/#TAG_BEGIN#/g, '\\[DIV\\]'); re = re.replace(/#TAG_END#/g, '\\[\\/DIV\\]'); re = re.replace(/\\\\/ig, '\\\\'); if (arDivRules[i][2] === true) while(true) { str = sContent.replace(new RegExp(re, 'igm'), arDivRules[i][1]); // <---- На этой строке зависает (строка №1200) if (str == sContent) break; else sContent = str; } else sContent = sContent.replace(new RegExp(re, 'igm'), arDivRules[i][1]); } |
Скриншот: