hackmd-io-issues icon indicating copy to clipboard operation
hackmd-io-issues copied to clipboard

Can't tap and hold on Firefox Android in text field to highlight, cut, paste, select all, share, etc

Open jamesray1 opened this issue 5 years ago • 14 comments

Is this a hackmd.io issue?

  • [x] Yes, the bug happens on https://hackmd.io
  • [ ] No. If it's a self-hosted CodiMD instance, please fire up the issue in the repo of CodiMD: https://github.com/hackmdio/codimd

What's the problem

Current behaviour

Can't tap and hold on my phone to paste text, highlight text, select all, cut, copy, etc.

Environment

I use HackMD on: Mobile Screenshot_2019-07-13-12-55-01-712_com android settings

  • Device: Xiaomi Redmi Note 4X
  • OS: Android 6.0
  • Browser: Firefox v 68.0

Additional context

Add any other context about the problem here.

Example of this working as I write this:

Screenshot_2019-07-13-13-00-54-449_org mozilla firefox Screenshot_2019-07-13-13-01-24-502_org mozilla firefox

Screenshot_2019-07-13-13-04-18-728_org mozilla firefox

This partially works in Chrome, allowing to paste and select all, but not to highlight, cut and copy.

Screenshot_2019-07-13-13-08-48-713_com android chrome

jamesray1 avatar Jul 13 '19 02:07 jamesray1

Hi @jamesray1,

Thanks for reporting!

This is a known issue due to the implementation of the text editor we chosen. It uses a tiny input when you try to type, so the input area won't expand all over the line which cause the problem of triggering selection.

jackycute avatar Jul 13 '19 03:07 jackycute

Okay, thanks. I suppose that's what's also causing the keyboard to not display often as well?

jamesray1 avatar Jul 13 '19 04:07 jamesray1

Okay, thanks. I suppose that's what's also causing the keyboard to not display often as well?

Yes, it is the root cause of many mobile input issues.

jackycute avatar Jul 13 '19 06:07 jackycute

Same on chrome on android

c5c86a avatar May 12 '20 14:05 c5c86a

This is a known issue from CodeMirror and can't be solved easily. CodeMirror 6 seems able to fix this, just stay tuned.

jackycute avatar May 12 '20 14:05 jackycute

I wouldn't hold my breath :)

There is a "hope" from the codemirror community that their rewrite (version 6) will fix it but there is no direct fix yet.

Also version 6 says that the documentation is incomplete and several essential extensions have not been implemented yet.

The only good news is that a double click on a word allows you to select that word and choose an option like Copy.

Thanks

On Tue, May 12, 2020, 17:23 Max Wu [email protected] wrote:

This is a known issue from CodeMirror and can't be solved easily. CodeMirror 6 seems able to fix this, just stay tuned.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/hackmdio/hackmd-io-issues/issues/97#issuecomment-627377599, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFUFVFJZLGLVABO36CPXEGDRRFLUPANCNFSM4ICVMW7Q .

c5c86a avatar May 12 '20 20:05 c5c86a

@nicosmaris this

The only good news is that a double click on a word allows you to select that word and choose an option like Copy.

doesn't work on a iPhone.

AndreaPi avatar Aug 24 '20 10:08 AndreaPi

any updates on this issue?

ozkriff avatar Aug 26 '21 06:08 ozkriff

Hi everyone,

As I mentioned earlier, there isn't a decent progress that our current editor will have better support of triggering text context menu since the input box is hidden and small.

But we found that if you're an Android user and you can install Gboard, it provides cursor control and text editing buttons on virtual keyboard. ref: https://www.xda-developers.com/gboard-v6-2-adds-cursor-control-cutcopypaste-buttons-and-adjustable-keyboard-dimensions/

jackycute avatar Aug 26 '21 06:08 jackycute

the problem still there, still annoying

banderlog avatar Aug 15 '22 12:08 banderlog

Confirming. Still an issue, on iOS 15.6.1

therysin avatar Sep 11 '22 04:09 therysin

This makes mobile editing almost unusable. I'd rather have a boilerplate mobild text entry box that I can paste in than the syntax colored HackMD editor with Markdown shortcut buttons that I can't.

JessRiedel avatar Oct 04 '23 07:10 JessRiedel

Surprised this issue is still active 4years after reporting. This bug would prevent many organisations switching from notion/confluence.

timbrinded avatar Nov 11 '23 11:11 timbrinded

Would love to use it if I could copy-paste in iOS!

fancidev avatar Jun 15 '24 08:06 fancidev