Is there a way to keep tinymce from stripping away HTML tags that i want as default code embedded in a page. In flexinodes that i have created that have default html such as pay pal buttons or links to other pages the tinymce editor strips away all the tags.
I checked the tinymce documentation and i see that there are ways to set the configuration but i don't know where in the tinymce drupal module to set the configuration options.
another approach would be if i could set certain text areas on a page not to havy tinymce enable at all. I see the option to turn it on/off for specific areas but i mean within a page does such a feature exist.
would this be the type of thing to post in the issues area of tinymce?
FROM THE TINYMCE FAQ:
Why does TinyMCE strip aways attributes or tags from my source?
You need to check out the "valid_elements" and "extended_valid_elements" option in the configuration. By default, TinyMCE only allows certain tags and attributes. TinyMCE also tries to follow the XHTML specification as much as possible (and so should you), this can cause some unexpected source changes, there are however configuration options to battle this issue, study the configuration options in details.
Comments
Even if php is input format tinymce strips text
looking through the module code it appears to me a non-programmer that the following should turn tinyMCE off in case the php input format is selected. It doesn't.
maybe its really for something else. Anyway it's definitely over my head. help!
You got it right!
You got it right! It does turn it it off in a php field.
::::::::::::::::::::::::::
My opinion of drupal:
The best of the best
What I have to say about drupal:
::::::::::::::::::::::::::
in my installation even though it says it does IT DOESN'T
TURN OFF IF PHP
Quite a few times tinyMCE has devoured a nice complicated php snippet blend which i have compiled from the handbook ones. I now login with tinyMCE off if i am doing site admin.
My immediate problem is that flexinodes seem to act a bit inconsistently with TinyMCE on, sometimes even a simple link tag is removed. I can't determine a reason for this and it means it's hard to take advantage of flexinodes ability to place default html before or after user supplied content. (i.e. links to pay pal buttons, links to relevant content which will always be related to that node type etc.) I am about to recruit a number of new content creators who are low in HTML skills so they will need tinyMCE on all the time.
Again any suggestion's on how to turn off tinymce in specific parts of an input page. A cool bit of theming code? a hack to the module?
Try turning off verify html
In tiny MCE profile settings. Under admin >settings >tiny MCE (edit profile) > Cleanup and output > 'verify HTML' - uncheck this option
Tiny MCE still devours php code
Unofrtunately that doesn't help. Tiny MCE still devours php code (and messes up flash embeds as well I might add).
Configuration for filters
At some point i found the config instructions for tinymce and made some changes. That solved the problem with the image URLs now though i have a different problem the first time a page is created it defaults to tynmce on no matter what the settings are.