source editor deletes page content after closing and opening it

Topics: General, Visual editor
Aug 10, 2011 at 8:36 PM

Hello

I create a page content in source editor Mode, save it publish it. Everything is fine

this is partial example of it

        <div id="dugme">  <a id="button2" href="~/Products/Electro" title="Features"><h4>Features</h4></a>    </div>

        <div id="dugme">  <a id="button2" href="~/Products/Electro" title="Evaluation"><h4>Evaluation</h4></a> </div>

I close visual editor. 

10 minutes later, I  log in. I go to the page to edit  and this is what i see:

                 <div id="dugme"><h4>Features</h4></div>

                 <div id="dugme"><h4>Evaluation</h4></div>

<a> tags are gone !!!

how can i solve this issue,

thanks in advance

 

Aug 10, 2011 at 8:44 PM

Hi again 

I forgot the mention i am using C1 2.1.3 Beta 2     Build no 2.1.4204.22417

browsers are firefox 4.0 and Chrome 13.0.782.112

 

Coordinator
Aug 11, 2011 at 7:59 AM

Hello,

You attempt to put a block-level element <h4> inside an inline element <a>(the same behavior you can see on http://www.tinymce.com/tryit/full.php ).

Try this:

<div id="dugme">
      <h4><a id="button2" href="~/Products/Electro" title="Features">Features</a></h4>
    </div>
    <div id="dugme">
      <h4><a id="button2" href="~/Products/Electro" title="Evaluation">Evaluation</a></h4>
    </div>

Aug 11, 2011 at 8:06 AM

Yir! Forcing editors to write valid html - making the world a better place, one step at the time :)

Coordinator
Aug 11, 2011 at 8:49 AM

hehe - expect we seem to allow multiple elements with the same id, but as you said "one step at the time" ;-)

Aug 11, 2011 at 7:41 PM

Thank you, Inna