UNPKG

@atlaskit/editor-plugin-tasks-and-decisions

Version:

Tasks and decisions plugin for @atlaskit/editor-core

12 lines (11 loc) 593 B
import type { IntlShape } from 'react-intl'; import type { DOMOutputSpec, Node as PMNode } from '@atlaskit/editor-prosemirror/model'; /** * Converts a task item node to a DOM output specification. * This is used for rendering the task item in the editor. * * @param {Node} node - The ProseMirror node representing the task item. * @param {string} placeholder - The placeholder text to display when the task item is empty. * @returns A DOMOutputSpec representing the task item. */ export declare function taskItemToDom(node: PMNode, placeholder: string, intl: IntlShape): DOMOutputSpec;