UNPKG

@atlaskit/adf-schema

Version:

Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs

15 lines 448 B
import { adfNode } from '@atlaskit/adf-schema-generator'; import { unsupportedMark } from '../marks/unsupportedMark'; import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute'; export const placeholder = adfNode('placeholder').define({ selectable: false, inline: true, marks: [unsupportedMark, unsupportedNodeAttribute], allowNoChildMark: true, attrs: { text: { type: 'string', default: '' } } });