HTML Source Editor Bug

For general questions and discussions specific to the AbleCommerce GOLD ASP.Net shopping cart software.
Post Reply
User avatar
clevername
Lieutenant (LT)
Lieutenant (LT)
Posts: 54
Joined: Tue Jan 11, 2011 8:54 am

HTML Source Editor Bug

Post by clevername » Mon Dec 17, 2012 12:52 pm

When putting html directly into the source editor, the editor changes the code and makes it invalid. I think it is mainly for the resource paths (src, href, etc.)

My code:

Code: Select all

<img src="/App_Themes/THEMENAME/images/home_banner.jpg" />
Code after update:

Code: Select all

<p><img src="../../../../App_Themes/THEMENAME/images/home_banner.jpg" alt="" /></p>

corgalore
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 32
Joined: Thu Nov 08, 2012 2:57 pm

Re: HTML Source Editor Bug

Post by corgalore » Tue Mar 12, 2013 9:17 am

I'm having this same problem. The editor is almost useless because resource paths are forcing to relative, but when viewed on the actual page, they are invalid.

I can't even fix the problem because that functionality is rolled into a custom assembly.

corgalore
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 32
Joined: Thu Nov 08, 2012 2:57 pm

Re: HTML Source Editor Bug

Post by corgalore » Tue Mar 12, 2013 10:02 am

I found a simple workaround for now. In the Admin/Website/ContentPages/EditContentPage.aspx.cs file, modify this line in the save routine:

Code: Select all

_Webpage.Description = WebpageContent.Value;
Change it to:

Code: Select all

_Webpage.Description = WebpageContent.Value.Replace("../../../", "/my-cart-folder/");

User avatar
ForumsAdmin
AbleCommerce Moderator
AbleCommerce Moderator
Posts: 399
Joined: Wed Mar 13, 2013 7:19 am

Re: HTML Source Editor Bug

Post by ForumsAdmin » Wed Mar 13, 2013 7:48 am

The bug is with the tinyMCE editor we are using.
This has been noted. We plan to fix this in the next update.

User avatar
ForumsAdmin
AbleCommerce Moderator
AbleCommerce Moderator
Posts: 399
Joined: Wed Mar 13, 2013 7:19 am

Re: HTML Source Editor Bug

Post by ForumsAdmin » Mon Mar 18, 2013 10:04 am

We have fixed this for the upcoming release of AC Gold.

Post Reply