Using config object event Property

Rich Text Editor for PHP

RichTextEditor_OnLoader event automatically receives an asynchronous loader object. A loader is responsible for loading editor necessary libraries, layout information and asynchronously save data into cache. You can get _config object from the loader, so can execute custom actions to change the configuration.

Event Description
OnLoad This event is invoked immediately after the RichTextEditor is fully loaded.

Example:

<script type='text/javascript'>
function RichTextEditor_OnLoader(loader)
{
	var config=loader._config;
	config.OnLoad=function(editor)
	{
	}
}
</script>
OnDispose This event occurs immediately when a RichTextEditor is removed successfully.

Example:

<script type='text/javascript'>
function RichTextEditor_OnLoader(loader)
{
	var config=loader._config;
	config.OnDispose=function(editor)
	{
	}
}
</script>
OnTextChanged This event is raised if the content of RichTextEditor is changed.

Example:

<script type='text/javascript'>
function RichTextEditor_OnLoader(loader)
{
	var config=loader._config;
	config.OnTextChanged=function(editor)
	{
	}
}
</script>
SelectionChanged This event is raised if the actual selection in the editor area changes.

Example:

<script type='text/javascript'>
function RichTextEditor_OnLoader(loader)
{
	var config=loader._config;
	config.SelectionChanged=function(editor)
	{
	}
}
</script>
OnTabModeChanged This event is raised when switching between edit, code, and preview mode.

Example:

<script type='text/javascript'>
function RichTextEditor_OnLoader(loader)
{
	var config=loader._config;
	config.OnTabModeChanged=function(editor)
	{
	}
}
</script>
OnUpdateUI This event is raised when the editor updates the user interface state.

Example:

<script type='text/javascript'>
function RichTextEditor_OnLoader(loader)
{
	var config=loader._config;
	config.OnUpdateUI=function(editor)
	{
	}
}
</script>
OnPasteFilter This event is raised before the data is pasted into RichTextEditor. It allows you intercept the paste function and filter the content being pasted.
OnInitEvent This event is raised after the iframe document of the editor is reset. You can use it to initialize the iframe document or attach events to the DOM in iframe.
OnUninitEvent This event is raised before the iframe document of the editor is reset. You can use it to dispose all registered DOM elements before OnInitEvent occurs.
OnPreCut This event is raised when starting to copy content in the editor. If ReturnValue=false, the action is canceled.
OnPreCopy This event is raised when starting to cut content in the editor. If ReturnValue=false, the action is canceled.
OnExecCommand This event is raised when ExecCommand is executed.
OnExecUICommand This event is raised when ExecUICommand is executed.
OnFullScreenChanged This event is raised when switching to fullscreen mode.

Send feedback about this topic to CuteSoft. © 2003 - 2012 CuteSoft Components Inc. All rights reserved.