strapi-plugin-content-manager
Version:
A powerful UI to easily manage your data.
99 lines (96 loc) • 2.3 kB
JavaScript
export const SELECT_OPTIONS = [
{ id: 'components.Wysiwyg.selectOptions.title', value: '' },
{ id: 'components.Wysiwyg.selectOptions.H1', value: '#' },
{ id: 'components.Wysiwyg.selectOptions.H2', value: '##' },
{ id: 'components.Wysiwyg.selectOptions.H3', value: '###' },
{ id: 'components.Wysiwyg.selectOptions.H4', value: '####' },
{ id: 'components.Wysiwyg.selectOptions.H5', value: '#####' },
{ id: 'components.Wysiwyg.selectOptions.H6', value: '######' },
];
export const CONTROLS = [
[
{
label: 'B',
style: 'BOLD',
className: 'bold',
hideLabel: true,
handler: 'addContent',
text: '**textToReplace**',
},
{
label: 'I',
style: 'ITALIC',
className: 'italic',
hideLabel: true,
handler: 'addContent',
text: '*textToReplace*',
},
{
label: 'U',
style: 'UNDERLINE',
className: 'underline',
hideLabel: true,
handler: 'addContent',
text: '<u>textToReplace</u>',
},
{
label: 'S',
style: 'STRIKED',
className: 'striked',
hideLabel: true,
handler: 'addContent',
text: '~~textToReplace~~',
},
{
label: 'UL',
style: 'unordered-list-item',
className: 'ul',
hideLabel: true,
handler: 'addUlBlock',
text: '- textToReplace',
},
{
label: 'OL',
style: 'ordered-list-item',
className: 'ol',
hideLabel: true,
handler: 'addOlBlock',
text: '1. textToReplace',
},
],
[
{
label: '<>',
style: 'CODE',
className: 'code',
hideLabel: true,
handler: 'addSimpleBlockWithSelection',
text: '```textToReplace```',
},
{
label: 'img',
style: 'IMG',
className: 'img',
hideLabel: true,
handler: 'handleOpenMediaLibrary',
text: '',
},
{
label: 'Link',
style: 'LINK',
className: 'link',
hideLabel: true,
handler: 'addContent',
text: '[textToReplace](link)',
},
{
label: 'quotes',
style: 'BLOCKQUOTE',
className: 'quote',
hideLabel: true,
handler: 'addSimpleBlockWithSelection',
text: '> textToReplace',
},
],
];
export const DEFAULT_INDENTATION = ' ';