Opened 13 years ago

Closed 13 years ago

Last modified 12 years ago

#1105 closed enhancement (fixed)

Convert all textareas in a document

Reported by: ray Owned by: gogo
Priority: normal Milestone:
Component: Xinha Core Version:
Severity: normal Keywords:


There are setups where a user simply wants to have all textareas in one page be Xinha-ized. At the moment we have the HTMLArea-legacy-function Xinha.replaceAll(), but I don't favour this, because it does not fit well in the NewbieGuide? loading scheme.

Everyone who knows the least bit of JS would assume that they can simply assign document.getElementsByTagName('textarea') to xinha_editors, but that just doesn't work with the current codebase.

Change History (2)

comment:1 Changed 13 years ago by ray

  • Resolution set to fixed
  • Status changed from new to closed

rev [921]: patched Xinha.makeEditors to make it possible to pass a reference instead of an id, for example from document.getElementsByTagName('textarea')

comment:2 Changed 12 years ago by ray

To clarify how this is related to the title of this ticket: You can fill xinha_editors with the result of document.getElementsByTagName('textarea') to have all textareas converted

xinha_editors = xinha_editors ? xinha_editors : document.getElementsByTagName('textarea');
Note: See TracTickets for help on using tickets.