mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-01-18 14:13:21 +08:00
fix: render line break in text/plain format for hard breaks, fix #1842
This commit is contained in:
parent
73a278a5d3
commit
787d7848cd
@ -38,6 +38,10 @@ export const HardBreak = Node.create<HardBreakOptions>({
|
||||
return ['br', mergeAttributes(this.options.HTMLAttributes, HTMLAttributes)]
|
||||
},
|
||||
|
||||
renderText() {
|
||||
return '\n'
|
||||
},
|
||||
|
||||
addCommands() {
|
||||
return {
|
||||
setHardBreak: () => ({ commands }) => {
|
||||
|
Loading…
Reference in New Issue
Block a user