mirror of
https://github.com/documize/community.git
synced 2025-07-20 21:59:42 +02:00
Update to TinyMCE latest build
This commit is contained in:
parent
412127811e
commit
2d8dc62ca4
108 changed files with 7810 additions and 7897 deletions
|
@ -216,7 +216,7 @@ var searchreplace = (function () {
|
|||
}
|
||||
return count;
|
||||
}
|
||||
var $_9xvdgmihjcg89dcm = { findAndReplaceDOMText: findAndReplaceDOMText };
|
||||
var $_429wuniijcun3yxr = { findAndReplaceDOMText: findAndReplaceDOMText };
|
||||
|
||||
var getElmIndex = function (elm) {
|
||||
var value = elm.getAttribute('data-mce-index');
|
||||
|
@ -231,7 +231,7 @@ var searchreplace = (function () {
|
|||
marker.className = 'mce-match-marker';
|
||||
node = editor.getBody();
|
||||
done(editor, currentIndexState, false);
|
||||
return $_9xvdgmihjcg89dcm.findAndReplaceDOMText(regex, node, marker, false, editor.schema);
|
||||
return $_429wuniijcun3yxr.findAndReplaceDOMText(regex, node, marker, false, editor.schema);
|
||||
};
|
||||
var unwrap = function (node) {
|
||||
var parentNode = node.parentNode;
|
||||
|
@ -381,7 +381,7 @@ var searchreplace = (function () {
|
|||
var hasPrev = function (editor, currentIndexState) {
|
||||
return findSpansByIndex(editor, currentIndexState.get() - 1).length > 0;
|
||||
};
|
||||
var $_8a46j8ifjcg89dcg = {
|
||||
var $_4ic2iwigjcun3yxi = {
|
||||
done: done,
|
||||
find: find,
|
||||
next: next,
|
||||
|
@ -393,19 +393,19 @@ var searchreplace = (function () {
|
|||
|
||||
var get = function (editor, currentIndexState) {
|
||||
var done = function (keepEditorSelection) {
|
||||
return $_8a46j8ifjcg89dcg.done(editor, currentIndexState, keepEditorSelection);
|
||||
return $_4ic2iwigjcun3yxi.done(editor, currentIndexState, keepEditorSelection);
|
||||
};
|
||||
var find = function (text, matchCase, wholeWord) {
|
||||
return $_8a46j8ifjcg89dcg.find(editor, currentIndexState, text, matchCase, wholeWord);
|
||||
return $_4ic2iwigjcun3yxi.find(editor, currentIndexState, text, matchCase, wholeWord);
|
||||
};
|
||||
var next = function () {
|
||||
return $_8a46j8ifjcg89dcg.next(editor, currentIndexState);
|
||||
return $_4ic2iwigjcun3yxi.next(editor, currentIndexState);
|
||||
};
|
||||
var prev = function () {
|
||||
return $_8a46j8ifjcg89dcg.prev(editor, currentIndexState);
|
||||
return $_4ic2iwigjcun3yxi.prev(editor, currentIndexState);
|
||||
};
|
||||
var replace = function (text, forward, all) {
|
||||
return $_8a46j8ifjcg89dcg.replace(editor, currentIndexState, text, forward, all);
|
||||
return $_4ic2iwigjcun3yxi.replace(editor, currentIndexState, text, forward, all);
|
||||
};
|
||||
return {
|
||||
done: done,
|
||||
|
@ -415,15 +415,15 @@ var searchreplace = (function () {
|
|||
replace: replace
|
||||
};
|
||||
};
|
||||
var $_anl7aeiejcg89dcd = { get: get };
|
||||
var $_27nri5ifjcun3yxd = { get: get };
|
||||
|
||||
var open = function (editor, currentIndexState) {
|
||||
var last = {}, selectedText;
|
||||
editor.undoManager.add();
|
||||
selectedText = Tools.trim(editor.selection.getContent({ format: 'text' }));
|
||||
function updateButtonStates() {
|
||||
win.statusbar.find('#next').disabled($_8a46j8ifjcg89dcg.hasNext(editor, currentIndexState) === false);
|
||||
win.statusbar.find('#prev').disabled($_8a46j8ifjcg89dcg.hasPrev(editor, currentIndexState) === false);
|
||||
win.statusbar.find('#next').disabled($_4ic2iwigjcun3yxi.hasNext(editor, currentIndexState) === false);
|
||||
win.statusbar.find('#prev').disabled($_4ic2iwigjcun3yxi.hasPrev(editor, currentIndexState) === false);
|
||||
}
|
||||
function notFoundAlert() {
|
||||
editor.windowManager.alert('Could not find the specified string.', function () {
|
||||
|
@ -436,7 +436,7 @@ var searchreplace = (function () {
|
|||
align: 'center',
|
||||
onClose: function () {
|
||||
editor.focus();
|
||||
$_8a46j8ifjcg89dcg.done(editor, currentIndexState);
|
||||
$_4ic2iwigjcun3yxi.done(editor, currentIndexState);
|
||||
editor.undoManager.add();
|
||||
},
|
||||
onSubmit: function (e) {
|
||||
|
@ -446,20 +446,20 @@ var searchreplace = (function () {
|
|||
wholeWord = win.find('#words').checked();
|
||||
text = win.find('#find').value();
|
||||
if (!text.length) {
|
||||
$_8a46j8ifjcg89dcg.done(editor, currentIndexState, false);
|
||||
$_4ic2iwigjcun3yxi.done(editor, currentIndexState, false);
|
||||
win.statusbar.items().slice(1).disabled(true);
|
||||
return;
|
||||
}
|
||||
if (last.text === text && last.caseState === caseState && last.wholeWord === wholeWord) {
|
||||
if (!$_8a46j8ifjcg89dcg.hasNext(editor, currentIndexState)) {
|
||||
if (!$_4ic2iwigjcun3yxi.hasNext(editor, currentIndexState)) {
|
||||
notFoundAlert();
|
||||
return;
|
||||
}
|
||||
$_8a46j8ifjcg89dcg.next(editor, currentIndexState);
|
||||
$_4ic2iwigjcun3yxi.next(editor, currentIndexState);
|
||||
updateButtonStates();
|
||||
return;
|
||||
}
|
||||
count = $_8a46j8ifjcg89dcg.find(editor, currentIndexState, text, caseState, wholeWord);
|
||||
count = $_4ic2iwigjcun3yxi.find(editor, currentIndexState, text, caseState, wholeWord);
|
||||
if (!count) {
|
||||
notFoundAlert();
|
||||
}
|
||||
|
@ -483,7 +483,7 @@ var searchreplace = (function () {
|
|||
text: 'Replace',
|
||||
disabled: true,
|
||||
onclick: function () {
|
||||
if (!$_8a46j8ifjcg89dcg.replace(editor, currentIndexState, win.find('#replace').value())) {
|
||||
if (!$_4ic2iwigjcun3yxi.replace(editor, currentIndexState, win.find('#replace').value())) {
|
||||
win.statusbar.items().slice(1).disabled(true);
|
||||
currentIndexState.set(-1);
|
||||
last = {};
|
||||
|
@ -494,7 +494,7 @@ var searchreplace = (function () {
|
|||
text: 'Replace all',
|
||||
disabled: true,
|
||||
onclick: function () {
|
||||
$_8a46j8ifjcg89dcg.replace(editor, currentIndexState, win.find('#replace').value(), true, true);
|
||||
$_4ic2iwigjcun3yxi.replace(editor, currentIndexState, win.find('#replace').value(), true, true);
|
||||
win.statusbar.items().slice(1).disabled(true);
|
||||
last = {};
|
||||
}
|
||||
|
@ -508,7 +508,7 @@ var searchreplace = (function () {
|
|||
name: 'prev',
|
||||
disabled: true,
|
||||
onclick: function () {
|
||||
$_8a46j8ifjcg89dcg.prev(editor, currentIndexState);
|
||||
$_4ic2iwigjcun3yxi.prev(editor, currentIndexState);
|
||||
updateButtonStates();
|
||||
}
|
||||
},
|
||||
|
@ -517,7 +517,7 @@ var searchreplace = (function () {
|
|||
name: 'next',
|
||||
disabled: true,
|
||||
onclick: function () {
|
||||
$_8a46j8ifjcg89dcg.next(editor, currentIndexState);
|
||||
$_4ic2iwigjcun3yxi.next(editor, currentIndexState);
|
||||
updateButtonStates();
|
||||
}
|
||||
}
|
||||
|
@ -558,18 +558,18 @@ var searchreplace = (function () {
|
|||
}
|
||||
});
|
||||
};
|
||||
var $_26hiwoijjcg89dcr = { open: open };
|
||||
var $_dlu8oxikjcun3yy0 = { open: open };
|
||||
|
||||
var register = function (editor, currentIndexState) {
|
||||
editor.addCommand('SearchReplace', function () {
|
||||
$_26hiwoijjcg89dcr.open(editor, currentIndexState);
|
||||
$_dlu8oxikjcun3yy0.open(editor, currentIndexState);
|
||||
});
|
||||
};
|
||||
var $_427avkiijcg89dcq = { register: register };
|
||||
var $_z7c3ijjcun3yxy = { register: register };
|
||||
|
||||
var showDialog = function (editor, currentIndexState) {
|
||||
return function () {
|
||||
$_26hiwoijjcg89dcr.open(editor, currentIndexState);
|
||||
$_dlu8oxikjcun3yy0.open(editor, currentIndexState);
|
||||
};
|
||||
};
|
||||
var register$1 = function (editor, currentIndexState) {
|
||||
|
@ -586,13 +586,13 @@ var searchreplace = (function () {
|
|||
});
|
||||
editor.shortcuts.add('Meta+F', '', showDialog(editor, currentIndexState));
|
||||
};
|
||||
var $_5v2cogikjcg89dcu = { register: register$1 };
|
||||
var $_agj0c5iljcun3yy4 = { register: register$1 };
|
||||
|
||||
PluginManager.add('searchreplace', function (editor) {
|
||||
var currentIndexState = Cell(-1);
|
||||
$_427avkiijcg89dcq.register(editor, currentIndexState);
|
||||
$_5v2cogikjcg89dcu.register(editor, currentIndexState);
|
||||
return $_anl7aeiejcg89dcd.get(editor, currentIndexState);
|
||||
$_z7c3ijjcun3yxy.register(editor, currentIndexState);
|
||||
$_agj0c5iljcun3yy4.register(editor, currentIndexState);
|
||||
return $_27nri5ifjcun3yxd.get(editor, currentIndexState);
|
||||
});
|
||||
var Plugin = function () {
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue