@atlaskit/adf-schema
Version:
Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs
19 lines • 494 B
JavaScript
import { MarkExcludesNone, adfMark, adfMarkGroup } from '@atlaskit/adf-schema-generator';
export const annotation = adfMark('annotation');
export const annotationGroup = adfMarkGroup('annotation', [annotation]);
annotation.define({
inclusive: true,
excludes: MarkExcludesNone,
group: annotationGroup,
attrs: {
id: {
type: 'string',
default: ''
},
annotationType: {
type: 'enum',
values: ['inlineComment'],
default: 'inlineComment'
}
}
});