| Server IP : 54.36.91.62 / Your IP : 216.73.217.112 Web Server : Apache System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : coopiak ( 151928) PHP Version : 8.3.23 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/coopiak/amisdesseniors-fr/previous-website/06/media/com_jce/editor/js/ |
Upload File : |
/* jce - 2.9.54 | 2023-11-12 | https://www.joomlacontenteditor.net | Copyright (C) 2006 - 2023 Ryan Demmer. All rights reserved | GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html */
import {
JoomlaEditor,
JoomlaEditorDecorator
} from "editor-api";
class JceDecorator extends JoomlaEditorDecorator {
getValue() {
return WfEditor.getContent(this.instance.id);
}
setValue(value) {
return WfEditor.setContent(this.instance.id, value), this;
}
getSelection() {
return WfEditor.getSelection(this.instance.id, {
format: "text"
});
}
replaceSelection(value) {
return WfEditor.insert(this.instance.id, value), this;
}
disable(enable) {
return this.instance.setMode(enable ? "design" : "readonly"), this;
}
toggle(show) {
return WfEditor.toggleEditor(this.instance.getElement()), !1;
}
}
tinyMCE.onAddEditor.add(function(mgr, editor) {
var elm = editor.getElement();
"advanced" === editor.settings.theme && (editor = new JceDecorator(editor, "jce", elm.id),
JoomlaEditor.register(editor));
}), window.JceDecorator = JceDecorator;