feat: editor inline status node (#1973)

* inline status node

* fix alignment

* fix

* typed storage

* fix math block popup on select all
This commit is contained in:
Philip Okugbe
2026-02-27 01:34:03 +00:00
committed by GitHub
parent 59e945562d
commit ea44468fad
11 changed files with 365 additions and 7 deletions
@@ -22,6 +22,7 @@ import {
IconSitemap,
IconColumns3,
IconColumns2,
IconTag,
} from "@tabler/icons-react";
import {
CommandProps,
@@ -385,6 +386,20 @@ const CommandGroups: SlashMenuGroupedItemsType = {
.run();
},
},
{
title: "Status",
description: "Insert inline status badge.",
searchTerms: ["status", "badge", "label", "lozenge"],
icon: IconTag,
command: ({ editor, range }: CommandProps) => {
editor
.chain()
.focus()
.deleteRange(range)
.setStatus({ text: "", color: "gray" })
.run();
},
},
{
title: "Subpages (Child pages)",
description: "List all subpages of the current page",