UNPKG

@wordpress/block-editor

Version:
25 lines (23 loc) 652 B
import { createElement } from "@wordpress/element"; /** * WordPress dependencies */ import { __ } from '@wordpress/i18n'; /** * Internal dependencies */ import { RichText } from '../'; import { BlockNavigationBlockFill } from './block-slot'; export default function BlockNavigationEditor({ value, onChange }) { return createElement(BlockNavigationBlockFill, null, createElement(RichText, { value: value, onChange: onChange, placeholder: __('Navigation item'), withoutInteractiveFormatting: true, allowedFormats: ['core/bold', 'core/italic', 'core/image', 'core/strikethrough'] })); } //# sourceMappingURL=editor.js.map