AztecEditor-Android icon indicating copy to clipboard operation
AztecEditor-Android copied to clipboard

last image deleted by mistake

Open JerryGan2 opened this issue 7 years ago • 0 comments

Expected

only '\n' should be deleled

Observed

both picture and "\n" deleted

Reproduced

  1. put one picture at the end of arcticle
  2. type "\n" after the picture
  3. 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

JerryGan2 avatar Jul 20 '19 03:07 JerryGan2