Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Use view#change() instead of view#render() in enablePlaceholder().
Browse files Browse the repository at this point in the history
  • Loading branch information
oleq committed Feb 6, 2019
1 parent e311f24 commit e458ef5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/view/placeholder.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ export function enablePlaceholder( options ) {
isDirectHost
} );

// Update the view right away.
view.render();
// Update the placeholders right away.
view.change( writer => updateDocumentPlaceholders( doc, writer ) );
}

/**
Expand Down

0 comments on commit e458ef5

Please sign in to comment.