AztecEditor-Android
AztecEditor-Android copied to clipboard
last image deleted by mistake
Expected
only '\n' should be deleled
Observed
both picture and "\n" deleted
Reproduced
- put one picture at the end of arcticle
- type "\n" after the picture
- type backspace last picture and "\n" are deleted both
Tested
PRO 5 and Virtual Devices
suggest maybe FullWidthImageElementWatcher.kt line 57 val mustFixSpanEnd = wrapper.end < aztecText.length() && aztecText.text[wrapper.end] != Constants.NEWLINE should change to val mustFixSpanEnd = wrapper.end < (aztecText.length()-1) && aztecText.text[wrapper.end] != Constants.NEWLINE