@atlaskit/adf-schema
Version:
Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs
19 lines • 566 B
JavaScript
import { adfNode } from '@atlaskit/adf-schema-generator';
import { annotation } from '../marks/annotation';
import { unsupportedMark } from '../marks/unsupportedMark';
import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
export const date = adfNode('date').define({
inline: true,
selectable: true,
marks: [unsupportedNodeAttribute, unsupportedMark],
attrs: {
timestamp: {
minLength: 1,
type: 'string',
default: ''
}
},
stage0: {
marks: [unsupportedNodeAttribute, unsupportedMark, annotation]
}
});