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

Remove   inserted by TinyMCE #97

Open
jace opened this issue Oct 25, 2015 · 0 comments
Open

Remove   inserted by TinyMCE #97

jace opened this issue Oct 25, 2015 · 0 comments

Comments

@jace
Copy link
Member

jace commented Oct 25, 2015

When editing text in TinyMCE, it will occasionally insert a   instead of space (for instance if the user pressed space twice—causing an   to be inserted for the second space—and then deleted the space space). Since an   is legitimate when multiple spaces are indeed required, which we do not seek to judge here, we only look for an   flanked by non-whitespace on both sides and remove those.

s/(\S) (\S)/\1 \2/ig

This applies to the TinyMce3Field and TinyMce4Field widgets.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant