mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-14 18:49:02 +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() {
|
||||
return ({ state, view }) => {
|
||||
// TODO: fix error when content is not empty
|
||||
view.updateState(state)
|
||||
return view => {
|
||||
view.updateState(view.state)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user