Re: mozilla midas editor ?

Martijn <[email protected]> Tue, 19 Aug 2008 16:16:01 +0200
Newsgroups gmane.comp.mozilla.devel.xml
Message-ID <[email protected]>
Hi Johnnie,

This is probably a topic that is more suitable in

On Tue, Aug 19, 2008 at 9:44 AM, Johnnie <[email protected]> wrote:
> Hello.
>
> I was wondering if there is a way to set the target for the mozilla midas
> actions ?
> When adding 2 editors (with diff names/id's) on the same page the
> midas-toolbar
> only adds stuff (bold,italic,images,a.s.o) to editor #2.
>
> I.e a funtion that focus' on "editor name" and then executes the
> doRichEditCommand('command');
> ed.1;
>    <button
> onClick="doRichEditCommandAndTarget('bold','',editor1">bold</button>
>    <iframe name='editor1' id='editor1'
> src='editor.php?get=someThing'></iframe>
> ed.2;
>    <button
> onClick="doRichEditCommandAndTarget('bold','',editor2">bold</button>
>    <iframe name='editor2' id='editor2'
> src='editor.php?get=someThingElse'></iframe>

You might find this example useful, perhaps:
http://developer.mozilla.org/en/docs/Rich-Text_Editing_in_Mozilla#Example_2
It should help get you started with what you want.

Regards,
Martijn

> Thanks in advance.
> Johnnie
>
> _______________________________________________
> dev-tech-xml mailing list
> [email protected]
> https://lists.mozilla.org/listinfo/dev-tech-xml
>



-- 
Martijn Wargers - Help Mozilla!
http://weblogs.mozillazine.org/qa/
http://wiki.mozilla.org/Mozilla_QA_Community
irc://irc.mozilla.org/qa - /nick mw22