[SOLVED] TinyMCE 2.4 removing empty tags

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
jimeu
Forum Members
Forum Members
Posts: 17
Joined: Mon Mar 10, 2008 11:49 pm

[SOLVED] TinyMCE 2.4 removing empty tags

Post by jimeu »

I am having a problem with TinyMCE deleting empty and also form hidden tagas, which is also an empty tag.
I have searched on the forum, and most post refereing to this are from 2005 and what they offer as solution, are not on the current version, for example to
change  these variables (with common tags) over to this values on /modules/TinyMCE/tinyconfig.php
another post states to make the changes on /modules/TinyMCE/TinyMCE.module.php
but such lines don't exist on either files.

the code is

Code: Select all

valid_elements : "*[*]",
extended_valid_elements : "*[*]",
I did a text search for "extented_valid_elements" on the entire folder to see which files have these texts within them, and my search only brings 1 result  tiny_mce.js but it is 150 KB , all in 1 line script which is hard to read or make sense of anything
(I am using Notepad ++  and dreamweaver to read the file)

need orientation please

CMSMS 1.3
TinyMCE 2.4.0

I will really like for TinyMCE to leave my html just as I insert it, without validating, removing or fixing my html code.

thank you.

Jimeu
Last edited by jimeu on Thu Jul 31, 2008 12:30 am, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12709
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: TinyMCE 2.4 removing empty tags

Post by Dr.CSS »

Upgrade to latest tiny then in tiny admin there are check boxes to tell it not to mess with your html etc....

Mind if I ask why you are putting html in the content edit box of tiny?...
jimeu
Forum Members
Forum Members
Posts: 17
Joined: Mon Mar 10, 2008 11:49 pm

Re: TinyMCE 2.4 removing empty tags

Post by jimeu »

I upgraded to tinyMCE to 2.4.2 which is the latest, but the same features, checkboxes in the CMSMS admin.
nothing new, same as before.

to answer your follow up question, the empty is being used in creating a personalized tag and the hidden filds are on a content page to use our own feedback/contact forms with an external php mailer, as we can't get the look we need with current modules as easy as with dreamweaver and pasting it.

I did a test with the 2.4.2 version, if I enter html code whatever tiny will change to whatever

I will love for tiny to leave as is, what I type holds without tiny to modify it.

any ideas to solve the original issue ?

Jimeu
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12709
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: TinyMCE 2.4 removing empty tags

Post by Dr.CSS »

So you checked these and it still strips your stuff out?...

First page: Apply source formatting to the output HTML:

Last tab: Force clean on paste:

Have you tried turning tiny off then submitting?...
User avatar
eluminous
Forum Members
Forum Members
Posts: 36
Joined: Fri May 02, 2008 3:26 am
Location: Victoria, Australia

Re: TinyMCE 2.4 removing empty tags

Post by eluminous »

How did you go jimeu? Have you tried the suggestions Mark put forward in his last post?
jimeu
Forum Members
Forum Members
Posts: 17
Joined: Mon Mar 10, 2008 11:49 pm

Re: TinyMCE 2.4 removing empty tags

Post by jimeu »

First page: Apply source formatting to the output HTML: Yes I has allways been checked and unchecked makes no difference
Last tab: Force clean on paste: Yes I has allways been checked and unchecked makes no difference

Have you tried turning tiny off then submitting?...
Yes, I did that, but when trying to edit it (which turns on the javascript / tiny) it will strip it again.

After counteless hours, here is what I did and it worked.

all post in the forum listed to change the values of these variables on a particular file (tinyconfig.php  & TinyMCE.module.php) but the files did not have it.

Code: Select all

valid_elements : "*[*]",
extended_valid_elements : "*[*]",
On the last page "advanced" the very last option has "Extra configuration" and I entered that code there.

voila !!  solved it for me.

Jimeu
tomjaxon
New Member
New Member
Posts: 7
Joined: Mon Aug 20, 2007 9:26 am

Re: [SOLVED] TinyMCE 2.4 removing empty tags

Post by tomjaxon »

Just wanted to say Thank You for posting your solution.

This has saved a whole lot of my time and frustration.
beherenow_uk
Forum Members
Forum Members
Posts: 103
Joined: Fri Nov 28, 2008 11:26 am

Re: [SOLVED] TinyMCE 2.4 removing empty tags

Post by beherenow_uk »

Hi there,

in TinyMCE 2.8.2 this worked, only I had to remove the 2nd line as it was preventing TinyMCE from working completely.

Thanks for sharing!
Post Reply

Return to “Modules/Add-Ons”