Pressing space key between .token.punctuation shows [language="twig"]
See original GitHub issueProblem:
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:
Current Workaround:
handlePrismChange(code) {
this.advanced_statement = code.replace(' ', ' ');
}
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey guys! Im working on this issue and the next version of vue-prism-editor. So stay tuned.
Released new version v1 🎉