2021-05-26 14:10:52 -04:00
|
|
|
import { s__, __ } from '~/locale';
|
2021-04-12 14:12:15 -04:00
|
|
|
|
|
|
|
export const PROVIDE_SERIALIZER_OR_RENDERER_ERROR = s__(
|
|
|
|
'ContentEditor|You have to provide a renderMarkdown function or a custom serializer',
|
|
|
|
);
|
2021-05-07 11:10:39 -04:00
|
|
|
|
|
|
|
export const CONTENT_EDITOR_TRACKING_LABEL = 'content_editor';
|
|
|
|
export const TOOLBAR_CONTROL_TRACKING_ACTION = 'execute_toolbar_control';
|
2021-05-18 20:10:43 -04:00
|
|
|
export const KEYBOARD_SHORTCUT_TRACKING_ACTION = 'execute_keyboard_shortcut';
|
|
|
|
export const INPUT_RULE_TRACKING_ACTION = 'execute_input_rule';
|
2021-05-26 14:10:52 -04:00
|
|
|
|
|
|
|
export const TEXT_STYLE_DROPDOWN_ITEMS = [
|
|
|
|
{
|
|
|
|
contentType: 'heading',
|
|
|
|
commandParams: { level: 1 },
|
|
|
|
editorCommand: 'setHeading',
|
|
|
|
label: __('Heading 1'),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
contentType: 'heading',
|
|
|
|
editorCommand: 'setHeading',
|
|
|
|
commandParams: { level: 2 },
|
|
|
|
label: __('Heading 2'),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
contentType: 'heading',
|
|
|
|
editorCommand: 'setHeading',
|
|
|
|
commandParams: { level: 3 },
|
|
|
|
label: __('Heading 3'),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
contentType: 'paragraph',
|
|
|
|
editorCommand: 'setParagraph',
|
|
|
|
label: __('Normal text'),
|
|
|
|
},
|
|
|
|
];
|