wysiwyg-editor icon indicating copy to clipboard operation
wysiwyg-editor copied to clipboard

Placeholder text should be hidden if editor is disabled

Open rogersteblerbsi opened this issue 6 years ago • 1 comments

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

rogersteblerbsi avatar Nov 28 '19 09:11 rogersteblerbsi

You can use the following snippet instead

var editor = new FroalaEditor('div#froala-editor', {
	placeholderText: ""
}, function () {
  editor.edit.off();
})

AsheshL avatar Dec 20 '23 06:12 AsheshL