Commit cf25fe12 authored by Robert Lyon's avatar Robert Lyon

Bug 1856759: Fixes for IE11

behatnotneeded

Change-Id: I3beb81564e93b2f0ddc4c833d7da91ae29cdb02a
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent 7577913f
......@@ -212,7 +212,7 @@ function formGlobalError(form, data) {
// Message related functions
function makeMessage(message, type, temp=false) {
function makeMessage(message, type, temp) {
if (message === undefined) {
return;
}
......
......@@ -12,21 +12,23 @@
tinymce.PluginManager.add('tooltoggle', function(editor) {
var tooltoggleState = false, DOM = tinymce.DOM;
var firstrow;
editor.ui.registry.addToggleButton('toolbar_toggle', {
icon: 'chevron-up',
tooltip: get_string('toggletoolbarson'),
onAction: function(api) {
jQuery(editor.editorContainer.childNodes[0].childNodes[0].childNodes[0]).siblings().toggleClass('d-none')
jQuery(editor.editorContainer.childNodes[0].childNodes[0].childNodes[0].childNodes[0].childNodes[0]).toggleClass('flipicon');
firstrow.siblings().toggleClass('d-none');
firstrow.find('button').first().toggleClass('flipicon');
api.setActive(!api.isActive());
tooltoggleState = !tooltoggleState;
editor.fire('ToolToggleStateChanged', {state: tooltoggleState});
},
onSetup: function(api) {
var self = this;
jQuery(editor.editorContainer.childNodes[0].childNodes[0].childNodes[0]).siblings().toggleClass('d-none');
jQuery(editor.editorContainer.childNodes[0].childNodes[0].childNodes[0].childNodes[0].childNodes[0]).addClass('flipicon');
firstrow = jQuery(editor.editorContainer).find('.tox-toolbar-overlord').children().first();
firstrow.siblings().addClass('d-none');
firstrow.find('button').first().addClass('flipicon');
editor.on('ToolToggleStateChanged', function(api) {
if (api.state) {
api.target.formElement[2].title = get_string('toggletoolbarsoff');
......
......@@ -275,5 +275,6 @@ body {
.main-content {
flex: 1;
-ms-flex: 0 0 auto; // IE11 fix
}
}
Markdown is supported
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