KTML File Uploads Hang in IE7 with Flash 10 and How to Fix

I am still using the KTML WYSIWYG editor and some users have mentioned recently that IE7 no longer allows them to upload files via the file browser.  My test computers work just fine so it took a while to find the cause.  Oddly enough my test computers had yet to install Flash 10.

It turns out that Flash 10 (which is great) changed how they allow js to trigger certain things such as opening new window for file browsing.  This has affected a great many sites and tools.  I can't blame Adobe for making the security change, it makes sense to me. However we must have some solution for our customers.

Now to the important part, how to fix KTML:

It turns out I don't care about using flash to upload files. The utility in KTML only works in IE7 anyway which I never use.  So for our case we are just going to disable the flash option completely so the browser performs a normal file upload.

Open /ktm/modules/filebrowser/filebrowser.js

Do a search for 'is.mozilla||version.major<8'.  This js code is shrunk and so hard to read.  The fastest and easiest change for you (not very clean though) is to just change that 8 to 20.  so it would be is.mozilla||version.major<20

Next do another search for 'is.ie&&version.major>=8'  notice the >= this time?  Also change that 8 to 20.

This is telling the editor is to only use the flash module if it is IE and if it Flash is at version 20 or greater.  Since we are at version 10 it will be a very very long time before we hit that mark.

That's it, all should work just fine now (remember to cntr-R to clear js cache of that editor page).  Remember, this is a hack fix.  I could redo the js to be better, but frankly I have more important things to work on at the moment and the compressed code is a pain to work with.  Since KTML is a dead editor anyway I would like to spend my time working on finding a new editor that is supported and better. 

Does such a thing exist?  I can dream can't I?

 

TweetBacks
Comments
Bryan's Gravatar TinyMCE editor is pretty cool, and open source. Might be worth looking into.
# Posted By Bryan | 10/30/08 11:17 AM
Joshua Cyr's Gravatar I think I will do a new roundup of editors. My issue with tinymce in the past was the lack of file/image browsing and uploading. Since we would replace our existing editor in our cms with a new one we can't degrade existing functionality for our users. FCK editor has significant configuration and CSS issues for me (or had last I tested). XStandard sounds great, but requires plugin install on client machines which is a nostarter for a cms like ours.
# Posted By Joshua Cyr | 10/30/08 11:19 AM
Janice's Gravatar Where is ktm directory located?
# Posted By Janice | 10/31/08 11:12 AM
KevinC's Gravatar Thanks soo much for the post. My clients computers stopped working one by one, I was convinced it was another example of stupid end user mistakes. I would NEVER have figured this out.
Thanks again!
-Kevin C.
# Posted By KevinC | 11/18/08 10:16 PM
Brendon's Gravatar You might want to take a look at WYSIHAT. It's a new framework for HTML editors that allows you to design the interface yourself. It does all the hard grunt work. It's only v0.1 at the moment and it's just been started but already it's looking good.
# Posted By Brendon | 11/24/08 7:10 PM
Robert's Gravatar Thank you so much, Joshua.
You have saved my day.

Sincerly Robert
# Posted By Robert | 11/26/08 11:20 AM
Terry's Gravatar THANK YOU SO MUCH!!!
# Posted By Terry | 11/27/08 9:34 AM
Paul's Gravatar Thanks so much! Like KevinC, I thought it was the user mistakes until it started happening to me. Never would have known to look there. And certainly wouldn't have thought it was such a simple fix! Thanks again. You've saved me potentially many hours of phone calls with clients about this.
# Posted By Paul | 12/9/08 3:27 PM
Patrick Antonetty's Gravatar Thank you very much.
# Posted By Patrick Antonetty | 2/9/09 4:06 AM
Dieter's Gravatar Thanks for sharing this - I was pulling my hair at one point - LOL
# Posted By Dieter | 3/3/09 1:57 PM
Oberdan Carlos's Gravatar Thank you for tutorial. I looked across the internet, and only you can help me. Very grateful.

PS. Sorry for my poor english .. rsrs
# Posted By Oberdan Carlos | 5/1/09 12:53 PM
Florin's Gravatar I'm looking for KTML on the web and I can't find any available link... can you share this extension??? Please... from the documentation is the best free html editor arround...
# Posted By Florin | 5/5/09 8:01 AM
Antonio Vivanco's Gravatar Thanks a lot from Mexico. You saved many projects for me.
# Posted By Antonio Vivanco | 5/21/09 10:30 PM
zico's Gravatar Thanks very much this help me to much
# Posted By zico | 6/16/09 5:22 AM
Nora's Gravatar Thanks a lot for sharing this. I was hoping to find a better solution than to just disable the multiple upload, but you are right, this quick and dirty hack at least get's people back on track. I am in the same boat as you ..... I have yet to find a better editor for my cmses even if the code's getting a little old and the promised &quot;it will work on safari on the next update&quot; obviously never materialized due to the buy-out. I just wished I had the time to rewrite the whole thing.
# Posted By Nora | 9/16/09 10:11 PM

NAVIGATION

Home
About Me

RSS


Search

Subscribe

Enter your email address to subscribe to this blog.

Recent Entries

New Blog Design
Pre-Conference Training at cf.Objective()
FireFox 3.6 KTML Editor Fix
I am now a part of the Adobe Community Professionals Group
RIAdventure Was a Blas with photos

Recent Comments

submiting a form inside an iframe from outside the iframe
Peter said: I doubt you’re still having this problem over 2 years later, but if anyone else finds this page on t... [More]

FireFox 3.6 KTML Editor Fix
Dario Vargas said: Gracias por publicar la solución a la compatibilidad del KTML a Firefox 3.6 y la solucion al panel d... [More]

Vista Zip Slow and Broken?
betniurbo said: lzCfXK <a href="http://sapiensyckas.com/&...;, [url=http://zynqf... [More]

FireFox 3.6 KTML Editor Fix
Richard said: These fixes have worked on some issues, but any idea why the paragraph button no longer wants to wor... [More]

FireFox 3.6 KTML Editor Fix
joshua said: if I remember right, just change (this.edit.readyState != "complete") to (1 == 0) It is ... [More]

Calendar

Sun Mon Tue Wed Thu Fri Sat
 123456
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28       

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 (18) [RSS]
RPM (9) [RSS]
Spam (16) [RSS]
Technology (66) [RSS]
Testing (3) [RSS]
TV (15) [RSS]
video (32) [RSS]
Web Dev (217) [RSS]
World of Warcraft (16) [RSS]