mozilla midas editor ?
"Johnnie" <[email protected]> Tue, 19 Aug 2008 09:44:29 +0200
| Newsgroups | gmane.comp.mozilla.devel.xml |
|---|---|
| Message-ID | <[email protected]> |
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