make it possible to use multiple TinyMCE instances on one page

This commit is contained in:
Marten Seemann 2013-12-17 23:19:30 +01:00
parent faffc8ea68
commit 187dad1b87

View File

@ -3,7 +3,7 @@
var tinyMCE = null; var tinyMCE = null;
function copyLongDescFromTinyMCE(sIdent) function copyLongDescFromTinyMCE(sIdent)
{ {
var editor = tinyMCE.activeEditor; var editor = tinyMCE.get("editor_" + sIdent);
if (editor && editor.isHidden() !== true) if (editor && editor.isHidden() !== true)
{ {
var content = editor.getContent({format : 'raw'}); var content = editor.getContent({format : 'raw'});