question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Space not registered in the html textarea on iPad

See original GitHub issue

I have a codemirror instance that works fine on the desktop browser and nearly as good on the iPad Safari. The only quirk remaining is that the spaces aren’t getting registered on iOS. Nothing happens when the spacebar is pressed on the keyboard, though occasionally it scrolls up a little bit.

I’m using the htmlmixed mode. Any clues to where I should be looking?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
kimyLeecommented, Nov 6, 2018

I also meet this problem, it seems caused by the “contenteditable”, try to add the following css style textarea, [contenteditable] { -webkit-user-select: text; user-select: text; } I just make it work by doing this

1reaction
adrianheinecommented, Sep 7, 2018

This is one of many issues which are difficult to debug and solve with the fundamental approach currently taken by CodeMirror.

We are working on a rewrite (CodeMirror 6) that will overhaul input handling and should address this issue, and we are currently raising money for this work: See the announcement for more information about the rewrite and a demo.

Note that CodeMirror 6 is by no means stable or usable in production, yet. It is highly unlikely that we pick up this issue for CodeMirror 5, though.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Get rid of extra non-padding space in textarea (iPhone iOS 10 ...
I need the text inside a textarea to look exactly the same as the text inside a div element, including padding, etc. The...
Read more >
The Textarea element - HTML: HyperText Markup Language
The HTML element represents a multi-line plain-text editing control, useful when you want to allow users to enter a sizeable amount of ...
Read more >
Supported Attributes - Apple Developer
Describes the Hypertext Markup Language (HTML) tags and properties that are supported by Safari and WebKit.
Read more >
How to limit the number of characters entered in a textarea in ...
In HTML, we can create form to accept and store information ... will only set the width of the textarea and it will...
Read more >
HTML textarea form Attribute - W3Schools
Well organized and easy to understand Web building tutorials with lots of examples of how to use HTML, CSS, JavaScript, SQL, Python, PHP,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found