You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/desktop_toolbar/link/link_extension.dart
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -8,9 +8,9 @@ extension LinkExtension on EditorState {
8
8
if (node ==null) {
9
9
return;
10
10
}
11
-
final attributes =_getAttribute(node, selection)
12
-
..remove(BuiltInAttributeKey.href)
13
-
..remove(kIsPageLink);
11
+
final attributes =_getAttribute(node, selection);
12
+
attributes.remove(BuiltInAttributeKey.href);
13
+
attributes.remove(kIsPageLink);
14
14
final index = selection.normalized.startIndex;
15
15
final length = selection.length;
16
16
final transaction =this.transaction
@@ -42,9 +42,9 @@ extension LinkExtension on EditorState {
0 commit comments