@wordpress/block-library
Version:
Block library for the WordPress editor.
17 lines (15 loc) • 463 B
JavaScript
import { _x } from '@wordpress/i18n';
export const ALLOWED_MEDIA_TYPES = [ 'image', 'video' ];
export const DEFAULT_MEDIA_SIZE_SLUG = 'full';
export const WIDTH_CONSTRAINT_PERCENTAGE = 15;
export const LINK_DESTINATION_NONE = 'none';
export const LINK_DESTINATION_MEDIA = 'media';
export const LINK_DESTINATION_ATTACHMENT = 'attachment';
export const TEMPLATE = [
[
'core/paragraph',
{
placeholder: _x( 'Content…', 'content placeholder' ),
},
],
];