enable clipboardTextSerializer again
This commit is contained in:
@@ -38,17 +38,17 @@ export const ClipboardTextSerializer = Extension.create({
|
|||||||
|
|
||||||
addProseMirrorPlugins() {
|
addProseMirrorPlugins() {
|
||||||
return [
|
return [
|
||||||
// new Plugin({
|
new Plugin({
|
||||||
// key: new PluginKey('clipboardTextSerializer'),
|
key: new PluginKey('clipboardTextSerializer'),
|
||||||
// props: {
|
props: {
|
||||||
// clipboardTextSerializer: () => {
|
clipboardTextSerializer: () => {
|
||||||
// const { editor } = this
|
const { editor } = this
|
||||||
// const { from, to } = editor.state.selection
|
const { from, to } = editor.state.selection
|
||||||
|
|
||||||
// return textBetween(editor, from, to, '\n')
|
return textBetween(editor, from, to, '\n')
|
||||||
// },
|
},
|
||||||
// },
|
},
|
||||||
// }),
|
}),
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user