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 28, 2020
1 parent 2b6c1dd commit edb8ec1
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 edb8ec1

Please sign in to comment.