TextMarkupContextMenuSettings: { colors: { displayName: string; value: string }[] | { highlight?: { displayName: string; value: string }[]; squiggly?: { displayName: string; value: string }[]; strikeout?: { displayName: string; value: string }[]; underline?: { displayName: string; value: string }[] } | false }

Configuration options for the text markup context sub-menu.

Type declaration

  • colors: { displayName: string; value: string }[] | { highlight?: { displayName: string; value: string }[]; squiggly?: { displayName: string; value: string }[]; strikeout?: { displayName: string; value: string }[]; underline?: { displayName: string; value: string }[] } | false

    Defines the available color options in the text markup context menu.

    • An array of colors applies the same color options to all markup types.
    • An object with specific markup types allows defining different color sets for each type.
    • Setting this to false disables the color selection in the text markup context menu.

    Example

    // Customize available colors for all text markup types:
    textMarkupContextMenu: {
    colors: [
    { value: "#ff0000", displayName: "Red" },
    { value: "#000000", displayName: "Black" }
    ]
    }

    Example

    // Hide all color options in the text markup sub-menu:
    textMarkupContextMenu: { colors: [] }

    Example

    // Define specific colors for each text markup type:
    textMarkupContextMenu: {
    colors: {
    highlight: [
    { value: "#ff0000", displayName: "Red" },
    { value: "#000000", displayName: "Black" }
    ],
    underline: [
    { value: "#ff0000", displayName: "Red" }
    ],
    strikeout: [
    { value: "#000000", displayName: "Black" }
    ],
    squiggly: [
    { value: "#ff0000", displayName: "Red" }
    ]
    }
    }