Welcome Visitor, Please Login or Register Now Friday, April 19, 2024 09:24 PM 
Forums Index > Mewsoft > Minor Updates and bug fixes > Visual editor bug
New Topic   New Reply
Search for:
Author Message
mewsoft mewsoft's personal page
Administrator Team Member
Posts: 5381 Display member's posts
Joined: 04-19-24 09:24 PM
Location: knxoville, TN, USA
Member Offline
View Member's Profile Visit member's website Mewsoft Corporation Send private message ICQ Messenger: ICQ AIM Messenger: AIM YIM Messenger: Yahoo MSN Messenger: MSN
 
Back to top
Visual editor bug Edit Delete Reply with quote Quote
First Post Posted on: 07-04-09 08:20 AM last post first post
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

Page 1 of 1
Go to page:

New Topic   New Reply Mark Unread
Jump to:  
Delete   Move     Lock   +Favorits   +Notify   Print