Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: subscript and superscript were mixed up #3236

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ export function PlaygroundMoreDropdownMenu(props: DropdownMenuProps) {
<DropdownMenuItem
onSelect={() => {
toggleMark(editor, {
clear: MARK_SUBSCRIPT,
key: MARK_SUPERSCRIPT,
clear: MARK_SUPERSCRIPT,
key: MARK_SUBSCRIPT,
});
focusEditor(editor);
}}
Expand All @@ -80,8 +80,8 @@ export function PlaygroundMoreDropdownMenu(props: DropdownMenuProps) {
<DropdownMenuItem
onSelect={() => {
toggleMark(editor, {
clear: MARK_SUPERSCRIPT,
key: MARK_SUBSCRIPT,
clear: MARK_SUBSCRIPT,
key: MARK_SUPERSCRIPT,
});
focusEditor(editor);
}}
Expand Down
6 changes: 3 additions & 3 deletions apps/www/src/registry/default/plate-ui/more-dropdown-menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ export function MoreDropdownMenu(props: DropdownMenuProps) {
<DropdownMenuItem
onSelect={() => {
toggleMark(editor, {
clear: MARK_SUPERSCRIPT,
key: MARK_SUBSCRIPT,
key: MARK_SUPERSCRIPT,
clear: [MARK_SUPERSCRIPT, MARK_SUBSCRIPT],
});
focusEditor(editor);
}}
Expand All @@ -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);
}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ export function MoreDropdownMenu(props: DropdownMenuProps) {
<DropdownMenuItem
onSelect={() => {
toggleMark(editor, {
key: MARK_SUBSCRIPT,
clear: MARK_SUPERSCRIPT,
key: MARK_SUPERSCRIPT,
clear: [MARK_SUPERSCRIPT, MARK_SUBSCRIPT],
});
focusEditor(editor);
}}
Expand All @@ -46,8 +46,8 @@ export function MoreDropdownMenu(props: DropdownMenuProps) {
<DropdownMenuItem
onSelect={() => {
toggleMark(editor, {
key: MARK_SUPERSCRIPT,
clear: MARK_SUBSCRIPT,
clear: [MARK_SUPERSCRIPT, MARK_SUBSCRIPT],
});
focusEditor(editor);
}}
Expand Down
Loading