Fixed NS_ERROR_FAILURE in Firefox related to code.showCode()
authorAlexander Ebert <ebert@woltlab.com>
Tue, 25 Nov 2014 18:25:14 +0000 (19:25 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 25 Nov 2014 18:25:14 +0000 (19:25 +0100)
commita1fa12a3b59b7d95adb9ed4f8d683eae74497a62
treefcbbdff28988f0ce4499f2d594cc059493376d38
parent3752010c5e7f6080afb078de3d32d1738beac602
Fixed NS_ERROR_FAILURE in Firefox related to code.showCode()

Invoking setSelectionRange() on a <textarea> contained in a hidden element (display: none) will invoke NS_ERROR_FAILURE without any further error message. This is an attempt to work around by code.showCode() which is unaware of this fact.
wcfsetup/install/files/js/3rdParty/redactor/plugins/wmonkeypatch.js