From d0ad744c974e8609a57f1309e26769475d6d19fa Mon Sep 17 00:00:00 2001 From: gtyhn <122523252@qq.com> Date: Wed, 7 Jul 2021 19:34:34 +0800 Subject: [PATCH] solve placeholder issue, removing must focus --- lib/src/widgets/raw_editor.dart | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/src/widgets/raw_editor.dart b/lib/src/widgets/raw_editor.dart index 7cfb9103..002c62b1 100644 --- a/lib/src/widgets/raw_editor.dart +++ b/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"}]'));