The name of a JavaScript function on the page to call
when the editor is converting Url's types.
| C# |
public string UrlConversion { get; set; }
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.
Set the property declaratively in the HtmlEditor tag:
CopyC#
Page JavaScript function:
CopyC#
UrlConversion = "MyUrlConversionHandler"function MyUrlConversionHandler(editor, conversionInfo)
{
if (conversionInfo.url == 'http://www.mysite.com/somepage.aspx')
{
conversionInfo.convertedUrl = editor.ToRelativeUrl(conversionInfo.url);
}
...
}