This commit is contained in:
les
2020-06-24 15:31:30 +02:00
parent 7ce4974507
commit 6bc9304870
2 changed files with 5 additions and 15 deletions

View File

@@ -101,21 +101,7 @@ export default {
new Bold(),
new Italic(),
new Strike(),
new Underline(),
new class extends Extension {
keys () {
return {
Enter (state, dispatch, view) {
const { schema, doc, tr } = view.state
const hard_break = schema.nodes.hard_break
const transaction = tr.replaceSelectionWith(hard_break.create()).scrollIntoView()
view.dispatch(transaction)
return true
}
}
}
}()
new Underline()
]
})
},