-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Cannot enter '
in paragraph block
#35705
Comments
If there is a way I can contribute for this issue, please direct me to where to start looking. :) |
I found a workaround: Using the "Custom HTML" block I can use |
Thank you for the report. Since you were able to find a workaround, and since there have been no other reports of this issue from others, I'm going to go ahead and close it out. |
@kathrynwp I just found this bug and can confirm, that this bug is still not solved. For example:
|
Hi @RatzeR I've been able to add an apostrophe within both a paragraph and cover block without any issues. Could you please provide the following so I can investigate further:
|
Hi @kathrynwp, maybe may description was a bit unclear. Adding an apostrophe in the backend is possible, but in the frontend no apostrophe is shown. They are converted to a Steps to reproduce
Wordpress Version
Gutenberg Version
Plugins / Themes
|
Thanks for the additional information, @RatzeR I do think it's the expected behaviour that the editor converts straight quotes/apostrophes to curly quotes/apostrophes; the pre-Gutenberg editor also did this. |
@kathrynwp I just found the file where it is implemented: But I do not really understand, whats the reason behind this. Why convert the apostrophe to |
@RatzeR I don't know the answer behind that, but you might want to ask in the |
This is likely because people tend to write single quotations 'like this', since on the keyboard the real quoation marks are missing. The algorithm probably just looks whether the simple mark is at the start or the end of a word and converts it to the starting or ending quotation mark. |
Description
I want to enter bank credentials on the website for an association. The association's name contains an apostrophe, but since most banks only support ASCII, I'd like to write the name in the bank details with a single quote (
'
).Single quotes get converted to apostrophes in the preview, and there is no way to escape the single quote.
This issue is related to #15816, but I'm concerned with this specific use case and as far as I understand this other issue is concerned with a bigger problem.
Step-by-step reproduction instructions
Association' Name
in a paragraph block.Association‘ Name
.Association' Name
.Association‘ Name
.Association' Name
.'
is converted to a single quote, such that the block readsAssociation' Name
with the same issues as above.Screenshots, screen recording, code snippet
No response
Environment info
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: