Re: first commit of midas editor prototype

Paul Everitt <paul-+XpZaIz3/[email protected]> Sun, 9 Mar 2003 21:08:30 +0100
Newsgroups gmane.comp.cms.oscom.twingle.devel
Message-ID <[email protected]>
On dimanche, mars 9, 2003, at 20:01 Europe/Paris, Christian Stocker  
wrote:

> Hi
>
> I just commited the first prototype of the midas editor thingie. It
> doesn' do much right now, but you can now edit the oscom site (not many
> formatting option 'though).

Hey, I got most of it!  (Although I can't edit.  Did you try it on OS  
X?)

> I don't know, if we need the "Source" Tab (another tab...), but if we
> want it, we need a solution to keep the source-data (the html of the
> page in this case) in sync between the 2 tabs. Does anyone know an  
> event
> which gets fired, when I switch between different tabs (the contrary of
> oncommand..., but oncommand could work as well).

onblur/onfocus?  Or, onclick on the tab itself (and not the tabpanel)?

> There are others, not so nice things in the code. The AnonymousNodes
> stuff can get quite nasty and needs some helper functions (it really
> can't get much worse than this:
> document.getAnonymousNodes(this)[0].parentNode.parentNode.parentNode.ge 
> tElementsByAttribute('name','sourceedit')[0]	
> ... )

Indeed that's pretty gruesome.  We can make it easier by having helper  
methods, as you say.  Or, perhaps we should use some  
internal-to-the-widget event model?

--Paul