solve placeholder issue, removing must focus

pull/286/head
gtyhn 4 years ago
parent 0e661e12f0
commit d0ad744c97
  1. 1
      lib/src/widgets/raw_editor.dart

@ -141,7 +141,6 @@ class RawEditorState extends EditorState
var _doc = widget.controller.document;
if (_doc.isEmpty() &&
!widget.focusNode.hasFocus &&
widget.placeholder != null) {
_doc = Document.fromJson(jsonDecode(
'[{"attributes":{"placeholder":true},"insert":"${widget.placeholder}\\n"}]'));

Loading…
Cancel
Save