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 }

Settings 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

    Available colors

    Example

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

    Example

    // Hide color groups in the text markup sub-menu:
    textMarkupContextMenu: { colors: [] }
    @example
    ```javascript
    // Customize available colors for different text markup types in the text markup context menu:
    textMarkupContextMenu: {
    colors: {
    highlight: [
    {value: "#ff0000", displayName: "Red"},
    {value: "#000000", displayName: "Black"}
    ],
    underline: [
    {value: "#ff0000", displayName: "Red"}
    ]
    }
    }