After setting my content with tinymce, I want to make the toolbar readonly. To achieve this, I subscribed to the editor's init function like so:
editor.on('init', () => {
editor.setContent(this.value);
if (this.disabled) {
editor.contentDocument.body.bgColor = '#eeeeee';
editor.toolbar = this.disabled ? !this.disabled : undefined;
editor.setMode('readonly');
}
However, when I set the editor toolbar to false, it still shows up. How can I remedy this issue?