From a307f2d42945916ac9828b1b648822edce38000a Mon Sep 17 00:00:00 2001 From: Andrew Nicols Date: Tue, 15 Nov 2022 12:35:27 +0800 Subject: [PATCH] MDL-76306 editor_tiny: Enable Tiny by default on install --- lib/editor/tiny/db/install.php | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 lib/editor/tiny/db/install.php diff --git a/lib/editor/tiny/db/install.php b/lib/editor/tiny/db/install.php new file mode 100644 index 00000000000..fe0fb6ca9a6 --- /dev/null +++ b/lib/editor/tiny/db/install.php @@ -0,0 +1,32 @@ +. + +/** + * TinyMCE Editor post install hook. + * + * @package editor + * @subpackage tiny + * @copyright 2022 Andrew Lyons + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + + /** + * Post installation procedure for the TinyMCE editor. + */ +function xmldb_editor_tiny_install(): void { + $editormanager = \core_plugin_manager::resolve_plugininfo_class('editor'); + $editormanager::enable_plugin('tiny', true); +}