Closed moritzjacobs closed 7 months ago
Hello @moritzjacobs ,
The documentation linked is for our legacy embeds. Unfortunately not all of the features for our older embeds are available on our current embeds. Including the codemirror option.
Alright, thank you for your time!
🐛 bug report
Preflight Checklist
Description of the problem
When loaded with
codemirror=1
as a query param, code highlighting in embeds isn't working anymore.How has this issue affected you? What are you trying to accomplish?
We have a large collection of training material that embeds examples e.g. like this:
Since codemirror is a bit more lightweight, we set the param option to 1, as per the documentation.
Recently our trainers noticed, that code highlighting doesn't seem to work anymore. Before we work around this by not using codemirror, we thought it might be worth a report.
To Reproduce
Look at this codepen (don't laugh, I just thought it would be better to not embed codesandboxes into each other 😆):
https://codepen.io/moritzjacobs/pen/MWRwgeB
The iframe code is directly from the sharing modal, only difference between left and right is
codemirror=1
.Thank you for your help!
Your Environment