Added TinyMCE editor functions & Updated TinyMCE to TinyMCE-jQuery 3.4b1
This commit is contained in:
@@ -42,6 +42,10 @@ var SearchReplaceDialog = {
|
||||
ca = f[m + '_panel_casesensitivebox'].checked;
|
||||
rs = f['replace_panel_replacestring'].value;
|
||||
|
||||
if (tinymce.isIE) {
|
||||
r = ed.getDoc().selection.createRange();
|
||||
}
|
||||
|
||||
if (s == '')
|
||||
return;
|
||||
|
||||
@@ -75,6 +79,10 @@ var SearchReplaceDialog = {
|
||||
r.select();
|
||||
replace();
|
||||
fo = 1;
|
||||
|
||||
if (b) {
|
||||
r.moveEnd("character", -(rs.length)); // Otherwise will loop forever
|
||||
}
|
||||
}
|
||||
|
||||
tinyMCEPopup.storeSelection();
|
||||
@@ -102,6 +110,10 @@ var SearchReplaceDialog = {
|
||||
se.collapse(b);
|
||||
r = se.getRng();
|
||||
|
||||
if (tinymce.isIE) {
|
||||
r = ed.getDoc().selection.createRange();
|
||||
}
|
||||
|
||||
// Whats the point
|
||||
if (!s)
|
||||
return;
|
||||
|
Reference in New Issue
Block a user