Skip to content

Commit

Permalink
feat: export more commands. #217
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Mar 14, 2024
1 parent e43d405 commit d5c6858
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions core/src/commands/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,23 @@ export const getCommands: () => ICommand[] = () =>
.map((key) => defaultCommands[key as keyof typeof defaultCommands]);

export const getModeCommands: () => ICommand[] = () => [preview, fullscreen];

export {
bold,
code,
codeBlock,
italic,
header,
strike,
underline,
olist,
ulist,
quote,
link,
todo,
image,
redo,
undo,
fullscreen,
preview,
};

0 comments on commit d5c6858

Please sign in to comment.