(deprecated) Option: insertlink_callback

This callback was removed in 2.0.3, use execcommand_callback instead this also enables you to override other things than the image and link dialogs.

This option enables you to override the built in functionality for inserting links. This option should contain a function name to be executed when a new link is inserted into TinyMCE. The format of this callback function is: insertLink(href, target, title, onclick, action). Where most of these options are self explained the action can be "update" or "insert" depending on what operation type. This function should return an array with the same values as the incomming parameters, the example below describes how this is done. This option is set to a internal TinyMCE function by default.

Example of usage of the insertlink_callback option:

function myCustomInsertLink(href, target, title, onclick, action) {
	var result = new Array();

	// Do some custom logic
	result['href'] = "some_page.htm";
	result['target'] = "_self";
	result['title'] = "Some link title";
	result['onclick'] = "";

	return data;

	insertlink_callback : "myCustomInsertLink"