mirror of
https://github.com/strapi/strapi.git
synced 2025-09-20 05:52:08 +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: 'B', style: 'BOLD', handler: 'addEntity', text: '**innerText**' },
|
||||||
{label: 'I', style: 'ITALIC', className: 'styleButtonItalic', 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: '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' },
|
{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 END_REPLACER = '_*</u>`](link)';
|
||||||
export const START_REPLACER = '*<u>-`>#[ ![ 1. ';
|
export const START_REPLACER = '_*<u>-`>#[ ![ 1. ';
|
||||||
|
@ -27,7 +27,7 @@ export function getInnerText(style) {
|
|||||||
innerText = '*text in italic*';
|
innerText = '*text in italic*';
|
||||||
break;
|
break;
|
||||||
case 'UNDERLINE':
|
case 'UNDERLINE':
|
||||||
innerText = '<u>text underlined</u>';
|
innerText = '__text underlined__';
|
||||||
break;
|
break;
|
||||||
case 'H1':
|
case 'H1':
|
||||||
innerText = '# ';
|
innerText = '# ';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user