Skip to content

Commit

Permalink
Formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Glen Davies committed Jun 24, 2020
1 parent 119cb84 commit f5d45f5
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions packages/block-library/src/classic/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,16 +121,19 @@ export default class ClassicEdit extends Component {
bookmark = null;
} );

editor.on( 'Paste Change input Undo Redo', debounce( () => {
const value = editor.getContent();

if ( value !== editor._lastChange ) {
editor._lastChange = value;
setAttributes( {
content: value,
} );
}
}, 250 ) );
editor.on(
'Paste Change input Undo Redo',
debounce( () => {
const value = editor.getContent();

if ( value !== editor._lastChange ) {
editor._lastChange = value;
setAttributes( {
content: value,
} );
}
}, 250 )
);

editor.on( 'keydown', ( event ) => {
if (
Expand Down

0 comments on commit f5d45f5

Please sign in to comment.