Found it!

this.area.wrap('div', {'class':'editor-wrapper'}); //<!-- DOESNT WORK
Element.wrap(this.area, 'div', {'class':'editor-wrapper'}); //<!-- FIX

On 16 nov, 20:18, Roland <[EMAIL PROTECTED]> wrote:
> No errors.. my fresh created elements aren't displayed on IE.
>
> On 16 nov, 20:12, Tobie Langel <[EMAIL PROTECTED]> wrote:
>
> > What do you mean by do it wrong ?
>
> > Throws errors ?
>
> > On Nov 16, 8:05 pm, Roland <[EMAIL PROTECTED]> wrote:
>
> > > page updated.. i should have seen that.. but IE still does it wrong.
>
> > > On 16 nov, 19:51, Tobie Langel <[EMAIL PROTECTED]> wrote:
>
> > > > class is a reserved keyword in JavaScript. You must either use
> > > > className or escape it.
>
> > > > try either of the following:
>
> > > > this.area.setValue(this.options.value).wrap('div', {'class':'editor-
> > > > wrapper'}).insert({
> > > >     top:   new Element('div', {'class':'editor-buttons'}).update('top-
> > > > bar'),
> > > >     bottom:new Element('div', {'class':'editor-
> > > > smiles'}).update('bottom-bar')
>
> > > > });
>
> > > > this.area.setValue(this.options.value).wrap('div', {className:'editor-
> > > > wrapper'}).insert({
> > > >     top:   new Element('div', {className:'editor-
> > > > buttons'}).update('top-bar'),
> > > >     bottom:new Element('div', {className:'editor-
> > > > smiles'}).update('bottom-bar')
>
> > > > });
>
> > > > Regards,
>
> > > > Tobie
>
> > > > On Nov 16, 7:42 pm, Roland <[EMAIL PROTECTED]> wrote:
>
> > > > >http://dev.rubyonrails.org/ticket/10189
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to