Skip to content

Commit

Permalink
Formatting fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Glen Davies committed Jun 28, 2020
1 parent 0ed068d commit 3e7e8f3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/block-library/src/classic/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,11 @@ export default class ClassicEdit extends Component {

const editor = window.tinymce.get( `editor-${ clientId }` );
const currentContent = editor.getContent();

if ( prevProps.attributes.content !== content && currentContent !== content ) {

if (
prevProps.attributes.content !== content &&
currentContent !== content
) {
editor.setContent( content || '' );
}
}
Expand Down

0 comments on commit 3e7e8f3

Please sign in to comment.