mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
Added new functions to add or delete the tinymce editor with an element id
This commit is contained in:
parent
d12ef221b1
commit
1fd8a8957b
@ -913,3 +913,13 @@ function show_dialog_qrcode(dialog, text, where, width, height) {
|
|||||||
function openURLTagWindow(url) {
|
function openURLTagWindow(url) {
|
||||||
window.open(url, '','width=300, height=300, toolbar=no, location=no, directories=no, status=no, menubar=no');
|
window.open(url, '','width=300, height=300, toolbar=no, location=no, directories=no, status=no, menubar=no');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function removeTinyMCE(elementID) {console.log(elementID);
|
||||||
|
if (elementID.length > 0 && !isEmptyObject(tinyMCE))
|
||||||
|
tinyMCE.EditorManager.execCommand('mceRemoveControl', true, elementID);
|
||||||
|
}
|
||||||
|
|
||||||
|
function addTinyMCE(elementID) {
|
||||||
|
if (elementID.length > 0 && !isEmptyObject(tinyMCE))
|
||||||
|
tinyMCE.EditorManager.execCommand('mceAddControl', true, elementID);
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user