Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2006-04-29 07:12:06

skaven
New member
Registered: 2006-04-29
Posts: 2

Different toolbars/textareas on one page

Hi,

I have 2 textareas with Xinha on one page.
I want them to have different toolbars.
I tried Xinha_editors.textarea1.config.toolbar = [toolbar]; but it doesn't seem to work.
Both textareas have the same toolbar (exept for the plugins that do differ per area).

Anyone have any suggestions / is it even possible at all??

Offline

#2 2006-04-29 22:10:22

gogo
Xinha Leader
From: New Zealand
Registered: 2005-02-11
Posts: 1,015
Website

Re: Different toolbars/textareas on one page

It should work.  But the toolbars are only generated once, so you can't change after the editor has been generated.  Specifically if you are using the standard initilisation code it would go in step 5...

xinha_editors.myTextArea.config.toolbar = [ ["formatblock","fontname","fontsize","bold","italic","underline","strikethrough"] ];

note that xinha_editors is all lower case (you have an upper case X in what you posted).


James Sleeman

Offline

#3 2006-04-30 07:35:12

skaven
New member
Registered: 2006-04-29
Posts: 2

Re: Different toolbars/textareas on one page

It works now. thnx for your post GoGo.

Offline

Board footer

Powered by FluxBB