Summary: | run fckeditor with khtml | ||
---|---|---|---|
Product: | [Applications] konqueror | Reporter: | CS <cedric> |
Component: | khtml ecma | Assignee: | Konqueror Developers <konq-bugs> |
Status: | RESOLVED UNMAINTAINED | ||
Severity: | normal | CC: | finex, hwouters, kdestuff, mail, mario_vazq, sebastian_ml |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Mandrake RPMs | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
CS
2004-12-28 14:07:07 UTC
To be more precise : it seems that the rich text editing component is not implemented in KHTML, while it exists in Gecko, IE and Opera. That component is really useful on webmails for instance. Just see the result in Mozilla or Opera. *** Bug 107564 has been marked as a duplicate of this bug. *** To be even more precise: it seems to be an JS-related error, either in the script or in the JS-implementation Konqueror uses. The error message is as follows: Error: http://www.fckeditor.net/fckeditor/editor/js/fck_startup.js: TypeError - Value undefined (result of expression window.attachEvent) is not an object. Cannot be called. Unfortunately, I'm not the JS-guru to judge which of the two alternatives mentioned applies :( To be even more precise: it seems to be an JS-related error, either in the script or in the JS-implementation Konqueror uses. The error message is as follows: Error: http://www.fckeditor.net/fckeditor/editor/js/fck_startup.js: TypeError - Value undefined (result of expression window.attachEvent) is not an object. Cannot be called. Unfortunately, I'm not the JS-guru to judge which of the two alternatives mentioned applies :( IIRC, attachEvent is IE proprietary junk Any documentation of attachEvent? Is it supported on other browsers that IE? I found this sample on the web at http://www.javascriptkit.com/javatutors/ns6update.shtml ----- Last but no least, whenever possible, you should bind event handlers to the document by doing so inside your script and using the DOM. For example, instead of: <body onload="dothis()"> you should instead do this: <script type="text/javascript"> if (window.addEventListener) //DOM method for binding an event window.addEventListener("load", dothis, false) else if (window.attachEvent) //IE exclusive method for binding an event window.attachEvent("onload", dothis) else if (document.getElementById) //support older modern browsers window.onload=dothis </script> ---- We could either contact the fckeditor author to check the code, or in someway implement the IE window.attachEvent with a redirection to the DOM window.addEventListener call. Dunno the method used by Firefox, in fact, the control is displayed. More info about the call here http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/attachevent.asp Also after dealing with attachEvent, should also take a look to its brother detachEvent which probably is used too. http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/detachevent.asp There is a patch for Webkit : http://bugzilla.opendarwin.org/show_bug.cgi?id=4403 I've just tried FckEditor on my personal MoinMoin Wiki and it is very nice and something that we should support for Konqueror. *** Bug 136290 has been marked as a duplicate of this bug. *** Please, vote for bug #48302 :-) *** This bug has been marked as a duplicate of 48302 *** Please don't dupe it --- it needs debugging separate from designMode/contentEditable proper. Still an issue with KDE4.6.5 Dear user, KHTML (and KJS) was a long time more or less unmaintained and got removed in KF6. Please migrate to use a QWebEngine based HTML component. We will do no further fixes or improvements to the KF5 branches of these components beside important security fixes. For security issues, please see: https://kde.org/info/security/ Sorry that we did not fix this issue during the life-time of KHTML. Greetings Christoph Cullmann |