add update method to placeholder
This commit is contained in:
@@ -15,6 +15,13 @@ export default class Placeholder extends Extension {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get update() {
|
||||||
|
return ({ state, view }) => {
|
||||||
|
// TODO: fix error when content is not empty
|
||||||
|
view.updateState(state)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
get plugins() {
|
get plugins() {
|
||||||
return [
|
return [
|
||||||
new Plugin({
|
new Plugin({
|
||||||
|
|||||||
Reference in New Issue
Block a user