make it possible to use multiple TinyMCE instances on one page

Cette révision appartient à :
Marten Seemann 2013-12-17 23:19:30 +01:00
Parent faffc8ea68
révision 187dad1b87

Voir le fichier

@ -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'});