Nutrient Web SDK
    Preparing search index...

    Interface CurrentStyle

    Style at the current cursor / selection inside the active text block, as returned by instance.contentEditor.getCurrentStyle().

    Properties are null when the selection / block spans mixed values (e.g. half the selection is bold and half is not). A custom toolbar should render mixed-value fields in a neutral state rather than as a definite value.

    interface CurrentStyle {
        bold: boolean | null;
        color: string | null;
        family: string | null;
        italic: boolean | null;
        size: number | null;
    }
    Index

    Properties

    bold: boolean | null
    color: string | null

    Hex color, e.g. "#1a1a1a".

    family: string | null
    italic: boolean | null
    size: number | null