HTML Editor for ASP.NET AJAX Professional Edition
UrlConversion Property
Server ReferenceWinthusiasm.HtmlEditorHtmlEditorUrlConversion
The name of a JavaScript function on the page to call when the editor is converting Url's types.
Declaration Syntax
C#
public string UrlConversion { get; set; }
Remarks
The client-side editor will call the named JavaScript function on the page when the editor is converting a Url type. This allows the developer to take appropriate related action, such as overriding the conversion.

The conversionInfo object passed as an argument contains the following members:

  • tagName
  • attributeName
  • url
  • convertedUrl

The developer should modify the convertedUrl member to override the editor's conversion.

Examples
Set the property declaratively in the HtmlEditor tag:
CopyC#
UrlConversion = "MyUrlConversionHandler"
Page JavaScript function:
CopyC#
function MyUrlConversionHandler(editor, conversionInfo)
{
    if (conversionInfo.url == 'http://www.mysite.com/somepage.aspx')
    {
        conversionInfo.convertedUrl = editor.ToRelativeUrl(conversionInfo.url);
    }
    ...
}

Assembly: Winthusiasm.HtmlEditor (Module: Winthusiasm.HtmlEditor) Version: 2.7.0.0 (2.7.0.0)