@atlaskit/adf-schema
Version:
Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs
28 lines • 706 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 var emoji = adfNode('emoji').define({
inline: true,
selectable: true,
marks: [unsupportedNodeAttribute, unsupportedMark],
attrs: {
shortName: {
type: 'string',
default: ''
},
id: {
type: 'string',
default: '',
optional: true
},
text: {
type: 'string',
default: '',
optional: true
}
},
stage0: {
marks: [unsupportedNodeAttribute, unsupportedMark, annotation]
}
});