Picture of César Carranza
Won't preserve Tag's added in the HTML editor
by César Carranza - Tuesday, 10 January 2017, 3:32 PM
 

Hi I'm new to Adapt Learning, very great authoring tool.

I added a Text Component to my course and added some HTML Tags, when I preview my course all the changes appear, but once I need to edit the content, all the tags are gone.

Any ideas what is happening or how I  can preserve all the tags.

Thanks


Picture of Henrik Aabom
Re: Won't preserve Tag's added in the HTML editor
by Henrik Aabom - Wednesday, 11 January 2017, 7:08 AM
 

I would be interested in this too :)

Picture of Helen Bailey
Re: Won't preserve Tag's added in the HTML editor
by Helen Bailey - Wednesday, 11 January 2017, 5:54 PM
 

Have you tried wrapping the paragraph containing the tags in a <div>? That has worked for me for other types of html coding.

Picture of aaron quinn
Re: Won't preserve Tag's added in the HTML editor
by aaron quinn - Thursday, 12 January 2017, 12:16 AM
 

i am experiencing the same thing.

when entering edit mode of the component a second time:

if i don't click save, the tag doesn't get removed from the .json file, but i won't see the tag in the source window, either.

clicking save, with or without changing anything, will remove the tag.

wrapping the span or link in a div does not preserve the tag.

Picture of Christian Lee
Re: Won't preserve Tag's added in the HTML editor
by Christian Lee - Saturday, 11 February 2017, 7:00 PM
 

Did anyone resolve this? Like the thread says tags are not saved. I'm trying to create columns of text also if anyone can help with that.

 

Thanks

Chris

Picture of Ignacio Cinalli
Re: Won't preserve Tag's added in the HTML editor
by Ignacio Cinalli - Monday, 13 February 2017, 2:04 PM
 

Hi, I'm using <div> tags for layout.

<div class="grid">
    <div class="column"><strong>Column 1</strong> Adapt allows you to combine text and graphic components on the scrolling page to create rich and varied learning experiences.</div>
    <div class="column"><strong>Column 2</strong> In addition, a wide range of interactive components are also available to help encourage deeper engagement with the material.</div>
    <div class="column"><strong>Column 3</strong> These presentation components can be structured in any way to help you create learning experiences that meet the needs of your learners.</div>
</div>

Less code:
.grid {
  margin-right: auto;
  margin-left: auto;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  clear: both;
}

.grid:before {
  content: "";
  display: table;
}

.grid:after {
  clear: both;
}

.grid > .column {
  position: relative;
  width: 100%;
  display: -webkit-flex;
  display: flex;
  flex: auto;
  -webkit-flex-direction: column;
  flex-direction: column;
  padding: @item-padding;
}

 
@media (min-width:@device-width-medium) {
  .grid > .column {
    width: 25%;
  }
}
The div attributes has worked for me.
Picture of Tom Taylor
Re: Won't preserve Tag's added in the HTML editor
by Tom Taylor - Monday, 13 February 2017, 10:31 AM
 

The problem here seems to be that the editor is stripping out all attributes on save (e.g. class) -- the tags themselves are retained.

I've tested this with divs, and the div attributes are kept as expected. It does however only seem to support standard attributes; data-id was removed.