Uncheck PHP after enable TinyMCE

This needs to be rewritten anyway
This commit is contained in:
slawkens 2023-11-11 12:22:42 +01:00
parent 3fb9b1ae2f
commit 193e18523d

View File

@ -66,7 +66,8 @@
if (!this.checked) {
tinymce.remove('#editor');
} else {
if (tinymce.get('#editor')!== null){
$('#php').prop('checked', false);
if (tinymce.get('#editor')!== null) {
tinymce.activeEditor.show();
} else {
tinymceInit();