solve placeholder issue, removing must focus (#286)

* fix the OnImagePickCallback return value

* solve placeholder issue, removing must focus
pull/289/head
gtyhn 4 years ago committed by GitHub
parent 503127dfa3
commit 869503c2d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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