Skip to content

Commit 5f13e88

Browse files
author
David Monllao
committed
Merge branch 'MDL-62738_35' of https://github.com/mfabriczy/moodle into MOODLE_35_STABLE
2 parents a16f2c8 + 975c91d commit 5f13e88

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

lib/editor/tinymce/module.js

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -59,28 +59,6 @@ M.editor_tinymce.init_editor = function(Y, editorid, options) {
5959
}
6060
}
6161

62-
// We have to override the editor setup to work around a bug in iOS browsers - MDL-36803.
63-
if (Y.UA.ios) {
64-
// Retain any setup which is already defined.
65-
options.originalSetupFunction = options.setup || function(){};
66-
options.setup = function(editor) {
67-
options.originalSetupFunction();
68-
editor.onPostRender.add(function(ed) {
69-
// Whenever there is a keydown event, ensure that the contentWindow still have focus.
70-
ed.contentDocument.addEventListener('keydown', function() {
71-
ed.contentWindow.focus();
72-
});
73-
74-
// Whenever a touch event is registered against the content document,
75-
// reapply focus. This works around an issue with the location caret not
76-
// being focusable without use of the Loupe.
77-
ed.contentDocument.addEventListener('touchend', function() {
78-
ed.contentWindow.focus();
79-
});
80-
});
81-
};
82-
}
83-
8462
// Retain any setup which is already defined.
8563
options.originalSetupFunction = options.setup || function(){};
8664
options.setup = function(editor) {

0 commit comments

Comments
 (0)