This is a migrated thread and some comments may be shown as answers.

editor adds host name to url in chrome

1 Answer 45 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Dmitry
Top achievements
Rank 1
Dmitry asked on 13 Sep 2011, 08:38 AM
Steps to reproduce :
  1. Open "Chrome" browser(I was not able to reproduce this behavior on IE and Firefox)
  2. Go to the  following link :"http://demos.telerik.com/aspnet-ajax/editor/examples/contentfilters/defaultcs.aspx"
  3. Select the "HTML" tab in editor 
  4. Paste following snippet into editor:  <div style="background-image: url(/~/image/picture.jpg);">text</div>
  5. Select the "Design" tab and then again select "HTML" tab

As a result you will have the following:
<DIV STYLE="BACKGROUND-IMAGE: URL(HTTP://DEMOS.TELERIK.COM/~/IMAGE/PICTURE.JPG);">TEXT</DIV>

Editor adds the host name to url.

Why after switching between tabs("Design" and "HTML") the host name was added to the url , and how can I prevent such a behavior? 

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 14 Sep 2011, 04:10 PM
Hi Dmitry,

Could you please disable the ConvertToXhtml filter and test again:

RadEditor1.DisableFilter(Telerik.Web.UI.EditorFilters.ConvertToXhtml);

Note that the tilde symbol is resolved in ASP.NET only and this path is invalid in the web.
All the best,
Rumen
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal
Tags
Editor
Asked by
Dmitry
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or