Issue Bug Rejected

#30764exception side effect in "template setup"

Guido Fögler 10/11/11, 01:50 updated 12/08/13, 12:04

Description

try-catch avoids a exception side effect in “template setup“
at “if (!this.mirror.editor)” in typo3/sysext/t3editor/jslib/t3editor.js

problem:
At least in IE9, with “client browser caching” set to another option than “read always” (e.g. automatic or never) the very first touch on “template setup” is rendered as expected.

Any further touch on “template setup” within the same session leads to a incorrect display, due to a thrown exception at “if (!this.mirror.editor)” in case “editor” is undefined.

workaround/solution:
try { if (!this.mirror.editor) return; } catch(e) { return; }

Reviews 1