From 6b633b2c50d279d5f1d60a91870e76512cfab95d Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 30 Oct 2018 15:38:31 +0100 Subject: [PATCH] fix added extra line in front of content --- api/src/Html.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/src/Html.php b/api/src/Html.php index 5fca13016a..5772852291 100644 --- a/api/src/Html.php +++ b/api/src/Html.php @@ -491,6 +491,7 @@ var language_code = { var name = "#"+"'.$_name.'".replace( /(:|\.|\[|\]|,|=|@)/g, "\\\$1" ); var height = "'.$_height.'"; var width = "'.$_width.'"; +var value = jQuery(name).val(); tinymce.init({ selector: name, menubar: parseInt('. $rte_menubar.')? true : false, @@ -534,6 +535,7 @@ tinymce.init({ console.log(_editor); _editor.execCommand("fontName", true,"'.$font.'"); _editor.execCommand("fontSize", true,"'.$font_size.$font_size_unit.'"); + _editor.setContent(value); }, plugins: [ "print fullpage searchreplace autolink directionality "+