updates
This commit is contained in:
parent
d899161791
commit
cb5b75655a
@ -179,13 +179,9 @@ class blaTinyMceOxViewConfig extends blaTinyMceOxViewConfig_parent
|
|||||||
|
|
||||||
$sCopyLongDescFromTinyMCE = 'function copyLongDescFromTinyMCE(sIdent) {
|
$sCopyLongDescFromTinyMCE = 'function copyLongDescFromTinyMCE(sIdent) {
|
||||||
var editor = tinymce.get("editor_"+sIdent);
|
var editor = tinymce.get("editor_"+sIdent);
|
||||||
if (editor) { /* && editor.isHidden() !== true */
|
var content = (editor && !editor.isHidden()) ? editor.getContent() : document.getElementById("editor_"+sIdent).value;
|
||||||
if(editor.isHidden()) editor.show();
|
document.getElementsByName("editval[" + sIdent + "]").item(0).value = content.replace(/\[{([^\]]*?)}\]/g, function(m) { return m.replace(/>/g, ">").replace(/</g, "<").replace(/&/g, "&") });
|
||||||
var content = editor.getContent().replace(/\[{([^\]]*?)}\]/g, function(m) { return m.replace(/>/g, ">").replace(/</g, "<").replace(/&/g, "&") });
|
|
||||||
document.getElementsByName("editval[" + sIdent + "]").item(0).value = content;
|
|
||||||
return true;
|
return true;
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var origCopyLongDesc = copyLongDesc;
|
var origCopyLongDesc = copyLongDesc;
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 133 KiB After Width: | Height: | Size: 2.2 KiB |
Loading…
Reference in New Issue
Block a user