UNPKG

@atlaskit/editor-plugin-placeholder

Version:

Placeholder plugin for @atlaskit/editor-core.

24 lines 1.04 kB
import { code, text } from '@atlaskit/adf-utils/builders'; import { placeholderTextMessages as messages } from '@atlaskit/editor-common/messages'; export var createShortEmptyNodePlaceholderADF = function createShortEmptyNodePlaceholderADF(_ref) { var formatMessage = _ref.formatMessage; return { version: 1, type: 'doc', content: [{ type: 'paragraph', content: [code(formatMessage(messages.shortEmptyNodePlaceholderADFSlashShortcut)), text(' '), text(formatMessage(messages.shortEmptyNodePlaceholderADFSuffix))] }] }; }; export var createLongEmptyNodePlaceholderADF = function createLongEmptyNodePlaceholderADF(_ref2) { var formatMessage = _ref2.formatMessage; return { version: 1, type: 'doc', content: [{ type: 'paragraph', content: [text(formatMessage(messages.longEmptyNodePlaceholderADFPrefix)), text(' '), code(formatMessage(messages.longEmptyNodePlaceholderADFSlashShortcut)), text(' '), text(formatMessage(messages.longEmptyNodePlaceholderADFSuffix))] }] }; };