diff --git a/CHANGELOG.md b/CHANGELOG.md index dd28ddeb..6d24d17b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +# [7.1.4] +* Fix inserting tab character in lists. + # [7.1.3] * Fix ios cursor bug when word.length==1. diff --git a/lib/src/widgets/raw_editor.dart b/lib/src/widgets/raw_editor.dart index 4adb058e..9531cbde 100644 --- a/lib/src/widgets/raw_editor.dart +++ b/lib/src/widgets/raw_editor.dart @@ -669,8 +669,9 @@ class RawEditorState extends EditorState if (parentBlock.style.containsKey(Attribute.ol.key) || parentBlock.style.containsKey(Attribute.ul.key) || parentBlock.style.containsKey(Attribute.checked.key)) { - if (node.isNotEmpty && (node.first as leaf.Text).value.isNotEmpty - && controller.selection.base.offset > node.documentOffset) { + if (node.isNotEmpty && + (node.first as leaf.Text).value.isNotEmpty && + controller.selection.base.offset > node.documentOffset) { return insertTabCharacter(); } controller.indentSelection(!event.isShiftPressed); diff --git a/pubspec.yaml b/pubspec.yaml index 7adb8ef7..3a11ea64 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: 7.1.3 +version: 7.1.4 #author: bulletjournal homepage: https://bulletjournal.us/home/index.html repository: https://github.com/singerdmx/flutter-quill