Ticket #1392 (closed defect: fixed)
too much recursion when setting HTML in fullPage mode using onGenerate/onGenerateOnce
| Reported by: | guest | Owned by: | gogo |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.96 |
| Component: | Plugins | Version: | trunk |
| Severity: | normal | Keywords: | |
| Cc: | adam@… |
Description
I'm hooking into the onGenerate event to set the editor content.
I'm trying to set the editors content as soon as it's loaded using:
xinha_config.Events.onGenerateOnce = function () {
xinha_editorseditor?.setEditorContent('content');
return true;
}
it "works" but it freezes the browser and causes this error:
Error: too much recursion Source File: XinhaCore?.js Line: 16
i also tried using onGenerate with the same error.
using FF3
I managed to work-round this issue using setTimeout.
Adam J
Change History
Note: See
TracTickets for help on using
tickets.
