diff --git a/apps/www/src/components/plate-ui/playground-more-dropdown-menu.tsx b/apps/www/src/components/plate-ui/playground-more-dropdown-menu.tsx index ece1669f6a..91d2db85cb 100644 --- a/apps/www/src/components/plate-ui/playground-more-dropdown-menu.tsx +++ b/apps/www/src/components/plate-ui/playground-more-dropdown-menu.tsx @@ -67,8 +67,8 @@ export function PlaygroundMoreDropdownMenu(props: DropdownMenuProps) { { toggleMark(editor, { - clear: MARK_SUBSCRIPT, - key: MARK_SUPERSCRIPT, + clear: MARK_SUPERSCRIPT, + key: MARK_SUBSCRIPT, }); focusEditor(editor); }} @@ -80,8 +80,8 @@ export function PlaygroundMoreDropdownMenu(props: DropdownMenuProps) { { toggleMark(editor, { - clear: MARK_SUPERSCRIPT, - key: MARK_SUBSCRIPT, + clear: MARK_SUBSCRIPT, + key: MARK_SUPERSCRIPT, }); focusEditor(editor); }} diff --git a/apps/www/src/registry/default/plate-ui/more-dropdown-menu.tsx b/apps/www/src/registry/default/plate-ui/more-dropdown-menu.tsx index 1aef721eb3..5ba17f70f5 100644 --- a/apps/www/src/registry/default/plate-ui/more-dropdown-menu.tsx +++ b/apps/www/src/registry/default/plate-ui/more-dropdown-menu.tsx @@ -35,8 +35,8 @@ export function MoreDropdownMenu(props: DropdownMenuProps) { { toggleMark(editor, { - clear: MARK_SUPERSCRIPT, - key: MARK_SUBSCRIPT, + key: MARK_SUPERSCRIPT, + clear: [MARK_SUPERSCRIPT, MARK_SUBSCRIPT], }); focusEditor(editor); }} @@ -49,7 +49,7 @@ export function MoreDropdownMenu(props: DropdownMenuProps) { onSelect={() => { toggleMark(editor, { clear: MARK_SUBSCRIPT, - key: MARK_SUPERSCRIPT, + clear: [MARK_SUPERSCRIPT, MARK_SUBSCRIPT], }); focusEditor(editor); }} diff --git a/templates/plate-playground-template/src/components/plate-ui/more-dropdown-menu.tsx b/templates/plate-playground-template/src/components/plate-ui/more-dropdown-menu.tsx index 78729ac458..7c11c11ecc 100644 --- a/templates/plate-playground-template/src/components/plate-ui/more-dropdown-menu.tsx +++ b/templates/plate-playground-template/src/components/plate-ui/more-dropdown-menu.tsx @@ -33,8 +33,8 @@ export function MoreDropdownMenu(props: DropdownMenuProps) { { toggleMark(editor, { - key: MARK_SUBSCRIPT, - clear: MARK_SUPERSCRIPT, + key: MARK_SUPERSCRIPT, + clear: [MARK_SUPERSCRIPT, MARK_SUBSCRIPT], }); focusEditor(editor); }} @@ -46,8 +46,8 @@ export function MoreDropdownMenu(props: DropdownMenuProps) { { toggleMark(editor, { - key: MARK_SUPERSCRIPT, clear: MARK_SUBSCRIPT, + clear: [MARK_SUPERSCRIPT, MARK_SUBSCRIPT], }); focusEditor(editor); }}