Browse Source

Replace obsolete tag `<strike>` by `<s>`...

...on built-in text editor following the same pattern already used.
pull/2886/head
Robson Sobral 6 years ago
committed by GitHub
parent
commit
a1dae790a9
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/rich_text_editor/model/RichTextEditor.js

4
src/rich_text_editor/model/RichTextEditor.js

@ -40,9 +40,9 @@ const defActions = {
},
strikethrough: {
name: 'strikethrough',
icon: '<strike>S</strike>',
icon: '<s>S</s>',
attributes: { title: 'Strike-through' },
result: rte => rte.exec('strikeThrough')
result: rte => rte.insertHTML(`<s>${rte.selection()}</s>`),
},
link: {
icon: `<span style="transform:rotate(45deg)">&supdsub;</span>`,

Loading…
Cancel
Save