From 44eabe831e06295973369107bcb9c55e8f85a2ae Mon Sep 17 00:00:00 2001 From: koehr Date: Wed, 1 Apr 2020 16:59:21 +0200 Subject: [PATCH] add marks to editor actions (breaks menu sync) --- src/editor/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/editor/index.ts b/src/editor/index.ts index 9c51e66..97ea19e 100644 --- a/src/editor/index.ts +++ b/src/editor/index.ts @@ -28,7 +28,9 @@ export const menuActionToCommand: KV<() => boolean> = { heading3: simpleAction('formatblock', 'H3'), bulletList: simpleAction('insertUnorderedList'), numberedList: simpleAction('insertOrderedList'), - separator: insertHorizontalRule() + separator: insertHorizontalRule(), + bold: simpleAction('bold'), + italic: simpleAction('italic') } export function getElementAndParentName (el: Node) {