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
Merge remote-tracking branch 'origin/main' into image_selection_area
Lucas.Xu9c40a501fefe
diff --cc frontend/app_flowy/packages/appflowy_editor/lib/src/service/selection_service.dartindex cca55527bf,dc0ef59203..86d39ba826--- a/frontend/app_flowy/packages/appflowy_editor/lib/src/service/selection_service.dart+++ b/frontend/app_flowy/packages/appflowy_editor/lib/src/service/selection_service.dart@@@ -507,14 -508,12 +508,17 @@@ class _AppFlowySelectionState extends Svoid _showContextMenu(TapDownDetails details) {_clearContextMenu();+ // For now, only support the text node.+ if (!currentSelectedNodes.every((element) => element is TextNode)) {+ return;+ }++ final baseOffset =+ editorState.renderBox?.localToGlobal(Offset.zero) ?? Offset.zero;+ final offset = details.globalPosition + const Offset(10, 10) - baseOffset;final contextMenu = OverlayEntry(builder: (context) => ContextMenu(- position: details.globalPosition,+ position: offset,editorState: editorState,items: builtInContextMenuItems,onPressed: () => _clearContextMenu(),