Skip to main content

Reply to "New Editor Source Formatting"

I decided that since I got no response on this matter from Auctiva 3 days ago, that I would look into fixing the problem myself. I think I have a resolution if any of the support staff at Auctiva would like to pass it along to development.

The problem stems from the fact that HTML source is stored away for use by the editor in a hidden form input tag...

 <input type="hidden" value="[HTML Source]">  


When this is done, all line feeds and other control characters are lost.

The solution is to use a TEXTAREA tag and set it's visiblity to hidden. Give the TEXTAREA the same id and name as the current INPUT tag, and the editor code will still have access to the HTML source using the value property.

 
<textarea id="[id]" name="[name]" style="visibility:hidden">
[HTML Source]
</textarea>  


This will preserve any carriage return and line feed characters in the source HTML and make working with it much easier.
Copyright © 1999-2018 Auctiva.com. All rights reserved.
×
×
×
×