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.

Pressing space key between .token.punctuation shows   [language="twig"]

See original GitHub issue

Problem:

When changing completed code in the editor, pressing the space key changes to nbsp;

If I just type from the beginning, there is no problem… but if I edit something present, or stub out a placeholder, then the problem can be reproduced.

Sample Implementation:

<prism-editor :code="advanced_statement" @change="handlePrismChange" language="twig"></prism-editor>

Visual: image

Current Workaround:

handlePrismChange(code) {
    this.advanced_statement = code.replace('&nbsp;', ' ');
}

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
kocacommented, May 20, 2020

Hey guys! Im working on this issue and the next version of vue-prism-editor. So stay tuned.

0reactions
kocacommented, Aug 8, 2020

Released new version v1 🎉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Execute JS code after pressing the spacebar - Stack Overflow
BONUS: I've made a quick snippet to get key code of any character. It's pretty easy to use: just type any letter in...
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