Ticket #1523 (closed enhancement: invalid)
Dynamically create textarea and then init Xinha to it
|Reported by:||guest||Owned by:||gogo|
Description (last modified by ejucovy) (diff)
Desktop-like apps work with windows that can be created after app has started and that can be closed en opened again on demand. On this kind of windows textareas can be placed that must be transformed in Xinha-editors. That can be done with Xinha.init and/or Xinha.replace, but problems arise with the standard way of setting and reading text from de editor(s). The way described in help/guide with xinha_editors doesn't work . I found out that __xinhas is global object that enumerates (and stores?) editors. Through a loop over this object it is possible to find the editor and set/get text.
It would be a great enhancement when Xinha is adjusted to this new way of developing of internetapps: to remove an editor when the window is closed form __xinhas object, to created or replace an already existing editor when a window is created and easily keeping track of the existing editors in the app.