Bug #5136

"t is not defined" Error when editor gets destroyed

Submitted:
2012-04-10 14:46:16 By: Febe
Browsers:
firefox msie safari chrome opera
Closed Priority: 3 Resolution: Fixed Assigned to: None
Description of problem:
Javascript error on line 13518. t is not defined.

Steps to reproduce:
1. Call tinyMCE.execCommand('mceRemoveControl', false, idOfTextarea);

Problem:
In 3.5b3 you renamed t to self, but didn't rename the used variable in the same line to get the doc.

Solution:
Change line 13518 (in function hide()) to: var self = this, doc = self.getDoc();

 

If you wish to follow or post a comment, you need to be registered and logged in.

Comments

User Image
  • 2012-04-10 16:48:43

spocke

This one is fixed in the 3.5 branch will be part of the next release.

User Image
  • 2012-04-14 20:45:48

IKraus

I am sorry to report that I am using v3.5 of your editor and the bug is still present.

User Image
  • 2012-04-16 17:44:53

jlo

You need the latest branch build of 3.5 to get the fix.