UNPKG

@atlaskit/adf-schema

Version:

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

23 lines (22 loc) 605 B
/** * @name inline_comment_marker * @description This temporary mark represents a Confluence-backed inline comment that wraps a piece of text. It will be replaced with a cross-product inline comment solution at later date. */ export var confluenceInlineComment = { inclusive: false, excludes: '', attrs: { reference: { default: '' } }, parseDOM: [{ tag: 'span[data-mark-type="confluenceInlineComment"]' }], toDOM: function toDOM(node) { return ['span', { 'data-mark-type': 'confluenceInlineComment', 'data-reference': node.attrs.reference }]; } };