diff --git a/src/components/Menu/entries.ts b/src/components/Menu/entries.ts index 94a2292f050..a31821ae5fb 100644 --- a/src/components/Menu/entries.ts +++ b/src/components/Menu/entries.ts @@ -37,6 +37,7 @@ import { FormatSize, FormatStrikethrough, FormatUnderline, + Help, Info, LinkIcon, Paperclip, @@ -502,6 +503,15 @@ export function getMenuEntries(isRichWorkspace: boolean): MenuEntry[] { return command.toggleCallout({ type: 'error' }) }, }, + { + key: 'callout-question', + label: t('text', 'Question callout'), + isActive: { name: 'callout', attributes: { type: 'question' } }, + icon: Help, + action: (command) => { + return command.toggleCallout({ type: 'question' }) + }, + }, ], priority: 3, }, diff --git a/src/markdownit/callouts.js b/src/markdownit/callouts.js index beb452e61b3..cd8871078bc 100644 --- a/src/markdownit/callouts.js +++ b/src/markdownit/callouts.js @@ -5,7 +5,7 @@ import container from 'markdown-it-container' -export const typesAvailable = ['info', 'warn', 'error', 'success'] +export const typesAvailable = ['info', 'warn', 'error', 'success', 'question'] /** * diff --git a/src/nodes/CalloutView.vue b/src/nodes/CalloutView.vue index 65e1842f85d..dcfcb450a3d 100644 --- a/src/nodes/CalloutView.vue +++ b/src/nodes/CalloutView.vue @@ -16,13 +16,14 @@