- 🇨🇦Canada mandclu
Not sure if CKEditor 5 handles pre tags differently, but I'm not able to make the pre tags appear inline. I edited the source in my content so the pre tags would be inside a paragraph, but as soon as I take it out of source code view, the WYSIWYG has put paragraph tags around the pre tags again.
- Merge request !2Update XPath query to only target code tags nested within pre wrappers → (Open) created by mandclu
- Status changed to Needs review
over 1 year ago 10:07pm 28 April 2024 - 🇨🇦Canada mandclu
I found a pretty simple way to make this work the way I would have expected: change the XPath query within highlight_php_highlight() to only select code tags that are directly within pre tags. Since this aligns with how Drupal core marks up "code blocks", this makes sense as a solution.