Forums Index > Mewsoft > Minor Updates and bug fixes > Visual editor bug
mewsoft First Post Posted on: 07-04-09 08:20 AM
Visual editor bug

This is a fix for a bug in all templates that have the new visual html editor which appears when user switch to text mode.

This applies to all products Auctionawy, Classifiedawy, Boardawy.

find this code in the template:

<script type="text/javascript">
function mySubmit() {
//document.NewPost.save.value = "yes";
document.NewPost.onsubmit(); // workaround browser bugs.
document.NewPost.submit();
};



and replace it with this code:


<script type="text/javascript">
function mySubmit() {
if (typeof (_editor_url) != "string") {
document.NewPost.submit();
return;
}
//document.NewPost.save.value = "yes";
document.NewPost.onsubmit(); // workaround browser bugs.
document.NewPost.submit();
};
</script>



it is very important to replace the form name which is different for each template, in the above code it is "NewPost" for example in the sell auction page it is "Add_Item_Form"

If you can not do the editing just upload the new template or copy this part only from the new template or the demos.

Mewsoft Support
www.mewsoft.com