Open chacalonjr opened 2 months ago
I've realised that selection works, when you start selection outside all blocks on the right side, but it doesn't work if you're in the editing mode of any block
I've realised that selection works, when you start selection outside all blocks on the right side, but it doesn't work if you're in the editing mode of any block
Works selecting outside the blocks, but the toolbar doesn't work that way including its options like bolding words
@chacalonjr Yes, this is definitely bug, but related to browser limitations.
This is happening because Yoopta now has list of blocks, each with contenteditable="true"
attribute.
Browser can't make selection between contenteditable="true"
blocks
But I have some ideas of how to solve this issue.
Possible solutions:
contenteditable="true"
for the root block on selectionchange
or mousedown
event and return back to contenteditable="false"
when mouseup
event firedThe first solution is preferable for me
I've got a similar issue. Adding 'contenteditable' to the root DOM node can fix the selection problem, but then you've got to take control of the selection behavior yourself, which could turn into an even more complicated problem.
@WindrunnerMax yeap, this is challenge :D
The contenteditable
for root element can bring more problems.
But I have some ideas how to solve it, I hope it will be ready for the next major version
Has this bug been raised before?
Description
When selecting text isn't possible to select more than one line/paragraph at the same time.
Steps to Reproduce
Videos attached
Environment
https://github.com/Darginec05/Yoopta-Editor/assets/99447732/c65f7395-cb43-4322-a8dc-5420ce9f6551
https://github.com/Darginec05/Yoopta-Editor/assets/99447732/11e464cf-7271-4579-aace-798cbcb52e5f
Screenshots
No response
Do you want to work on this issue?
No
If "yes" to above, please explain how you would technically implement this
No response