Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.
Dart blogconfluence-alternativecontent-managementcontent-servicesdocumentationflutternote-takingnotion-alternativeproject-managementtask-managementteam-collaborationwiki
fix: delete style widget error
Lucas.Xu6f32f749bc10
diff --git a/frontend/app_flowy/packages/flowy_editor/lib/service/editor_service.dart b/frontend/app_flowy/packages/flowy_editor/lib/service/editor_service.dartindex 0593706f89..38156dbb6b 100644--- a/frontend/app_flowy/packages/flowy_editor/lib/service/editor_service.dart+++ b/frontend/app_flowy/packages/flowy_editor/lib/service/editor_service.dart@@ -1,4 +1,3 @@-import 'package:flowy_editor/render/rich_text/rich_text.dart';import 'package:flutter/material.dart';import 'package:flowy_editor/editor_state.dart';@@ -8,6 +7,7 @@ import 'package:flowy_editor/render/rich_text/checkbox_text.dart';import 'package:flowy_editor/render/rich_text/heading_text.dart';import 'package:flowy_editor/render/rich_text/number_list_text.dart';import 'package:flowy_editor/render/rich_text/quoted_text.dart';+import 'package:flowy_editor/render/rich_text/rich_text.dart';import 'package:flowy_editor/service/input_service.dart';import 'package:flowy_editor/service/internal_key_event_handlers/arrow_keys_handler.dart';import 'package:flowy_editor/service/internal_key_event_handlers/copy_paste_handler.dart';diff --git a/frontend/app_flowy/packages/flowy_editor/lib/service/internal_key_event_handlers/enter_without_shift_in_text_node_handler.dart b/frontend/app_flowy/packages/flowy_editor/lib/service/internal_key_event_handlers/enter_without_shift_in_text_node_handler.dartindex cf71830386..d2d3b14450 100644--- a/frontend/app_flowy/packages/flowy_editor/lib/service/internal_key_event_handlers/enter_without_shift_in_text_node_handler.dart+++ b/frontend/app_flowy/packages/flowy_editor/lib/service/internal_key_event_handlers/enter_without_shift_in_text_node_handler.dart@@ -1,6 +1,7 @@import 'package:flutter/material.dart';import 'package:flutter/services.dart';+import 'package:flowy_editor/document/attributes.dart';import 'package:flowy_editor/document/node.dart';import 'package:flowy_editor/document/position.dart';import 'package:flowy_editor/document/selection.dart';@@ -91,7 +92,8 @@ FlowyKeyEventHandler enterWithoutShiftInTextNodesHandler =..insertNode(textNode.path.next,textNode.copyWith(- attributes: needCopyAttributes ? textNode.attributes : {},+ attributes:+ needCopyAttributes ? Attributes.from(textNode.attributes) : {},delta: textNode.delta.slice(selection.end.offset),),)