TinyMCE and HTML

Permalink
Hi, Im trying to put a slide show into a expanding block. It all works well except for some reason two harmless little div tags that hold some gradients will not stay in TinyMCE HTML editor. I can copy them in but after the update they are not there. There are other div tags in there. But it will not take these ones.

<div id="grad_left"></div>
      <div id="grad_right"></div>


This code after it is
<a href="#" id="next">+</a>
      <a href="#" id="prev">-</a>


and stays put. But try to put those harmless little divs before it and No Way Dude!

I have heard the editor rejects certain HTML for some reason?

Can anyone enlighten me please?

Nigel

nige
 
s2d replied on at Permalink Reply
s2d
Wouldn't it be easier to just use an html block to hold this, Nige? It won't second-guess what you're trying to do with your div tags like TinyMCE tends to.
nige replied on at Permalink Reply
nige
Yes it would, but I wanted it to be all neatly tucked into an expanding content block. It's all working just these two lonely divs at the bottom. The only expanding content blocks I have, use TinyMCE.

Nige
nige replied on at Permalink Reply
nige
Solution is for anyone interested is to put something into the divs. I was using them with background images and TinyMCE doesnt allow empty divs.

So I put in a couple of "1" (digits) into the divs and colored them white, luckliy this was the background.

Awful hack I know but it worked.

NIge
Erik74 replied on at Permalink Reply
Put a space
 
instead of 1.
Then it will stay and you don't have to have bogus content in the div.
Mnkras replied on at Permalink Reply
Mnkras
or
& nbsp;
(not breaking space) (remove the space)
Erik74 replied on at Permalink Reply
Ohh, I see that my code block actually became a non-breaking space instead of the code Mnkras posted =)
Mnkras replied on at Permalink Reply
Mnkras
yea, I submitted a bug about that :)
nige replied on at Permalink Reply
nige
I did try a space but it wasn't enough, it wanted real content, hence the digit. I didn't try nbsp.

Nige