From 869503c2d3c5f0f15857d330e76f439080101617 Mon Sep 17 00:00:00 2001 From: gtyhn <122523252@qq.com> Date: Thu, 8 Jul 2021 00:44:56 +0800 Subject: [PATCH] solve placeholder issue, removing must focus (#286) * fix the OnImagePickCallback return value * 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"}]'));