Hello,
I've got a site that I upgraded from 4.7.4 to 5.0. I also upgraded tinyMCE with it. I noticed that Tiny MCE makes the input formats ineffective. For example, if I choose 'php code' from the input formats when posting a new page, instead of parsing the php code, it just displays it. It does the same thing no matter which input format I choose.
Any ideas what may be wrong?
- jody
Jody Cleveland wrote:
Hello,
I've got a site that I upgraded from 4.7.4 to 5.0. I also upgraded tinyMCE with it. I noticed that Tiny MCE makes the input formats ineffective. For example, if I choose 'php code' from the input formats when posting a new page, instead of parsing the php code, it just displays it. It does the same thing no matter which input format I choose.
Any ideas what may be wrong?
Yes, you can't use TinyMCE with PHP code -- it translates the < in the <?php to a web-safe character.
You need to click the button that lets you directly edit the source (it's there in the standard TinyMCE setup) and enter your code that way.
Yes, you can't use TinyMCE with PHP code -- it translates the < in the <?php to a web-safe character.
You need to click the button that lets you directly edit the source (it's there in the standard TinyMCE setup) and enter your code that way.
I tried that, but there seem to be several things it trims out. Like, on one page I'm trying to add html for a form. Any form elements, it just deletes out. Is there a setting to allow all html tags?
- jody
For users who will be inputting php code, you should disable tinymce by default -- the setting can be adjusted in users' profiles, and sitewide via the tinymce settings.
Cheers,
Bill
Jody Cleveland wrote:
Hello,
I've got a site that I upgraded from 4.7.4 to 5.0. I also upgraded tinyMCE with it. I noticed that Tiny MCE makes the input formats ineffective. For example, if I choose 'php code' from the input formats when posting a new page, instead of parsing the php code, it just displays it. It does the same thing no matter which input format I choose.
Any ideas what may be wrong?
- jody
For users who will be inputting php code, you should disable tinymce by default -- the setting can be adjusted in users' profiles, and sitewide via the tinymce settings.
It's a shame there's not an easy way to do that. It's very rare that any pages will need php code. I just have a few pages where I use <?php include("page.html"); ?> to include external pages.
Ah, well. Thanks for the info!
- jody