Skip to content

Commit 1cc1881

Browse files
authored
fix(presets): fixed yfm and full presets (#294)
1 parent a27d454 commit 1cc1881

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

demo/Playground.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ const wCommandMenuConfig = wysiwygToolbarConfigs.wCommandMenuConfig.concat(
5252
wysiwygToolbarConfigs.wMathInlineItemData,
5353
wysiwygToolbarConfigs.wMathBlockItemData,
5454
wysiwygToolbarConfigs.wMermaidItemData,
55+
wysiwygToolbarConfigs.wYfmHtmlBlockItemData,
5556
);
5657

5758
export type PlaygroundProps = {

src/bundle/config/wysiwyg.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,6 @@ export const wCommandMenuConfig: WToolbarItemData[] = [
483483
// wMathInlineItemData,
484484
// wMathBlockItemData,
485485
wTabsItemData,
486-
wYfmHtmlBlockItemData,
487486
];
488487

489488
export const wHiddenData = wCommandMenuConfig;
@@ -661,7 +660,6 @@ export const wCommandMenuConfigByPreset: Record<EditorPreset, WToolbarItemData[]
661660
wHruleItemData,
662661
wFileItemData,
663662
wTabsItemData,
664-
wYfmHtmlBlockItemData,
665663
],
666664
full: wCommandMenuConfig.slice(),
667665
};

0 commit comments

Comments
 (0)