fixed placeholder change corrupts current state
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user