UNPKG

@atlaskit/editor-core

Version:

A package contains Atlassian editor core functionality

20 lines (17 loc) 411 B
import { MarkSpec } from '../../prosemirror'; import { FONT_STYLE } from '../groups'; /** * @name underline_mark */ export interface Definition { type: 'underline'; } export const underline: MarkSpec = { inclusive: true, group: FONT_STYLE, parseDOM: [ { tag: 'u' }, { style: 'text-decoration', getAttrs: value => value === 'underline' && null } ], toDOM(): [string] { return ['u']; } };