Jump to content

Extension:TinyMCE/Hooks/TinyMCEDisable

From mediawiki.org
TinyMCEDisable
Available from version ??? (Gerrit change 437058)
Allows other extensions the opportunity to disable TinyMCE on a page
Define function:
public static function onTinyMCEDisable( Title $title, IContextSource $context ) { ... }
Attach hook:
$wgHooks['TinyMCEDisable'][] = 'MyExtensionHooks::onTinyMCEDisable';
Called from:File(s): TinyMCE / TinyMCE.hooks.php
Function(s): enableTinyMCE

For more information about attaching hooks, see Manual:Hooks .
For examples of other extensions using this hook, see Category:TinyMCEDisable extensions.

Parameters

[edit]
  • $title: An instance of Title
  • $context: An instance of IContextSource