[Koha-bugs] [Bug 25697] New: Tinymce doesn't load in IE 11 (due to Koha adding version number suffix to Javascript)
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Jun 9 07:53:55 CEST 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25697
Bug ID: 25697
Summary: Tinymce doesn't load in IE 11 (due to Koha adding
version number suffix to Javascript)
Change sponsored?: ---
Product: Koha
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5 - low
Component: Architecture, internals, and plumbing
Assignee: koha-bugs at lists.koha-community.org
Reporter: dcook at prosentient.com.au
QA Contact: testopia at bugs.koha-community.org
Tinymce tries to set its base url by iterating through "script" elements
looking for scripts like tinymce.min.js, and uses the baseurl of the script src
attribute for its own baseurl.
However, we provide something like tinymce.min_19.1106000.js, which will never
match.
This is OK in browsers like Chrome which support document.currentScript as a
fallback.
But IE 11 doesn't support document.currentScript.
The simple solution is just to provide "suffix" and "base_url" when running
tinyMCE.init. It's no big drama, and it means tinymce will work better
cross-browser.
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
More information about the Koha-bugs
mailing list