This is a migrated thread and some comments may be shown as answers.

Problem with Editor commenting out the PHP code

2 Answers 24 Views
Editor
This is a migrated thread and some comments may be shown as answers.
John Schroeder
Top achievements
Rank 1
John Schroeder asked on 12 Feb 2014, 03:23 PM
Hi everyone,

As the title suggest I'm having an issue where I add some php to the editor using the HTML view and as soon as I switch to Design view it comments out the open and close php tags.. Any solution to this?

John

2 Answers, 1 is accepted

Sort by
0
John Schroeder
Top achievements
Rank 1
answered on 14 Feb 2014, 12:40 PM
Anyone?
0
Slav
Telerik team
answered on 17 Feb 2014, 11:04 AM
Hi John,

RadEditor is a rich text web editor and as such it does not support writing server-side code in its content area. It comments the php code because it is not detected as a valid HTML. Is it possible to separate the server-side code from the markup of your page in case you want to use the editor for modifying the content of pages?

Regards,
Slav
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the UI for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Editor
Asked by
John Schroeder
Top achievements
Rank 1
Answers by
John Schroeder
Top achievements
Rank 1
Slav
Telerik team
Share this question
or