mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-08-06 13:38:49 +08:00
code style
This commit is contained in:
parent
9bc68d6d85
commit
6841408e0d
@ -81,9 +81,7 @@ class ReactNodeView implements NodeView {
|
||||
const ReactNodeView: React.FunctionComponent = (props) => {
|
||||
const [isEditable, setIsEditable] = useState(this.editor.isEditable)
|
||||
const onDragStart = this.onDragStart.bind(this)
|
||||
const onViewUpdate = () => {
|
||||
setIsEditable(this.editor.isEditable)
|
||||
}
|
||||
const onViewUpdate = () => setIsEditable(this.editor.isEditable)
|
||||
|
||||
useEffect(() => {
|
||||
this.editor.on('viewUpdate', onViewUpdate)
|
||||
|
Loading…
Reference in New Issue
Block a user