Ticket #1392 (closed defect: fixed)

Opened 3 years ago

Last modified 2 years ago

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

Changed 3 years ago by ray

Hi Adam, thanks for your input.

I cannot reproduce this error, could you put up a test case for this?

Changed 3 years ago by guest

Hi Ray,

Test case here: http://lib.shiftcreate.com/dev/ongenerate.php

I just noticed that it's only happening when fullpage is on.

Changed 3 years ago by ray

  • summary changed from too muc recursion using onGenerate onGenerateOnce to too much recursion when setting HTML in fullPage mode using onGenerate/onGenerateOnce

rev [1169] fixes this for onGenerateOnce

Changed 2 years ago by gogo

  • status changed from new to closed
  • resolution set to fixed
  • component changed from Xinha Core to Plugins

Closing fixed then. Seems reasonable.

Note: See TracTickets for help on using tickets.