Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Content Editor Discussions /

Forum for content editors and CMS users.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

HTML structure (tag position) is changed after saved at CMS


Go to End


2205 Views

Avatar
leafchild

Community Member, 41 Posts

17 May 2011 at 11:24am

Edited: 19/05/2011 5:19am

When I tried to use HTML editor
some HTML tag closed position changed automatically and that messing up layout

ex:

<div id="middleWrapper"> 
    <div id="middle"> 
    <div class="padTop30"><!-- --></div> 
    <div class="containerCareer"> 
   
    <div class="cuLft2"> 
    ...
   </div>
    	<div class="cuLftIn"> 
           ...
      </div>

</div>
</div>

.......
 

became like this after save:

 <div id="middleWrapper"> 
    <div id="middle"> 
    <div class="padTop30">
    <div class="containerCareer"> 
   
    <div class="cuLft2"> 
    ...
   </div>
    	<div class="cuLftIn"> 
           ...
      </div>

</div>
</div>
</div>

It seems like Editor doesn't like tag when there is nothing inside of tab.

How can I prevent editer changing something like this?