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

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

Closed
MikeCraig418 opened this issue Nov 30, 2019 · 5 comments
Assignees
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@MikeCraig418
Copy link

MikeCraig418 commented Nov 30, 2019

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;', ' ');
}
@fenwick67
Copy link

fenwick67 commented May 20, 2020

Similar problem for jade/pug, sadly your workaround won't work in this case since literal &nbsp; is sometimes needed in pug templates 😢

@koca koca added bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed labels May 20, 2020
@koca
Copy link
Owner

koca commented May 20, 2020

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

@koca koca self-assigned this May 20, 2020
@koca koca removed the help wanted Extra attention is needed label May 20, 2020
@MikeCraig418
Copy link
Author

Thank you, @koca! My experience has been solid otherwise.

Best Regards,

Mike

@MikeCraig418
Copy link
Author

Hi @koca, I'm curious -- how is this one coming?

Best Regards,

Mike

@koca koca mentioned this issue Jun 21, 2020
@koca
Copy link
Owner

koca commented Aug 8, 2020

Released new version v1 🎉

@koca koca closed this as completed Aug 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants