fix lint
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')
|
||||||
},
|
// },
|
||||||
},
|
// },
|
||||||
}),
|
// }),
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import React, { useState, useEffect } from 'react'
|
import React from 'react'
|
||||||
import {
|
import {
|
||||||
NodeView,
|
NodeView,
|
||||||
NodeViewProps,
|
NodeViewProps,
|
||||||
|
|||||||
Reference in New Issue
Block a user