[Q] replacing the textarea widget

David Faure faure at kde.org
Fri Sep 3 12:54:59 BST 2004


On Friday 03 September 2004 13:46, Koos Vriezen wrote:
> On Fri, Sep 03, 2004 at 12:59:38PM +0200, Koos Vriezen wrote:
> > On Thu, Sep 02, 2004 at 11:04:17PM +0200, Koos Vriezen wrote:
> > > Btw. anyone looked at wysiwyg editors like FCKeditor. Is this where
> > > caret mode was designed for?
> > 
> > Here is the demo btw. http://www.fckeditor.net/Demo/
> > It makes khtml feel like the pre-CSS days :-(
> > 
> > Anyway, first thing I found looking at the samples that comes with the
> > sources (you must access these by using a web server) is this testcase:
> >  <html><head>
> >  <script>function loaded() {
> >     window.open("http://www.kde.org", "frame1");
> >     }
> >  </script></head>
> >  <frameset rows="100,*" onLoad='loaded()'>
> >         <frame name="frame1" SRC="about:blank">
> >         <frame name="frame2" SRC="about:blank">
> >     </frameset>
> >  </html>
> > IE and Mozilla open kde.org in frame1, but konqueror opens it as a
> > separate window. A quick look shows that there is no code for it in
> > openWindow().
> 
> Attached a fix :-)

Won't work with multiple windows opened etc.

The problem is KonqMainWindow::childView, which uses BrowserHostExtension::findFrameParent()
and ::frames().

So the problem is in KHTMLPart::findFrameParent() or KHTMLPart::frames().

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).




More information about the kfm-devel mailing list