How BlockSuite not enable the contenteditable container yet still utilize browser selection with cross-text selection? #4217
-
Since BlockSuite does not use a single contenteditable container to enable cross-text selection I though you guys might be drawing your own selection. However, when I changed the browser's selection background, it turned out that BlockSuite still use the browser's selection. This situation is quite peculiar. How can BlockSuite not enable the contenteditable container yet still utilize browser selection with cross-text selection? I'm confused. you can try this code pen, we can not drag cross text selection without a contentediable container. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi, thanks for your interest in BlockSuite! The way we support cross-contenteditable selection is well explained in https://blocksuite.affine.pro/rich-text-orchestration.html#flat-range-selection, hope this helps! |
Beta Was this translation helpful? Give feedback.
Hi, thanks for your interest in BlockSuite! The way we support cross-contenteditable selection is well explained in https://blocksuite.affine.pro/rich-text-orchestration.html#flat-range-selection, hope this helps!