From f8d15c66c3b27de05229dad93ff00ed617c4ac66 Mon Sep 17 00:00:00 2001 From: Mark Nelson Date: Wed, 25 Jul 2018 18:09:06 +0800 Subject: [PATCH] MDL-62975 core_form: deprecate the htmleditor element --- lib/form/htmleditor.php | 3 +++ lib/upgrade.txt | 1 + 2 files changed, 4 insertions(+) diff --git a/lib/form/htmleditor.php b/lib/form/htmleditor.php index 32353d67376..0216709fa23 100644 --- a/lib/form/htmleditor.php +++ b/lib/form/htmleditor.php @@ -20,6 +20,7 @@ * * Contains HTML class for htmleditor type element * + * @deprecated since 3.6 * @package core_form * @copyright 2006 Jamie Pratt * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later @@ -55,6 +56,8 @@ class MoodleQuickForm_htmleditor extends MoodleQuickForm_textarea{ * or an associative array */ public function __construct($elementName=null, $elementLabel=null, $options=array(), $attributes=null){ + debugging("The form element 'htmleditor' has been deprecated. Please use the 'editor' element instead.", DEBUG_DEVELOPER); + parent::__construct($elementName, $elementLabel, $attributes); // set the options, do not bother setting bogus ones if (is_array($options)) { diff --git a/lib/upgrade.txt b/lib/upgrade.txt index f2e8d0b5243..583c1056408 100644 --- a/lib/upgrade.txt +++ b/lib/upgrade.txt @@ -6,6 +6,7 @@ information provided here is intended especially for developers. * Custom AJAX handlers for the form autocomplete fields can now optionally return string in their processResults() callback. If a string is returned, it is displayed instead of the list if suggested items. This can be used, for example, to inform the user that there are too many items matching the current search criteria. +* The form element 'htmleditor' has been deprecated. Please use the 'editor' element instead. * The following functions have been finally deprecated and can not be used any more: - external_function_info() * Following api's have been removed in behat_config_manager, please use behat_config_util instead.