Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2005-06-14 10:46:30

blainegarrett
New member
Registered: 2005-04-12
Posts: 2

Where next? One toolbar/multiple editors

Hi,

Sorry. I have been a lot more quiet than I have hoped.

Way back at the start of the xinha fork, I posted a few tickets that would more easily allow xinha to be used as part of an inline webpage editor. One of the main problems was having multiple editors (for each content area) each with their own toolbars. This just made things cluttered and ugly.

Trouble ticket here : http://xinha.python-hosting.com/ticket/14

In the mean time I have been using the context menu, but that has some issues with scrolling, etc.


ANYWAY.

Last night I downloaded the nightly build and hacked away.
It was not overly hard to get this working given Xinha's new HTMLArea._currentlyActiveEditor variable.

I was able to override a few prototypes and get a remote toolbar that was able to operate in the the currentlyActiveEditor.

The only prototype that was overly unreasonable to override was // separate from previous createToolBar to allow dynamic change of toolbar
HTMLArea.prototype._createToolbar1 = function (editor, toolbar, tb_objects);

Note it takes in the editor... The only real hang up in this block is when the click event is added. The event is added to the button such that it seems to always use the editor that was passed in. However, if it used the _currentlyActiveEditor, then everything would be dandy.

So, I am not sure where to continue with this. I am a CVS dork, not SVN. And I am pretty busy and it might take me a while to get used to things. Lame excuse... i know.

Perhaps someone would be willing to IM me or something and I can show them my changes so they can be added to the trunk?


aim and y! : zombiediv
msn: garmark3@hotmail.com
icq : 2976110

I'll try to post a link to the examples in a bit when i get things cleaned up.

Offline

Board footer

Powered by FluxBB