wysiwyg-editor
wysiwyg-editor copied to clipboard
Placeholder text should be hidden if editor is disabled
Expected behavior.
When the editor is disabled the placeholder text should not be visible even when the editor does not have content.
Actual behavior.
When the editor is disabled and has no content it shows the placeholder text "Type something" but you can't type anything.
Steps to reproduce the problem.
Disable the editor using editor.edit.off()
https://jsfiddle.net/50yt49rL/
Editor version.
3.0.6
OS.
Win 10
Browser.
Chrome 78.0.3904.108
You can use the following snippet instead
var editor = new FroalaEditor('div#froala-editor', {
placeholderText: ""
}, function () {
editor.edit.off();
})