Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Selecting multiblock text precisely #2410

Open
kiliandr opened this issue Jul 10, 2023 · 3 comments
Open

Selecting multiblock text precisely #2410

kiliandr opened this issue Jul 10, 2023 · 3 comments
Labels

Comments

@kiliandr
Copy link

kiliandr commented Jul 10, 2023

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 kiliandr added the bug label Jul 10, 2023
@jarodxu12
Copy link

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.

@rondorkerin
Copy link

rondorkerin commented Oct 28, 2023

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

@markolofsen
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants