Commit 73f51de4 authored by Pat Kira's avatar Pat Kira Committed by Robert Lyon
Browse files

Bug 1576643 - Enabled tinyMCE on mobile devices

behatnotneeded: Can't test mobile
Change-Id: Ic0ba811d66a6f52468517108fffd331956262748
(cherry picked from commit 4616ac02)
parent 36cf8e72
......@@ -4028,7 +4028,7 @@ function is_html_editor_enabled () {
return (
(!get_config('wysiwyg') && $USER->get_account_preference('wysiwyg')) ||
(get_config('wysiwyg') == 'enable' && $USER->is_logged_in())
) && $SESSION->get('handheld_device') == false;
);
}
/**
......
......@@ -212,7 +212,7 @@ function smarty($javascript = array(), $headers = array(), $pagestrings = array(
// Note: we do not display tinyMCE for mobile devices
// as it doesn't work on some of them and can
// disable the editing of a textarea field
if ($SESSION->get('handheld_device') == false) {
if (is_html_editor_enabled()) {
$checkarray = array(&$javascript, &$headers);
$found_tinymce = false;
foreach ($checkarray as &$check) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment