platform icon indicating copy to clipboard operation
platform copied to clipboard

Errors of selecting and cleaning full document

Open kakRostropovich opened this issue 1 year ago • 3 comments

If I want select all document content and remove it, i will face this problems:

Steps to reproduce case 1:

  1. Create new Document
  2. Select next line
  3. Press cmd+a

Actual Result

All documents will be selected

Expected Result

Cursor will move to first cell of table

Steps to reproduce case 2:

  1. Create new Document
  2. Add list of any type
  3. Press Enter more 1 time to create next empty line
  4. Press cmd+a
  5. Press Backspace or cmd+Backspace (option+Backspace or Shift+Backspace work correctly)

Actual Result

Document will be cleaned

Expected Result

Lines of list will be joined unexpectially

Huly®: UBERF-8080

kakRostropovich avatar Sep 11 '24 15:09 kakRostropovich

the second issue is reproducible for any kind of lists, not only todos

aonnikov avatar Sep 11 '24 15:09 aonnikov

you’re right, updated

kakRostropovich avatar Sep 11 '24 15:09 kakRostropovich

  1. The table issue seem to be related to Tiptap, I can reproduce it in their examples: https://tiptap.dev/docs/examples/basics/tables
    The issue occurs when the table is the first element in the document; if I add something before table, then selection works as expected.
  2. The second issue seem to be related to listkeymap extension, but I’m not able to reproduce it in Tiptap examples. Probably we use the extension not properly.

aonnikov avatar Sep 13 '24 09:09 aonnikov