Skip to content

Commit e7844be

Browse files
authored
feat: distinguish between underline and strikethrough labels (#460)
1 parent 7001212 commit e7844be

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

packages/fluent-editor/src/assets/editor.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
text-decoration: line-through;
6969
}
7070

71-
u.ql-custom-strike {
71+
s.ql-custom-strike {
7272
text-decoration: line-through;
7373
}
7474

packages/fluent-editor/src/formats/strike.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const Inline = Quill.import('blots/inline') as typeof TypeInline
55

66
export 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
}

packages/projects/src/views/yuque/YuQue.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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>

0 commit comments

Comments
 (0)