Skip to content

Commit 9221b3a

Browse files
authored
fix(gpt): fix gpt markup action for preset (#727)
1 parent 67d9a11 commit 9221b3a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/modules/toolbars/items.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import {MToolbarFilePopup} from '../../bundle/toolbar/markup/MToolbarFilePopup';
66
import {MToolbarImagePopup} from '../../bundle/toolbar/markup/MToolbarImagePopup';
77
import {WToolbarColors} from '../../bundle/toolbar/wysiwyg/WToolbarColors';
88
import {WToolbarTextSelect} from '../../bundle/toolbar/wysiwyg/WToolbarTextSelect';
9+
import {showMarkupGpt} from '../../extensions/additional/GPT';
910
import {gptHotKeys} from '../../extensions/additional/GPT/constants';
1011
import {headingType, pType} from '../../extensions/specs';
1112
import {i18n as i18nHint} from '../../i18n/hints';
@@ -795,7 +796,7 @@ export const gptItemWysiwyg: ToolbarItemWysiwyg = {
795796
isEnable: (e) => e.actions.addGptWidget.isEnable(),
796797
};
797798
export const gptItemMarkup: ToolbarItemMarkup = {
798-
exec: (e) => insertMermaidDiagram(e.cm),
799+
exec: (e) => showMarkupGpt(e.cm),
799800
isActive: inactive,
800801
isEnable: enable,
801802
};

0 commit comments

Comments
 (0)