diff --git a/plugin/editor/ckeditor4/editor.lib.php b/plugin/editor/ckeditor4/editor.lib.php
index 6f53df5fb..06ef5a1f3 100644
--- a/plugin/editor/ckeditor4/editor.lib.php
+++ b/plugin/editor/ckeditor4/editor.lib.php
@@ -13,7 +13,7 @@ function editor_html($id, $content, $is_dhtml_editor=true)
if ($is_dhtml_editor)
$html .= '';
- if ($js) {
+ if ($is_dhtml_editor && $js) {
$html .= "\n".'';
$html .= "\n".'';
$html .= "\n".'';