wordpress-mobile / AztecEditor-Android

A reusable native Android rich text editor component.
Mozilla Public License 2.0
673 stars 114 forks source link

Editor reports it has changes for empty text #1045

Open nbradbury opened 1 year ago

nbradbury commented 1 year ago

The hasChanges() function always reports it has changes when first opened, even though nothing has been changed.

The problem is that initialEditorContentParsedSHA256 is initialized as an empty array, which doesn't match calculateSHA256("").