Line break issue in HTML Editor

Line break issue in HTML Editor

Untitled Document

If you have issue with your HTML Editor, every time you save or update the product after entering text in HTML editor and click update record, if you view source from HTML editor (clicking < >) , you will see that there is an extra "< /br>" at the end of text that is automatically added.

The HTML editor is built using Innova Studio . They have a setting "useDIV" and "useBR" from their default.

In IE browser, if you press [ENTER] for line break the Editor will apply <DIV> by default. In Netscape, Firefox, <BR> will be applied.

In IE browser, you can change the behaviour to apply <P> or <BR> by default.

For VPASP 7.00, please open file admin$db.asp and locate the following code to see:

oEdit_<%=fieldname%>.useDIV=false;
oEdit_<%=fieldname%>.useBR=false;

For VPASP 6.50, please open file shop$db.asp and locate the following code to see:

oEdit_<%=fieldname%>.useDIV=false;
oEdit_<%=fieldname%>.useBR=false;

They are automatically set to false by default, means the HTML editor should not automatically add a line break after saving the text.

If you are having trouble that you are still see a line break < /br> at the end of text after saving it, then you must be using browser other than IE e.g. Firefox, Netscape etc..

Please note that this is a bug from Innova Studio, the line break < /br> will not happen in IE browser, but if you try updating products, contents etc.. from Firefox or Netscape you will see the extra < /br> issue.

They have the explanation about this in their help guide chapter IV.5. Line Break at :
http://helpnotes.vpasp.com/Innova-Studio-Developers-Guide.pdf

As a temporary solution, the issue can be resolved by using IE browser when updating the text using HTML editor.

Hope this helps.


Times Viewed:
4250
Added By:
Wilson Keneshiro
Date Created:
7/20/2011
Last Updated:
7/20/2011