TinyMCE:API/tinymce.Editor/convertURL

From Moxiecode Documentation Wiki

Jump to: navigation, search

Contents

Method: convertURL

Summary

URL converter function. This gets executed each time a user adds an img, a or any other element that has a URL in it. Will be called both by the DOM and HTML manipulation functions.

Syntax

<string> convertURL(<string> u, <string> n, <string/HTMLElement> Tag)

Parameters

u
URL to convert.
n
Attribute name src, href etc.
Tag
name or HTML DOM element depending on HTML or DOM insert.

Returns

Converted URL string.

Personal tools