Description

When a rich text editor instance completes initializing, ColdFusion calls this function and passes it the FCKEditor instance that underlies the rich text editor.

Function syntax

ColdFusion.RichText.onComplete(editorInstance)

See also

ColdFusion.ProgressBar.updateColdFusion.ProgressBar.reset

History

ColdFusion 8 update 1: Added this function

Parameters

Parameter

Description

editorInstance

the FCKEditor instance that underlies the rich text editor.

Returns

This function does not return a value.

Usage

When a rich text editor instance completes initializing, ColdFusion calls this function and passes it the FCKEditor instance that underlies the rich text editor. The function can then perform any needed post-initialization operations.

Examples

<html>
<head>
<script type="text/javascript">
//User defines this function to get control once the rich text editor
//is done with its initialization
ColdFusion.RichText.OnComplete = function(editorInstance)
{
alert("on complete called");
alert("editor instance = " + editorInstance));
}
</script>
</head>
<body>
<cfform>
<cftextarea richtext = true name="richtext1">
</cfform>
</body>
</html>

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy