#11415 Fix tinymce editor html

This commit is contained in:
miguel angel rasteu 2023-06-26 15:17:45 +02:00
parent 372ef844e7
commit 7934551ff0
1 changed files with 9 additions and 4 deletions

View File

@ -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;