editor.js icon indicating copy to clipboard operation
editor.js copied to clipboard

Selecting multiblock text precisely

Open kiliandr opened this issue 1 year ago • 7 comments

I found out that it is not possible to select text that spans over multiple blocks without selecting the whole blocks..

Steps to reproduce:

  1. go to https://codepen.io/kili123/pen/MWzOQNM
  2. select the text between the arrows ---> [text to select] <---
  3. it selects all affected blocks but not only the chars between the arrows

Expected behavior: It should only select the chars between the array like selecting normal text in browsers...

Device, Browser, OS: Windows, Android

Editor.js version: 2.27.2

Plugins you use with their versions: none

kiliandr avatar Jul 10 '23 13:07 kiliandr

It is essential for a text editor to have the ability to select specific characters. However, I'm not sure if this is a mechanism of editor.js or a bug. From a user's perspective, it is definitely a necessary feature.

jarodxu12 avatar Jul 11 '23 05:07 jarodxu12

Are you guys ever planning on getting multiblock select done? My editor has AI writing and I need to be able to get the text selected when you do a multiblock select, but theres nothing in the API for getting it and it doesnt obey the actual window selection api. There should at the very least be an api method to get the current selection as text or a list of blocks at least.

If someone wants to do this we can pay a $200 bounty

rondorkerin avatar Oct 28 '23 21:10 rondorkerin

Are you guys ever planning on getting multiblock select done? My editor has AI writing and I need to be able to get the text selected when you do a multiblock select, but theres nothing in the API for getting it and it doesnt obey the actual window selection api. There should at the very least be an api method to get the current selection as text or a list of blocks at least.

If someone wants to do this we can pay a $200 bounty

I can do)

markolofsen avatar Aug 01 '24 05:08 markolofsen