This commit is contained in:
Marat 2016-09-14 15:59:16 +02:00
parent d899161791
commit cb5b75655a
2 changed files with 3 additions and 7 deletions

View File

@ -179,13 +179,9 @@ class blaTinyMceOxViewConfig extends blaTinyMceOxViewConfig_parent
$sCopyLongDescFromTinyMCE = 'function copyLongDescFromTinyMCE(sIdent) {
var editor = tinymce.get("editor_"+sIdent);
if (editor) { /* && editor.isHidden() !== true */
if(editor.isHidden()) editor.show();
var content = editor.getContent().replace(/\[{([^\]]*?)}\]/g, function(m) { return m.replace(/&gt;/g, ">").replace(/&lt;/g, "<").replace(/&amp;/g, "&") });
document.getElementsByName("editval[" + sIdent + "]").item(0).value = content;
return true;
}
return false;
var content = (editor && !editor.isHidden()) ? editor.getContent() : document.getElementById("editor_"+sIdent).value;
document.getElementsByName("editval[" + sIdent + "]").item(0).value = content.replace(/\[{([^\]]*?)}\]/g, function(m) { return m.replace(/&gt;/g, ">").replace(/&lt;/g, "<").replace(/&amp;/g, "&") });
return true;
}
var origCopyLongDesc = copyLongDesc;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 133 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB