Hi everyone!
As you can see from the screenshots, when I switch my application to dark mode, the TinyMCE editor remains in light mode. Is there a way to update the editor skin dynamically?
public static TinyMce getEditor() {
TinyMce editor = new TinyMce();
editor.setWidthFull(); // L'editor occupa tutta la larghezza disponibile.
editor.setHeight("450px"); // Altezza fissa per l'editor.
// Configurazione di TinyMCE: plugins, toolbar, menubar, skin, ecc.
editor.configure(
"plugins: 'link lists table hr pagebreak image charmap preview', " + // Plugin abilitati
"toolbar: 'undo redo | blocks | bold italic | alignleft aligncenter alignright | bullist numlist | link image | table hr', " + // Pulsanti della toolbar
"menubar: true, " + // Abilita la barra dei menu
"skin: 'oxide', " + // Tema visivo dell'editor
"content_css: 'default', " + // Foglio di stile per il contenuto
"statusbar: true, " + // Abilita la barra di stato inferiore
"resize: true" // Permette il ridimensionamento manuale dell'editor
);
editor.addClassName("editor-field");
return editor;
}
Thank you!

