File tree Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ export 'src/render/rich_text/flowy_rich_text.dart';
33
33
export 'src/render/selection_menu/selection_menu_widget.dart' ;
34
34
export 'src/l10n/l10n.dart' ;
35
35
export 'src/render/style/plugin_styles.dart' ;
36
+ export 'src/render/style/editor_style.dart' ;
36
37
export 'src/plugins/markdown/encoder/delta_markdown_encoder.dart' ;
37
38
export 'src/plugins/markdown/encoder/document_markdown_encoder.dart' ;
38
39
export 'src/plugins/markdown/encoder/parser/node_parser.dart' ;
Original file line number Diff line number Diff line change @@ -57,7 +57,10 @@ extension CommandExtension on EditorState {
57
57
Selection selection,
58
58
) {
59
59
List <String > res = [];
60
- if (! selection.isCollapsed) {
60
+ if (selection.isSingle) {
61
+ final plainText = textNodes.first.toPlainText ();
62
+ res.add (plainText.substring (selection.startIndex, selection.endIndex));
63
+ } else if (! selection.isCollapsed) {
61
64
for (var i = 0 ; i < textNodes.length; i++ ) {
62
65
final plainText = textNodes[i].toPlainText ();
63
66
if (i == 0 ) {
Original file line number Diff line number Diff line change @@ -112,6 +112,7 @@ class _AppFlowyKeyboardState extends State<AppFlowyKeyboard>
112
112
isFocus = false ;
113
113
this .showCursor = showCursor;
114
114
_focusNode.unfocus (disposition: disposition);
115
+ _onFocusChange (false );
115
116
}
116
117
117
118
@override
You can’t perform that action at this time.
0 commit comments