Opened 9 years ago

Closed 8 years ago

#1219 closed defect (fixed)

Start editor without needing to click into editor

Reported by: guest Owned by: gogo
Priority: normal Milestone: 0.96
Component: Xinha Core Version: trunk
Severity: normal Keywords: initial focus
Cc:

Description

Is ther a way to start the xinha editor with editor being in focus do that you don not need to click into editor to make it available?

Change History (4)

comment:1 Changed 9 years ago by douglas

We've already got this working in production, though I'm not sure if it's in Xinha code, or outside. Assuming this can be done inside of Xinha, it will be part of the code I'll be submitting over the next month or so...

comment:2 Changed 9 years ago by gogo

  • Resolution set to no action needed
  • Status changed from new to closed

From memory, you can use xinha_editors.myEditor.activateEditor() to focus an editor, so just do that somewhere after the editors are generated.

comment:3 Changed 8 years ago by douglas

  • Resolution no action needed deleted
  • Status changed from closed to reopened

After the editors are generated, they use setTimeout to insure proper loading, so there is no safe place in the config to activate. The only way to make this work from the config is to use setTimeout, but this is a hack, so I'm reopening...

comment:4 Changed 8 years ago by douglas

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

r1077 Fixes this by tying autofocus to initframe to make sure everything is properly loaded.

Note: See TracTickets for help on using tickets.