Announcement

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

#1 2008-11-12 03:04:08

skypher
New member
Registered: 2008-11-12
Posts: 2

Local initialization

Hi,

Xinha looks interesting.

What the newbie guide doesn't mention however is non-global init.

To make Xinha work dynamically with independent page components I need to be able specify a target textarea.

Is this possible?

  Thanks,

    Leslie

Offline

#2 2008-11-12 19:35:33

ray
Xinha Administrator
From: Germany
Registered: 2005-03-23
Posts: 521
Website

Re: Local initialization

Sorry, I don't quite understand what you mean. Xinha is always applied to one ore more specific textarea(s) (specified in xinha_editors)

Offline

#3 2008-11-13 02:57:35

skypher
New member
Registered: 2008-11-12
Posts: 2

Re: Local initialization

Right, but the newbie guides does it all in one batch by overriding the init function.

What I need to do is apply Xinha incrementally to textareas, i.e. something like this:

<textarea id="foo"/>
xinha_apply('foo');

...somewhere else on the page and/or in time:

<textarea id="bar"/>
xinha_apply('bar');

Offline

Board footer

Powered by FluxBB