bibledit / cloud

Source code for Bibledit core library and Cloud binary
GNU General Public License v3.0
13 stars 3 forks source link

Bug on Verse and Chapter Editor when editing first characters of USFM table cells #911

Open aranggitoar opened 1 year ago

aranggitoar commented 1 year ago

Screencast from 2023-07-21 12-03-11.webm

As discussed in #860, when editing the first character of a USFM table cell, the cursor goes back to the previous table cell instead of the currently edited table cell.

aranggitoar commented 1 year ago

The bug seems to appear on editing USFM markers that separate a verse into more smaller parts. Here you can see the same bug appearing in Strong's indexed words:

Screencast from 2023-07-26 02-17-50.webm

Though it doesn't skip the first character, it doesn't edit the current word when the cursor is in the beginning of a word.

So when removing a space between two Strong's indexed words, it deletes the \w USFM word boundary, which is a span with an i-w class in HTML. As shown here:

Screencast from 2023-07-26 02-13-30.webm

@teusbenschop, looking at this for a couple of days, I'm still a little clueless as to where might we fix this. Do you have any pointers?

My only thoughts for now that this is related to Quill editor's cursor and/or word boundary handling.

teusbenschop commented 1 year ago

My only thoughts for now that this is related to Quill editor's cursor and/or word boundary handling.

I agree, it looks like this is the case here.