Skip to content

Commit

Permalink
handle strike tag
Browse files Browse the repository at this point in the history
- convert to non-deprecated <s> tag
- mirror bold/italic's implementation
  • Loading branch information
jhchen committed Nov 21, 2019
1 parent 9744b63 commit 1642768
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions formats/strike.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Inline from '../blots/inline';
import Bold from './bold';

class Strike extends Inline {}
class Strike extends Bold {}
Strike.blotName = 'strike';
Strike.tagName = 'S';
Strike.tagName = ['S', 'STRIKE'];

export default Strike;
1 change: 1 addition & 0 deletions modules/clipboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ const CLIPBOARD_CONFIG = [
['tr', matchTable],
['b', matchAlias.bind(matchAlias, 'bold')],
['i', matchAlias.bind(matchAlias, 'italic')],
['strike', matchAlias.bind(matchAlias, 'strike')],
['style', matchIgnore],
];

Expand Down

0 comments on commit 1642768

Please sign in to comment.