Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

mozilla midas editor ?

2 views
Skip to first unread message

Johnnie

unread,
Aug 19, 2008, 3:44:29 AM8/19/08
to
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>


Thanks in advance.
Johnnie

Martijn

unread,
Aug 19, 2008, 10:16:01 AM8/19/08
to Johnnie, dev-te...@lists.mozilla.org
Hi Johnnie,

This is probably a topic that is more suitable in

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
> dev-te...@lists.mozilla.org
> 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

0 new messages