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
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