
FireFox 3.6 KTML Editor Fix
With the introduction of Firefox 3.6 today I was alerted that the KTML editor used by some clients wasn't fully loading. The error indicated a missing setter. It turns out it is an easy fix.
In the file
/ktm/core/mozilla_ie_compat.js
you will find
This line is trying to set what FF 3.6 apparently thinks is a read only variable. I removed the line. So far no issues.
Next the file:
/ktm/modules/css/scripts.js
2setTimeout(function () {
3_this.init_fillCssClasses();
4},
5400);
6return;
7}
As a dirty hack to test I simply changed it to
2setTimeout(function () {
3_this.init_fillCssClasses();
4},
5400);
6return;
7}
Basically the code always waited for the complete value in the readystate but firefox wasn't setting it. So it would never fire. Now we force it to fire by skipping the reload timeout.
So far these are the only two items to fix and the editor is working back to normal. However I am not 100% certain other issues may not come up.
The javascript is minified, so can be hard to read. If you ever need to read it there are some online utilities to help make it readable again. I found this one to be very useful.

NAVIGATION
HomeAbout Me
RSS
Search
Subscribe
Recent Entries
Inception Plot QuestionsRandom Chuck Norris Fact Generator With A Twist
Virtual Currency for Buses
Applying ColdFusion Security Patches Gotcha
Privacy, Walled Gardens, Standards and Our Future
Recent Comments
KTML File Uploads Hang in IE7 with Flash 10 and How to Fix
Eric said: Thanks much
[More]
Inception Plot Questions
hohack said: @ switchkosterice 5 comments, those kids are from when mal is alive still
[More]
Inception Plot Questions
Ira said: Just saw it a 2nd time. Do so, and pay extremely close attention to two details throughout the film:...
[More]
Inception Plot Questions
said:
[More]
Inception Plot Questions
switchkosterice said: The kids at the end actually have aged. In fact, they're an entirely different (and older) set of ac...
[More]
Calendar
| Sun | Mon | Tue | Wed | Thu | Fri | Sat |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | ||||
| 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| 11 | 12 | 13 | 14 | 15 | 16 | 17 |
| 18 | 19 | 20 | 21 | 22 | 23 | 24 |
| 25 | 26 | 27 | 28 | 29 | 30 | 31 |
Archives By Subject
blogs (31) [RSS]books (4) [RSS]
Crazy (39) [RSS]
DIY (8) [RSS]
Flex (3) [RSS]
games (10) [RSS]
GRRR (13) [RSS]
Ideas (11) [RSS]
Local (14) [RSS]
LOLpics (2) [RSS]
money (9) [RSS]
music (3) [RSS]
Personal (27) [RSS]
Photos (8) [RSS]
Politics (8) [RSS]
Projects (22) [RSS]
Review (19) [RSS]
RPM (9) [RSS]
Spam (16) [RSS]
Technology (68) [RSS]
Testing (3) [RSS]
TV (15) [RSS]
video (32) [RSS]
Web Dev (224) [RSS]
World of Warcraft (16) [RSS]

if (this.edit.readyState != "complete") {
setTimeout(function () {
_this.init_fillCssClasses();
},
400);
return;
} else {
Problem is my Javascript experience is not worth mentioning.
It is a crappy hack but basically forces the else which triggers the css mod to load.
I am still fighting to keep my code going as there is nothing better than KTML nad I have written many mods over the years.
A better fix is simply to change
obj_doc.readyState = "complete";
to
obj_wnd.readyState = "complete";
the varibale is now still added to the object allowing the other code/functionality to remain in place. This probably was always a bug only it took FF 3.6 to expose it.
I love to hook up with anyone interested in keeping KTML/Interakt suite current. I am currently trying to get it fixed to work with PHP 5.3 (this may be a step too far ;-)
When inserting a table you can't select the number of columns.
So I assume something in inserttable.js needs to be fixed.
Like I said previously my java is no good.
Anyone with a solution?
It seems the site I have taken over is running 3.2.4 (Appears to be KTML lite). I cant seem to find a fix for this version. I can find the file mozilla_ie_compat.js it is located in the folder location \ktml2\includes\ktedit, however i cannot find the mentiond modules/css/scripts.js the closest I can find is \ktml2\includes\ktedit\modules\linkintrospector\scripts.js but this is a different file.
Any ideas? How easy is it to update without breaking anything
I tried fixing the code, I tried replacing files, and I tried copying and pasting the code--all to no avail. Anyone else still having problems with the dropdowns in FF?
What OS are you guys running? After clearing my cache and restarting my Win XP desktop (and Firefox on one of the Macs in the office), the issue persists. However, on my Win 7 laptop, it works fine. (as you mentioned, IE works fine). I'm not even sure why there would be a difference between FF on Win7 and XP, though.
(sorry Joshua, if we're hijacking the comments, but you're the best Google hit for this particular issue).
-
Thanks and continue the good work
_________________________________
- Jean Essay
Any thoughts?