fix added extra line in front of content

This commit is contained in:
Ralf Becker 2018-10-30 15:38:31 +01:00
parent 28f270e98c
commit 6b633b2c50

View File

@ -491,6 +491,7 @@ var language_code = {
var name = "#"+"'.$_name.'".replace( /(:|\.|\[|\]|,|=|@)/g, "\\\$1" ); var name = "#"+"'.$_name.'".replace( /(:|\.|\[|\]|,|=|@)/g, "\\\$1" );
var height = "'.$_height.'"; var height = "'.$_height.'";
var width = "'.$_width.'"; var width = "'.$_width.'";
var value = jQuery(name).val();
tinymce.init({ tinymce.init({
selector: name, selector: name,
menubar: parseInt('. $rte_menubar.')? true : false, menubar: parseInt('. $rte_menubar.')? true : false,
@ -534,6 +535,7 @@ tinymce.init({
console.log(_editor); console.log(_editor);
_editor.execCommand("fontName", true,"'.$font.'"); _editor.execCommand("fontName", true,"'.$font.'");
_editor.execCommand("fontSize", true,"'.$font_size.$font_size_unit.'"); _editor.execCommand("fontSize", true,"'.$font_size.$font_size_unit.'");
_editor.setContent(value);
}, },
plugins: [ plugins: [
"print fullpage searchreplace autolink directionality "+ "print fullpage searchreplace autolink directionality "+