google-code-export / lwrte

Automatically exported from code.google.com/p/lwrte
1 stars 0 forks source link

Feature Request : One toolbar for several iframe ? #68

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi !

First of all, thank you for this amazing RTE !

I wanted for some reason to have several iframes that can be edited with your 
RTE, but only one toolbar outside of the iframes that can affect every iframes.

I tried by myself... but I'm not so good in javascript so I didn't understood 
all very well...

First of all, i tried to create only one toolbar when I initialize the RTE, but 
that don't seem to work very well. If I create one toolbar with the 
create_toolbar function that's not called when I initialize the RTE but before 
or after, when I click on the buttons, that won't affect the iframe's text, 
apparently, the command don't know in which iframe he has to put the 
execCommand.

And when I create one toolbar when the RTE is initialized, the toolbar work for 
the first iframe, but not for the others.

So I can create one toolbar for each iframe and show only the toolbar of the 
focused iframe, but that's not really good.. ^^

Thanks.

Original issue reported on code.google.com by max.ler...@ymail.com on 22 Mar 2011 at 3:12