Page 1 of 1
[SOLVED] TinyMCE 2.4 removing empty tags
Posted: Tue Jul 29, 2008 5:49 pm
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
Re: TinyMCE 2.4 removing empty tags
Posted: Tue Jul 29, 2008 7:34 pm
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?...
Re: TinyMCE 2.4 removing empty tags
Posted: Tue Jul 29, 2008 8:01 pm
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
Re: TinyMCE 2.4 removing empty tags
Posted: Tue Jul 29, 2008 10:12 pm
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?...
Re: TinyMCE 2.4 removing empty tags
Posted: Wed Jul 30, 2008 10:13 am
by eluminous
How did you go jimeu? Have you tried the suggestions Mark put forward in his last post?
Re: TinyMCE 2.4 removing empty tags
Posted: Thu Jul 31, 2008 12:28 am
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
Re: [SOLVED] TinyMCE 2.4 removing empty tags
Posted: Sat Dec 06, 2008 2:24 am
by tomjaxon
Just wanted to say Thank You for posting your solution.
This has saved a whole lot of my time and frustration.
Re: [SOLVED] TinyMCE 2.4 removing empty tags
Posted: Tue Feb 15, 2011 3:34 pm
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!