@atlaskit/editor-plugin-date
Version:
Date plugin for @atlaskit/editor-core
21 lines (20 loc) • 806 B
TypeScript
import type { IntlShape } from 'react-intl';
import type { getPosHandlerNode } from '@atlaskit/editor-common/types';
import type { DOMOutputSpec, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
export declare const dateNodeSpec: (node: PMNode) => DOMOutputSpec;
export declare const dateToDOM: (node: PMNode, state: EditorState, getPos: getPosHandlerNode, intl: IntlShape) => [string, Record<string, string>, (string | {
class: string;
} | (string | {
class: string;
})[])[], (string | Record<string, string> | (string | {
class: string;
style: string;
})[])[], ((string | {
class: string;
contentEditable: string;
} | (string | {
class: string;
})[])[] | (string | {
class: string;
})[])];