Basically, I want to insert a form into one of my pages that links to another website. When I edit the page using TinyMCE, and paste all the form information into the source, TinyMCE strips out the form tag and pretty much everything else.

Is there a way to get around this?

Comments

geojaz’s picture

It's probably not TinyMCE that's stripping it out- it's the input format. If you take a look under the input box, there will be a section called Input Format that you can click to open. It defaults to Filtered HTML, which would strip out all the goodies.

You want to change it to Full HTML for this purpose...

smithaa02’s picture

Double checked that and my input format is definitely 'Full HTML'. Does the 'Full HTML' input format have a separate filtering setting that can be tweaked?

styro’s picture

does have it's own filtering etc - but I think (not sure though) you might need to be using the advanced theme (thats the TinyMCE theme not the Drupal theme) to get the detailed configuration options.

The readme that comes with the TinyMCE (Drupal) module explains how you can set TinyMCE parameters in your Drupal themes template.php file. You'll then need to look through the docs on the TinyMCE wiki to see what all the parameters do. There are options to allow extra HTML elements and attributes etc.

Although it is a lot more work to set up, I prefer to give all my users the advanced TinyMCE theme and heavily customise how TinyMCE behaves for each user role in my template.php. TinyMCE just annoys me too much in its default state.

--
Anton
New to Drupal? | Troubleshooting FAQ
Example knowledge base built with Drupal

-hgn-’s picture

I have the same kind of problem with TinyMCE messing up all the third party HMTL code. Is there any solution to that when I'm a non-programmer and I don't feel like editing the PHP files?

Thank you!

-------------------------------
www.Bossite.com
Live from Prague, Czech republic
-------------------------------

styro’s picture

But in my mind editing the template.php file in your theme is far preferable than editing the Javascript files that come with TinyMCE.

I also suspect that if someone created a GUI that could configure every available TinyMCE setting it could possibly be more complex and harder to use than figuring out how to edit a few files anyway.

--
Anton
New to Drupal? | Troubleshooting FAQ
Example knowledge base built with Drupal

Mel55113’s picture

but Full HTML probably isn't what you want. I'm pretty sure the TinyMCE doc recommends creating an input format that does NO filtering and calling it something like "Rich Text Editing." This is what you want to use when you want to allow anything to be used.

Hope this helps,
Mel

cgjohnson’s picture

I have the same problem -- what I'd like to do is PERMANENTLY "disable rich text" in a few places. I can do that and save it fine, but if I og back in to edit it, it immediately reverts back to rich text and strips all the coding. This happens whether or not I use Full HTML or PHP input... it's frustrating.

Is there any way to set tinymce off for good in a node or two? or a better workaround that doesn't involve too much hacking?

thanks

cgjohnson’s picture

how would i create this input and would it solve the problem? a relative newbie and confused...thank you.

jody lynn’s picture

I solved this problem by going into the tinymce settings page and unchecking 'verify html'

--Zivtech--