Knowledge Base

Answers to Common liveSite Questions

Back to Knowledge Base

 
Common User Issues, Content Management, Site Design

Why does my HTML disappear or get altered when I save a page?

In some cases, when you cut and paste a third-party HTML widget, an image map, javascript, or some other code snippet to a content region using the Rich-text Editor, your code disappears or gets altered to the point they don't work.

This happens because the Rich-text Editor will attempt to "clean" all content you entered into it upon saving the content. It does this in an attempt to be sure that the formatting is correct, produce text that does not contain any missing closing tags, remove incorrectly nested tags, etc.  This feature has an ill effect on some code snippets.

If this happens with the code snippet you are trying to add to your content regions, you need to use either a Designer Region or embed your code snippet directly into a Custom Page Style. 

There is a great benefit from this approach as well, as it protects your code from accidental alteration by others, since edit access to Designer Regions and Pages Styles is available only to Users with the Designer Role.

 


 
1 Feedback
Added by Camelback Web Architects STAFF

This has been improved in liveSite 7.0. Most javascript will not be removed. If something is getting removed when you save, make sure the syntax is correct.
Add Feedback:
Was this page helpful? Please let us know how we can improve it.
Please login or register to add your feedback.