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

click-and-hold highlighted text to reposition it #3339

Open
GlennMartin1 opened this issue Nov 5, 2017 · 7 comments · May be fixed by #14574
Open

click-and-hold highlighted text to reposition it #3339

GlennMartin1 opened this issue Nov 5, 2017 · 7 comments · May be fixed by #14574
Assignees
Labels
[Feature] Rich Text Related to the Rich Text component that allows developers to render a contenteditable [Feature] Writing Flow Block selection, navigation, splitting, merging, deletion... [Type] Enhancement A suggestion for improvement.

Comments

@GlennMartin1
Copy link

GlennMartin1 commented Nov 5, 2017

(I'm using Gutenberg 1.6.1)

Most text editors allow you to click-and-hold highlighted text while dragging it to a new insertion point.

(if you're not familiar with this, try it in Word or Google Docs, etc.... Simply highlight word(s) and then click-and-hold that highlighted to drag it to a new insertion point.)

Word supports this.
Google Docs supports this.
Text boxes in Windows support this.
Text boxes in browsers support this.
The Classic Editor supports this.

Most/all places where this is supported also allows image anchors to be repositioned by dragging the image.

However, none of this works in Gutenberg. I believe it's a reasonable expectation for any text box, but particularly so in any text editor.

@mtias mtias added [Feature] Rich Text Related to the Rich Text component that allows developers to render a contenteditable [Component] TinyMCE [Feature] Writing Flow Block selection, navigation, splitting, merging, deletion... labels Nov 20, 2017
@ellatrix
Copy link
Member

This has been disabled due to the way we handle cross block selection. I see no reason however to not make this work for text. Images are something different though, as this completely clashes with block multi selection. Not sure how to solve that.

@ellatrix ellatrix self-assigned this Apr 23, 2018
@ellatrix ellatrix changed the title (enhancement) click-and-hold highlighted text to reposition it click-and-hold highlighted text to reposition it Apr 23, 2018
@ellatrix ellatrix added the [Type] Enhancement A suggestion for improvement. label Apr 23, 2018
@aaronjorbin aaronjorbin added this to the WordPress 5.0 milestone Oct 7, 2018
@aaronjorbin
Copy link
Member

Assigning to 5.0 based on @iseulde's last comment

@mtias
Copy link
Member

mtias commented Nov 1, 2018

@iseulde do you think we'll be able to do anything meaningful here in time?

@ellatrix
Copy link
Member

ellatrix commented Nov 1, 2018

If it's meaningful enough to prioritise, probably. :)

@GlennMartin1
Copy link
Author

This issue persists in Gutenberg 5.3.

@mapk
Copy link
Contributor

mapk commented May 12, 2020

How will this work in relation to #20078 (comment) which talks about a long-press action for dragging and dropping blocks?

Will we be able to discern between a long-press to drag highlighted text vs. a long-press on a block to drag a block?

@mtias
Copy link
Member

mtias commented May 13, 2020

If there's partially selected text it wouldn't drag the entire block.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Rich Text Related to the Rich Text component that allows developers to render a contenteditable [Feature] Writing Flow Block selection, navigation, splitting, merging, deletion... [Type] Enhancement A suggestion for improvement.
Projects
None yet
7 participants