2018-03-13 13:12:06 +01:00
|
|
|
export const SELECT_OPTIONS = [
|
|
|
|
|
{ id: 'Add a title', value: '' },
|
2018-03-15 18:10:19 +01:00
|
|
|
{ id: 'Title H1', value: '#' },
|
|
|
|
|
{ id: 'Title H2', value: '##' },
|
|
|
|
|
{ id: 'Title H3', value: '###' },
|
|
|
|
|
{ id: 'Title H4', value: '####'},
|
|
|
|
|
{ id: 'Title H5', value: '#####' },
|
|
|
|
|
{ id: 'Title H6', value: '######' },
|
2018-03-13 13:12:06 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
|
|
export const NEW_CONTROLS = [
|
|
|
|
|
[
|
2018-03-16 12:05:16 +01:00
|
|
|
{ label: 'B', style: 'BOLD', className: 'styleButtonBold', hideLabel: true, handler: 'addEntity', text: '**innerText**' },
|
|
|
|
|
{ label: 'I', style: 'ITALIC', className: 'styleButtonItalic', hideLabel: true, handler: 'addEntity', text: '*innerText*' },
|
|
|
|
|
{ label: 'U', style: 'UNDERLINE', className: 'styleButtonUnderline', hideLabel: true, handler: 'addEntity', text: '__innerText__' },
|
2018-03-16 11:45:21 +01:00
|
|
|
{ label: 'UL', style: 'unordered-list-item', className: 'styleButtonUL', hideLabel: true, handler: 'addUlBlock', text: '- innerText' },
|
|
|
|
|
{ label: 'OL', style: 'ordered-list-item', className: 'styleButtonOL', hideLabel: true, handler: 'addOlBlock', text: '1. innerText' },
|
2018-03-13 13:12:06 +01:00
|
|
|
],
|
|
|
|
|
[
|
2018-03-16 12:05:16 +01:00
|
|
|
{ label: '<>', style: 'code-block', className: 'styleButtonCodeBlock', hideLabel: true, handler: 'addSimpleBlock', text: '```innerText```' },
|
2018-03-16 11:45:21 +01:00
|
|
|
{ label: 'img', style: 'IMG', className: 'styleButtonImg', hideLabel: true, handler: 'addLinkMediaBlockWithSelection', text: '' },
|
|
|
|
|
{ label: 'Link', style: 'LINK', className: 'styleButtonLink',hideLabel: true, handler: 'addLink', text: '[text](link)' },
|
|
|
|
|
{ label: 'quotes', style: 'blockquote', className: 'styleButtonBlockQuote', hideLabel: true, handler: 'addSimpleBlock', text: '> innerText' },
|
2018-03-13 13:12:06 +01:00
|
|
|
],
|
|
|
|
|
];
|
2018-03-13 21:39:27 +01:00
|
|
|
|
|
|
|
|
|
2018-03-14 15:12:06 +01:00
|
|
|
export const END_REPLACER = '_*</u>`](link)';
|
|
|
|
|
export const START_REPLACER = '_*<u>-`>#[ ![ 1. ';
|