Documentation

OnIncludeHTMLEditorScript

handler function();
"OnIncludeHTMLEditorScript" event is called after connecting files of visual editor. Can be used in cases, when the modification of the editor is insufficient for standard connection of external JavaScript files ("OnBeforeHTMLEditorScriptsGet" event).

Attention. Event is triggered only within the framework of the old visual editor.

See also

Example of handler function:


<?
// file /bitrix/php_interface/init.php
// register the handler
AddEventHandler("fileman", "OnIncludeHTMLEditorScript", "OnIncludeHTMLEditorHandler");
function OnIncludeHTMLEditorHandler()
{
	?>
	<script>
	//Re-define the fullscreen setting for editor
	BXHTMLEditor.prototype.SetFullscreen_ = BXHTMLEditor.prototype.SetFullscreen;
	BXHTMLEditor.prototype.SetFullscreen = function (bFull)
	{
		alert('My alert!');
		this.SetFullscreen_(bFull);
	}
	</script>
	<?
}
?>


© «Bitrix24», 2001-2024