-
-
Notifications
You must be signed in to change notification settings - Fork 548
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
Spaces are removed for inline formatting (italics and bold) #11125
Comments
I suspect this is since the changes in #8958. Either this check or this check must be failing (probably the first). No idea why that would be happening though. |
@jacksleight do you think there is a quick way around this? this prevents our client from editing content, which is not optimal 😐 |
@jacksleight Fun Fact: Our CP-Route ist an empty string like |
I have just done a test and set the CP route back to CP. And lo and behold, it works, which is what this skip instruction from your first link is supposed to do. But this is once again a case where the value for the CP route is an empty string. Like this: And this case should also be considered in my eyes, as it is essential for headless operation. If this is not desired, then I would also mention this in the docs or describe exactly how to configure a headless mode. @jackmcdade @duncanmcclean |
Ah ha, I think in that case it should just assume all routes are CP routes and always skip the default trim strings middleware. |
Bug description
We have an existing customer project that we updated to Statamic v5 some time ago and is currently running on v5.38.0.
We have been shown a strange behavior by our customer that we cannot understand, that it only occurs isolated in the project. The problem does not occur in one of our sandbox projects with the same Statamic version and the same bard field settings.
The problem is as follows:
If one or more words in a paragraph are marked in italics or bold, the space before and after the marking is deleted after saving and also displayed as such. Interestingly, however, the space character is also sent in the payload of the request.
During debugging, however, we noticed that these are then removed all at once when the fields are added.
Screen.Recording.2024-11-15.at.11.52.45.mov
I have attached a video that shows the issue again so that you can reproduce it.
We are also happy to provide the test environment of the customer project, but unfortunately we have to refrain from linking it publicly here in Github. Unfortunately, this can only be done privately (via e-mail or Discord).
How to reproduce
The attached video shows the steps to reproduce the problem.
As described, it is possible that this does not occur in another project. We therefore offer to provide access to the test environment. The problem is present on all environments that we operate (local, test and production)
Logs
No response
Environment
Installation
Existing Laravel app
Additional details
No response
The text was updated successfully, but these errors were encountered: