Page 1 of 1

HTML Source Editor Bug

Posted: Mon Dec 17, 2012 12:52 pm
by clevername
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>

Re: HTML Source Editor Bug

Posted: Tue Mar 12, 2013 9:17 am
by corgalore
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.

Re: HTML Source Editor Bug

Posted: Tue Mar 12, 2013 10:02 am
by corgalore
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/");

Re: HTML Source Editor Bug

Posted: Wed Mar 13, 2013 7:48 am
by ForumsAdmin
The bug is with the tinyMCE editor we are using.
This has been noted. We plan to fix this in the next update.

Re: HTML Source Editor Bug

Posted: Mon Mar 18, 2013 10:04 am
by ForumsAdmin
We have fixed this for the upcoming release of AC Gold.