mirror of
https://github.com/strapi/strapi.git
synced 2025-09-19 21:38:05 +00:00
Fix wysiwyg underline
This commit is contained in:
parent
b010175ab1
commit
24d3eaa16b
@ -27,7 +27,7 @@ export const NEW_CONTROLS = [
|
||||
[
|
||||
{label: 'B', style: 'BOLD', handler: 'addEntity', text: '**innerText**' },
|
||||
{label: 'I', style: 'ITALIC', className: 'styleButtonItalic', handler: 'addEntity', text: '*innerText*' },
|
||||
{label: 'U', style: 'UNDERLINE', handler: 'addEntity', text: '<u>innerText</u>' },
|
||||
{label: 'U', style: 'UNDERLINE', handler: 'addEntity', text: '__innerText__' },
|
||||
{label: 'UL', style: 'unordered-list-item', className: 'styleButtonUL', hideLabel: true, handler: 'addEntity', text: '- innerText' },
|
||||
{label: 'OL', style: 'ordered-list-item', className: 'styleButtonOL', hideLabel: true, handler: 'addEntity', text: '1. innerText' },
|
||||
],
|
||||
@ -40,5 +40,5 @@ export const NEW_CONTROLS = [
|
||||
];
|
||||
|
||||
|
||||
export const END_REPLACER = '*</u>`](link)';
|
||||
export const START_REPLACER = '*<u>-`>#[ ';
|
||||
export const START_REPLACER = '_*<u>-`>#[ ![ 1. ';
|
||||
|
@ -27,7 +27,7 @@ export function getInnerText(style) {
|
||||
innerText = '*text in italic*';
|
||||
break;
|
||||
case 'UNDERLINE':
|
||||
innerText = '<u>text underlined</u>';
|
||||
innerText = '__text underlined__';
|
||||
break;
|
||||
case 'H1':
|
||||
innerText = '# ';
|
||||
|
Loading…
x
Reference in New Issue
Block a user