mozilla midas editor ?

View: New views
2 Messages — Rating Filter:   Alert me  

mozilla midas editor ?

by Johnnie-20 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

_______________________________________________
dev-tech-xml mailing list
dev-tech-xml@...
https://lists.mozilla.org/listinfo/dev-tech-xml

Re: mozilla midas editor ?

by Martijn-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Johnnie,

This is probably a topic that is more suitable in

On Tue, Aug 19, 2008 at 9:44 AM, Johnnie <johnnie.johansen@...> 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
> dev-tech-xml@...
> 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
_______________________________________________
dev-tech-xml mailing list
dev-tech-xml@...
https://lists.mozilla.org/listinfo/dev-tech-xml