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

maxneaga’s picture

Issue summary: View changes
TwoD’s picture

Status: Active » Closed (duplicate)
Issue tags: -PHP

The 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...