
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
Google TV ReviewPlaybook - Developers It's Time To Get Started
cf.Objective 2011 - Speak Your Mind
Timesheets, Project Management, and Invoicing - FreshBooks Review
A New Phase of My Life
Recent Comments
OTA OK?
AnoraDD said: I get 18 of these exact sms's everyday! How do I get it to STOP?!?
[More]
Coldfusion Hosting with Network Solutions
LIzm said: Ugh. I have a client who insists on hosting with them and two weeks after first contact, a very simp...
[More]
IE nested list item whitespace solution: vertical-align:bottom
Lauren said: Thought I'd add to the thank yous...
Thank you!
[More]
OTA OK?
Rita said: Thank you, this was very helpful.
[More]
OTA OK?
diggs said: Just got it today, T-Mobile. Thanks for the articale about it.
[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 |
Archives By Subject
blogs (31) [RSS]books (4) [RSS]
Consulting (2) [RSS]
Crazy (39) [RSS]
DIY (8) [RSS]
Flex (3) [RSS]
games (10) [RSS]
GRRR (13) [RSS]
Ideas (11) [RSS]
Local (15) [RSS]
LOLpics (2) [RSS]
money (9) [RSS]
music (3) [RSS]
Personal (28) [RSS]
Photos (8) [RSS]
Politics (8) [RSS]
Projects (22) [RSS]
Review (20) [RSS]
RPM (9) [RSS]
Spam (16) [RSS]
Technology (69) [RSS]
Testing (3) [RSS]
TV (15) [RSS]
video (32) [RSS]
Web Dev (230) [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?
I also got this issue, that my website is running 3.2.4 and it is a KTML lite. I couldn't find a fix for this version. I could find the file mozilla_ie_compat.js it is located in the folder location \ktml2\includes\ktedit, however i could not find the mentiond modules/css/scripts.js the closest I could find was \ktml2\includes\ktedit\modules\linkintrospector\scripts.js but this is a different file. After a while I found some tips on this topic at http://www.pdfok.com/firefox-3-6-ktml , they saved me; and also the info helped me to solve some issues with several people who are using this editor.
I just tried opening the editor in IE from the link you supplied. I was able to open the editor and make a link in IE, both in version 8, as well as compatibility mode for 7.
to
obj_wnd.readyState = "complete";
fixed mine!
Do you have any updates on the latest version of FF? It seems that a lot of plugins have become unusable specially the firebug thing?
Any comments?