API Referencev1.0.2
@eigenpal/docx-editor-core/utils/highlightColors
OOXML highlight color name - hex mapping. Used by both adapter toolbars when serialising highlight selections to the `w:highlight` attribute (which only accepts named colors).
Lifted from packages/react/src/components/toolbarUtils.ts so both sides share the same canonical table.
Functions(1)
fn
packages/core/src/utils/highlightColors.ts:31mapHexToHighlightName
declare function mapHexToHighlightName(hex: string): string | null;Variables(1)
const
packages/core/src/utils/highlightColors.ts:12HIGHLIGHT_HEX_TO_NAME
OOXML highlight color name - hex mapping. Used by both adapter toolbars when serialising highlight selections to the `w:highlight` attribute (which only accepts named colors).
Lifted from packages/react/src/components/toolbarUtils.ts so both sides share the same canonical table.
HIGHLIGHT_HEX_TO_NAME: Record<string, string>