diff --git a/CHANGELOG.md b/CHANGELOG.md index 0df24919..a7a5bd44 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# [6.3.2] +* Added `unknownEmbedBuilder` to QuillEditor. +* Fix error style when input chinese japanese or korean. + # [6.3.1] * Add color property to the basic factory function. diff --git a/lib/src/widgets/editor.dart b/lib/src/widgets/editor.dart index 7dae5136..4160e0bb 100644 --- a/lib/src/widgets/editor.dart +++ b/lib/src/widgets/editor.dart @@ -494,12 +494,12 @@ class QuillEditorState extends State readOnly, ) => _buildCustomBlockEmbed( - node, - context, - controller, - readOnly, - widget.unknownEmbedBuilder, - ), + node, + context, + controller, + readOnly, + widget.unknownEmbedBuilder, + ), linkActionPickerDelegate: widget.linkActionPickerDelegate, customStyleBuilder: widget.customStyleBuilder, floatingCursorDisabled: widget.floatingCursorDisabled, @@ -541,7 +541,7 @@ class QuillEditorState extends State EmbedsBuilder? unknownEmbedBuilder, ) { final builders = widget.embedBuilders; - + var _node = node; // Creates correct node for custom embed if (node.value.type == BlockEmbed.customType) { @@ -555,7 +555,7 @@ class QuillEditorState extends State } } } - + if (unknownEmbedBuilder != null) { return unknownEmbedBuilder(context, controller, _node, readOnly); } diff --git a/pubspec.yaml b/pubspec.yaml index 68f4cdfd..cd284606 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_quill description: A rich text editor supporting mobile and web (Demo App @ bulletjournal.us) -version: 6.3.1 +version: 6.3.2 #author: bulletjournal homepage: https://bulletjournal.us/home/index.html repository: https://github.com/singerdmx/flutter-quill