#10126 added button save in visual console

This commit is contained in:
Daniel Cebrian 2023-01-12 12:42:48 +01:00
parent 2fb7acc871
commit aff91aa1b2
1 changed files with 6 additions and 0 deletions

View File

@ -862,9 +862,15 @@ ui_require_javascript_file('tiny_mce', 'include/javascript/tiny_mce/');
height: 300,
autoOpen: false,
beforeClose: function() {
console.log("Entra");
var id_layout_data = $("#active_id_layout_data").val();
var label = tinyMCE.activeEditor.getContent();
$("#hidden-label_" + id_layout_data).val(label);
},
buttons: {
Save: function() {
$(this).dialog("close");
}
}
});