import { toggleMark } from "prosemirror-commands"; import { UxCommand } from "../constants"; import { schema } from "../schema"; import { Command } from "../types"; export const toggle: Command = toggleMark(schema.marks.b); export const ux = { [UxCommand.Bold]: toggle };