Announcement

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

#1 2005-12-22 07:13:05

PeterM
New member
Registered: 2005-12-22
Posts: 3

Insert text into the editor

Hi,

I have a combobox with some specialvariables ([site_name], [username], [date] etc...).

Underneath that combobox is my textarea which is Xinha-enabled.

I want to add the combobox.value to the textarea.

Things I tried:
1) I used to add the combox.value to the textarea.value, but that isn't possible anymore.
2) xinha_editors['public_welcome'].insertHTML(combobox.value)
3) I already tried to create a custom plugin which works great, but I need different "specialvariables" for each editor. [username] shouldn't be available in e.g. a public welcome message.

How should I do this ?

PeterM

Offline

#2 2005-12-23 04:57:45

PeterM
New member
Registered: 2005-12-22
Posts: 3

Re: Insert text into the editor

Anyone?

Offline

#3 2005-12-26 00:12:00

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

Re: Insert text into the editor

Modify your plugin to accept the available variables in the configuration of the editor.


James Sleeman

Offline

#4 2005-12-26 04:40:40

PeterM
New member
Registered: 2005-12-22
Posts: 3

Re: Insert text into the editor

Yes I currently did it by adding

var _extravar = "?"

just underneath my _xinha_lang in my welcome.html.

Thanks for replying though.

PeterM

Offline

Board footer

Powered by FluxBB