#11415 Fix tinymce editor html
This commit is contained in:
parent
372ef844e7
commit
7934551ff0
|
@ -57,9 +57,14 @@ HTML::printForm(
|
|||
);
|
||||
|
||||
$output .= '<script>';
|
||||
$output .= 'dashboardInitTinyMce("'.ui_get_full_url(false, false, false, false).'")';
|
||||
$output .= '</script>';
|
||||
$output .= '<script>';
|
||||
$output .= "tinymce.init({selector: '#textarea_text'});";
|
||||
$output .= 'tinymce.init({
|
||||
selector: "#textarea_text",
|
||||
setup : function(ed) {
|
||||
ed.onChange.add(function(e) {
|
||||
tinyMCE.triggerSave();
|
||||
console.log($("#textarea_text").val());
|
||||
});
|
||||
}
|
||||
});';
|
||||
$output .= '</script>';
|
||||
echo $output;
|
||||
|
|
Loading…
Reference in New Issue