I have used another approach for checking whether the Editor content has changed or not.
Basically I am making use of an npm module deep-equal to compare raw contentState objects (i.e contentState converted to simple JS object using convertToRaw function).
In your onChange handler, compare the old and new raw contentState objects.
Note: Comparison by deep-equal module is around 5 times faster than wrapping node's assert.deepEqual() in a try/catch.
Here is the onChange handler code:
const deepEqual = require('deep-equal');
this.onChange = (editorState) => {
let oldContent = convertToRaw(this.state.editorState.getCurrentContent());
let newContent = convertToRaw(editorState.getCurrentContent());
let sameContent = deepEqual(oldContent, newContent);
this.setState({editorState});
if (sameContent === false)
console.log('Content has changed.');
}