Jump to:

513 Posts in 209 Topics by 259 members

Content Editor Discussions

SilverStripe Forums » Content Editor Discussions » HTML structure (tag position) is changed after saved at CMS

Forum for content editors and CMS users.

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

Page: 1
Go to End
Author Topic: 815 Views
  • leafchild
    Avatar
    Community Member
    41 Posts

    HTML structure (tag position) is changed after saved at CMS Link to this post

    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?

    815 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.