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) { $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(/&gt;/g, ">").replace(/&lt;/g, "<").replace(/&amp;/g, "&") });
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 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