mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-08-06 13:38:49 +08:00
fix lint
This commit is contained in:
parent
a0e2a830d7
commit
7877fbcb11
@ -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')
|
||||
// },
|
||||
// },
|
||||
// }),
|
||||
]
|
||||
},
|
||||
})
|
||||
|
@ -1,4 +1,4 @@
|
||||
import React, { useState, useEffect } from 'react'
|
||||
import React from 'react'
|
||||
import {
|
||||
NodeView,
|
||||
NodeViewProps,
|
||||
|
Loading…
Reference in New Issue
Block a user