mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-01-06 19:38:08 +08:00
fixed placeholder change corrupts current state
This commit is contained in:
parent
89e6436114
commit
0f44e74d1e
@ -16,9 +16,8 @@ export default class Placeholder extends Extension {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get update() {
|
get update() {
|
||||||
return ({ state, view }) => {
|
return view => {
|
||||||
// TODO: fix error when content is not empty
|
view.updateState(view.state)
|
||||||
view.updateState(state)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user