UNPKG

@atlaskit/adf-schema

Version:

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

30 lines (28 loc) 779 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.confluenceInlineComment = void 0; /** * @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. */ 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 }]; } }; exports.confluenceInlineComment = confluenceInlineComment;