$mon = intval($now['mon']);
$yr = intval($now['year']);
- if ($usehtmleditor = can_use_richtext_editor()) {
+ if ($usehtmleditor = can_use_html_editor()) {
$defaultformat = FORMAT_HTML;
} else {
$defaultformat = FORMAT_MOODLE;
print_string("htmleditordisabledadmin");
} else if (!$USER->htmleditor) {
print_string("htmleditordisabled");
- } else if (!can_use_richtext_editor()) {
+ } else if (!can_use_html_editor()) {
print_string("htmleditordisabledbrowser");
} else {
print_string("htmleditoravailable");
print_string("htmleditordisabledadmin");
} else if (!$USER->htmleditor) {
print_string("htmleditordisabled");
- } else if (!can_use_richtext_editor()) {
+ } else if (!can_use_html_editor()) {
print_string("htmleditordisabledbrowser");
} else {
print_string("htmleditoravailable");
return false;
}
-/**
- * Compatibility stub to provide backward compatibility
- *
- * Determines if the HTML editor is enabled.
- * @deprecated Use {@link can_use_html_editor()} instead.
- */
-function can_use_richtext_editor() {
- return can_use_html_editor();
-}
-
/**
* Determines if the HTML editor is enabled.
*
global $CFG;
$prefix = 'response';
- $usehtmleditor = can_use_richtext_editor();
+ $usehtmleditor = can_use_html_editor();
$grade = round($state->last_graded->grade, 3);
echo '<form method="post" action="'.$url.'">';
include($CFG->dirroot.'/question/comment.html');
$str = '<div title="'.$this->field->description.'">';
- if (can_use_richtext_editor()) {
+ if (can_use_html_editor()) {
// Show a rich text html editor.
$str .= $this->gen_textarea(true, $text);
$str .= helpbutton("richtext2", get_string("helprichtext"), 'moodle', true, true, '', true);
function print_after_form() {
- if (can_use_richtext_editor()) {
+ if (can_use_html_editor()) {
use_html_editor('field_' . $this->field->id, '', 'field_' . $this->field->id);
}
}
$context = NULL;
$questions[$question->id] = &$question;
- $usehtmleditor = can_use_richtext_editor();
+ $usehtmleditor = can_use_html_editor();
$users = get_course_students($quiz->course);
$userids = implode(',', array_keys($users));
}
if (count($SESSION->emailto[$id])) {
- $usehtmleditor = can_use_richtext_editor();
+ $usehtmleditor = can_use_html_editor();
require("message.html");
if ($usehtmleditor) {
use_html_editor("messagebody");