From 5974e5635a55721c2ffb6da94d1f9ff8643c3537 Mon Sep 17 00:00:00 2001 From: Hemachandar <132386067+hmacr@users.noreply.github.com> Date: Fri, 12 Apr 2024 06:23:05 +0530 Subject: [PATCH] add H3 to editor formatting toolbar (#6791) --- app/editor/menus/formatting.tsx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/editor/menus/formatting.tsx b/app/editor/menus/formatting.tsx index f6aa97f71..dcdcb1a25 100644 --- a/app/editor/menus/formatting.tsx +++ b/app/editor/menus/formatting.tsx @@ -16,6 +16,7 @@ import { OutdentIcon, IndentIcon, CopyIcon, + Heading3Icon, } from "outline-icons"; import { EditorState } from "prosemirror-state"; import { isInTable } from "prosemirror-tables"; @@ -107,6 +108,14 @@ export default function formattingMenuItems( attrs: { level: 2 }, visible: allowBlocks && !isCode, }, + { + name: "heading", + tooltip: dictionary.subheading, + icon: , + active: isNodeActive(schema.nodes.heading, { level: 3 }), + attrs: { level: 3 }, + visible: allowBlocks && !isCode, + }, { name: "blockquote", tooltip: dictionary.quote,