File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6868 text-decoration : line-through ;
6969 }
7070
71- u .ql-custom-strike {
71+ s .ql-custom-strike {
7272 text-decoration : line-through ;
7373 }
7474
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ const Inline = Quill.import('blots/inline') as typeof TypeInline
55
66export class StrikeBlot extends Inline {
77 static blotName = 'strike'
8- static tagName = 'u '
8+ static tagName = 's '
99 static className = 'ql-custom-strike'
1010 // 此处删除了formats方法,当前tag非span,则并不需要进行特殊处理去重写formats方法
1111}
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ const DEFAULT_CONTENT = `
4646</p>
4747<p>这是<strong>粗体</strong></p>
4848<p>这是<em>斜体</em></p>
49- <p>这是<u class="ql-custom-strike">删除线</u ></p>
49+ <p>这是<s class="ql-custom-strike">删除线</s ></p>
5050<p>这是<u>下划线</u></p>
5151<p>这是上标X<sup>2</sup>和下标X<sub>2</sub></p>
5252<p>
You can’t perform that action at this time.
0 commit comments