enable clipboardTextSerializer again

This commit is contained in:
Philipp Kühn
2021-04-07 22:22:39 +02:00
parent 508fcfd882
commit 160ee9f846

View File

@@ -38,17 +38,17 @@ export const ClipboardTextSerializer = Extension.create({
addProseMirrorPlugins() {
return [
// new Plugin({
// key: new PluginKey('clipboardTextSerializer'),
// props: {
// clipboardTextSerializer: () => {
// const { editor } = this
// const { from, to } = editor.state.selection
new Plugin({
key: new PluginKey('clipboardTextSerializer'),
props: {
clipboardTextSerializer: () => {
const { editor } = this
const { from, to } = editor.state.selection
// return textBetween(editor, from, to, '\n')
// },
// },
// }),
return textBetween(editor, from, to, '\n')
},
},
}),
]
},
})