@atlaskit/adf-schema
Version:
Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs
20 lines • 532 B
JavaScript
import { adfNode } from '@atlaskit/adf-schema-generator';
import { unsupportedMark } from '../marks/unsupportedMark';
import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
export var placeholder = adfNode('placeholder').define({
selectable: false,
inline: true,
marks: [unsupportedMark, unsupportedNodeAttribute],
allowNoChildMark: true,
attrs: {
text: {
type: 'string',
default: ''
},
localId: {
type: 'string',
default: null,
optional: true
}
}
});