mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-01-18 14:13:21 +08:00
fix: fix a bug where strike and underline can’t parsed together
This commit is contained in:
parent
e7fe7248af
commit
eff2c4140a
@ -53,7 +53,9 @@ export const Strike = Mark.create<StrikeOptions>({
|
||||
tag: 'strike',
|
||||
},
|
||||
{
|
||||
style: 'text-decoration=line-through',
|
||||
style: 'text-decoration',
|
||||
consuming: false,
|
||||
getAttrs: style => ((style as string).includes('line-through') ? {} : false),
|
||||
},
|
||||
]
|
||||
},
|
||||
|
@ -38,7 +38,9 @@ export const Underline = Mark.create<UnderlineOptions>({
|
||||
tag: 'u',
|
||||
},
|
||||
{
|
||||
style: 'text-decoration=underline',
|
||||
style: 'text-decoration',
|
||||
consuming: false,
|
||||
getAttrs: style => ((style as string).includes('underline') ? {} : false),
|
||||
},
|
||||
]
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user