Skip to content

Commit c26aaab

Browse files
committed
feat(json-crdt-peritext-ui): 🎸 update block context menu
1 parent a3bb8df commit c26aaab

File tree

1 file changed

+5
-3
lines changed
  • src/json-crdt-peritext-ui/plugins/toolbar/state

1 file changed

+5
-3
lines changed

src/json-crdt-peritext-ui/plugins/toolbar/state/index.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1235,6 +1235,7 @@ export class ToolbarState implements UiLifeCycles {
12351235
const menu: MenuItem = {
12361236
name: 'Block type',
12371237
expand: 1,
1238+
expandChild: 0,
12381239
children: [
12391240
{
12401241
name: 'Text blocks',
@@ -1434,15 +1435,16 @@ export class ToolbarState implements UiLifeCycles {
14341435
onSelect: () => {
14351436
et.cursor({
14361437
move: [
1437-
['start', 'block', -1],
1438-
['end', 'block', 1],
1438+
['anchor', 'block', -1],
1439+
['focus', 'block', 1],
14391440
],
14401441
});
14411442
},
14421443
},
1444+
this.blockClipboardMenu(),
14431445
],
14441446
},
1445-
this.blockClipboardMenu(),
1447+
14461448
secondBrain(),
14471449
],
14481450
};

0 commit comments

Comments
 (0)