Upgrade to 4.0.7

pull/705/head
X Code 3 years ago
parent 61551d0a48
commit a3a8215b4c
  1. 3
      CHANGELOG.md
  2. 3
      lib/src/models/documents/nodes/line.dart
  3. 3
      lib/src/widgets/raw_editor.dart
  4. 2
      pubspec.yaml

@ -1,3 +1,6 @@
# [4.0.7]
* Refactor getPlainText (better handling of blank lines and lines with multiple markups.
# [4.0.6] # [4.0.6]
* Bug fix for copying text with new lines. * Bug fix for copying text with new lines.

@ -486,8 +486,7 @@ class Line extends Container<Leaf?> {
// blank line // blank line
plainText.write('\n'); plainText.write('\n');
_len -= 1; _len -= 1;
} } else {
else {
_len = _getNodeText(node, plainText, offset, _len); _len = _getNodeText(node, plainText, offset, _len);
while (!node!.isLast && _len > 0) { while (!node!.isLast && _len > 0) {

@ -987,8 +987,7 @@ class RawEditorState extends EditorState
try { try {
// ignore exception when paste window is at end of document // ignore exception when paste window is at end of document
bringIntoView(textEditingValue.selection.extent); bringIntoView(textEditingValue.selection.extent);
} } catch (_) {}
catch(_){};
hideToolbar(); hideToolbar();
} }
} }

@ -1,6 +1,6 @@
name: flutter_quill name: flutter_quill
description: A rich text editor supporting mobile and web (Demo App @ bulletjournal.us) description: A rich text editor supporting mobile and web (Demo App @ bulletjournal.us)
version: 4.0.6 version: 4.0.7
#author: bulletjournal #author: bulletjournal
homepage: https://bulletjournal.us/home/index.html homepage: https://bulletjournal.us/home/index.html
repository: https://github.com/singerdmx/flutter-quill repository: https://github.com/singerdmx/flutter-quill

Loading…
Cancel
Save