Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
When using TinyMCE 3.5.10 (not sure about other editors), the PHP code breaks.
Example:
String
<h2>Semester 1:</h2><?php print views_embed_view('curriculum','page', 1); ?>
Will be converted to
<h2>Semester 1:</h2><!--?php print views_embed_view('curriculum','page', 1); ?-->
Comments
Comment #1
maxneaga CreditAttribution: maxneaga commentedComment #2
TwoDThe editors aren't really meant to handle serverside code, but there are a few workarounds for at least CKEditor and TinyMCE.
There's an open issue about this: [#5471294], and there are workarounds in comments #1 and #6 of #1403918: "<?php" replaced by "<!--?php" by CKEditor.
For some reason I can't add these as related issues now...