From 187dad1b8757398f1346e5c91c13a6ba984fd7ff Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Tue, 17 Dec 2013 23:19:30 +0100 Subject: [PATCH] make it possible to use multiple TinyMCE instances on one page --- copy_this/modules/hdi/hdi-tinymce/views/tinymce.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/copy_this/modules/hdi/hdi-tinymce/views/tinymce.tpl b/copy_this/modules/hdi/hdi-tinymce/views/tinymce.tpl index 99dc8d2..9777cba 100755 --- a/copy_this/modules/hdi/hdi-tinymce/views/tinymce.tpl +++ b/copy_this/modules/hdi/hdi-tinymce/views/tinymce.tpl @@ -3,7 +3,7 @@ var tinyMCE = null; function copyLongDescFromTinyMCE(sIdent) { - var editor = tinyMCE.activeEditor; + var editor = tinyMCE.get("editor_" + sIdent); if (editor && editor.isHidden() !== true) { var content = editor.getContent({format : 'raw'});