[quanta-devel] Fwd: [First patch] design mode (was: [Q] replacing the textarea widget)

David Joham djoham at yahoo.com
Mon Sep 13 19:12:30 BST 2004


Hi Nicolas!

You may want to contact Koos. I'm just the messenger here, sadly not doing any coding at the
moment :(


David

--- Nicolas Deschildre <ndeschildre at kdewebdev.org> wrote:

> On Monday 13 September 2004 04:38, David Joham wrote:
> > Hi everyone!
> 
> Hi david!
> 
> >
> > I'm forwarding this from the khtml mailing list since it pertains to Quanta
> > and I thought it might be interesting to the team here....
> >
> >
> >
> > Best regards,
> >
> > David
> >
> > --- Koos Vriezen <koos.vriezen at xs4all.nl> wrote:
> > > Date: Sun, 12 Sep 2004 21:47:14 +0200
> > > From: Koos Vriezen <koos.vriezen at xs4all.nl>
> > > To: kfm-devel at kde.org
> > > Subject: [First patch] design mode (was: [Q] replacing the textarea
> > > widget)
> > >
> > > On Mon, Sep 06, 2004 at 05:32:32PM +0200, Leo Savernik wrote:
> > > > Am Montag, 6. September 2004 16:13 schrieb Koos Vriezen:
> > > > [...]
> > > >
> > > > > Ok, I'll see if I can do something in the meantime. If I come up with
> > > > > a patch we can always see what to do with it (it's not the first time
> > > > > a patch is accepted for a particular branch in mind and replaced
> > > > > later, if ever).
> > > >
> > > > All right, keep me informed.
> > >
> > > There seem to be two ways to do this (as usual, ms and moz way). Looks
> > > to me the moz way (http://www.mozilla.org/editor/midas-spec.html), is
> > > far more simplier than the TextObject MS way. What should we support,
> > > both?
> > > Anyway, I've attached some boilerplate code for the midas way. I've
> > > already hooked in to the keyevent code from the caret and some very
> > > simply editing in HTMLDocumentImpl, just to get something working.
> 
> What are you exactly trying to do?
> Are you trying to support designmode by using the current Caret code?
> 
> > >
> > > Making it work somehow, I've took a look at the quanta KHTMLPart
> > > override, strangely called KafkaWidget,
> 
> That's an old story ;-)
> 
> > > and wondered what would be the 
> > > best approach getting this to work.
> > > I don't think switching transparently to KafkaWidget when entering a
> > > design mode, would be the best thing to do.
> 
> Indeed.
> 
> > > But re-implement/copy code 
> > > from quanta has also its drawbacks, eg it's quite some code (but likely
> > > some shortcuts too, no parallel node tree needed and access to khtml
> > > namespace).
> 
> And the quanta code for edition is not clean at all. It is a succesion of 
> hacks to work first alone, then with Caret version 1, then Caret version 2, 
> and i won't clean the code until the Webcore caret will be merged.
> 
> > >
> > > So what to do? Commit this and work further on it?
> 
> Don't forget that a new implementation of the caret mode is on the way, so it 
> will be useless to reinvent the wheel.
> 
> Nicolas
> 
> > > Or no, entering 
> > > design mode means switching to kafka unter the hood? Or we only want MS
> > > way of doing this? Or..
> > >
> > > Koos
> > >
> 





More information about the kfm-devel mailing list