mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 08:14:38 +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) {
|
||||
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