UNPKG

@atlaskit/adf-schema

Version:

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

18 lines (16 loc) 646 B
import { confluenceInlineComment as confluenceInlineCommentFactory } from '../../next-schema/generated/markTypes'; /** * @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 const confluenceInlineComment = confluenceInlineCommentFactory({ parseDOM: [{ tag: 'span[data-mark-type="confluenceInlineComment"]' }], toDOM(node) { return ['span', { 'data-mark-type': 'confluenceInlineComment', 'data-reference': node.attrs.reference }]; } });