[]
        
(Showing Draft Content)

TextMarkupContextMenuSettings

Type Alias: TextMarkupContextMenuSettings

TextMarkupContextMenuSettings: object

Settings for the text markup context sub-menu.

Type declaration

colors

colors: object[] | { highlight: object[]; squiggly: object[]; strikeout: object[]; underline: object[]; } | false

Available colors

Examples

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