Skip to content

Commit

Permalink
fix(bundle): added emoji to toolbar actions for full preset in markup…
Browse files Browse the repository at this point in the history
… mode (#483)
  • Loading branch information
makhnatkin authored Nov 20, 2024
1 parent d7bdf00 commit 3c8fe45
Show file tree
Hide file tree
Showing 6 changed files with 105 additions and 82 deletions.
4 changes: 4 additions & 0 deletions demo/gptPlugin/PlaygroundGPTDemo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ import {initialMdContent} from './md-content';

const wToolbarConfig = cloneDeep(wysiwygToolbarConfigs.wToolbarConfig);
wToolbarConfig.unshift([wGptToolbarItem]);
wToolbarConfig.push([
wysiwygToolbarConfigs.wMermaidItemData,
wysiwygToolbarConfigs.wYfmHtmlBlockItemData,
]);

logger.setLogger({
metrics: console.info,

Check warning on line 28 in demo/gptPlugin/PlaygroundGPTDemo.tsx

View workflow job for this annotation

GitHub Actions / Verify Files

Unexpected console statement
Expand Down
4 changes: 4 additions & 0 deletions demo/playground/Playground.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ mToolbarConfig[2].push(markupToolbarConfigs.mMathListItem);

const wToolbarConfig = cloneDeep(wysiwygToolbarConfigs.wToolbarConfig);
wToolbarConfig[2].push(wysiwygToolbarConfigs.wMathListItem);
wToolbarConfig.push([
wysiwygToolbarConfigs.wMermaidItemData,
wysiwygToolbarConfigs.wYfmHtmlBlockItemData,
]);

const wCommandMenuConfig = wysiwygToolbarConfigs.wCommandMenuConfig.concat(
wysiwygToolbarConfigs.wMathInlineItemData,
Expand Down
Loading

0 comments on commit 3c8fe45

Please sign in to comment.