Commit fbfe28c
committed
Added isInit flag to only calculate initial content hash when isInit is true
This helps preventing a new hash being calculated on copy/paste operations, marking the content
as NO_CHANGE when some new piece of text has just been pasted / inserted.
For context, fromHtml() was calculating the initial hash under the assumption that this method
was only being called when starting AztecText (or moving from HTML to the visual editing view,
which is the same to all effects).1 parent 83d0fe6 commit fbfe28c
1 file changed
+5
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1012 | 1012 | | |
1013 | 1013 | | |
1014 | 1014 | | |
1015 | | - | |
| 1015 | + | |
1016 | 1016 | | |
1017 | 1017 | | |
1018 | 1018 | | |
| |||
1037 | 1037 | | |
1038 | 1038 | | |
1039 | 1039 | | |
1040 | | - | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
1041 | 1043 | | |
1042 | 1044 | | |
1043 | 1045 | | |
| |||
1400 | 1402 | | |
1401 | 1403 | | |
1402 | 1404 | | |
1403 | | - | |
| 1405 | + | |
1404 | 1406 | | |
1405 | 1407 | | |
1406 | 1408 | | |
| |||
0 commit comments