Opened 11 years ago

Closed 11 years ago

#895 closed defect (fixed)

Full Page Mode broken in Simple Example (the one with two editors) in IE7

Reported by: mharrisonline Owned by: gogo
Priority: normal Milestone: Version 1.0
Component: Xinha Core Version: trunk
Severity: major Keywords:
Cc:

Description

In IE7 (it works fine in Firefox) launch the Simple Example, the one with two editors. If you have changed the config in htmlarea.js to fullpage mode, or have made the example use the Full Page plugin, you can't view the HTML. Clicking on the HTML button throws an error, and points to this code as the culprit:

"Side" is null or not an object

HTMLArea.prototype.removePanel = function(panel)
{

this._panels[panel.side].div.removeChild(panel); this is the line pointed to by the debugger

Change History (2)

comment:1 Changed 11 years ago by mharrisonline

  • Priority changed from high to normal
  • Severity changed from critical to major

I just tried loading 10 editors with the full page plugin in the example on this site, and could go to HTML mode with no problem. This must be a problem specific to the way the Simple Example loads the editors.

comment:2 Changed 11 years ago by ray

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

rev [626]
Explanation:
Stylist uses the plugin API function onGenerate() to remove the panel when no styles are loaded. In fullpage mode this function is called repeatedly with each setHTML(), but the panel is not there anymore.

Changed onGenerate() to onGenerateOnce()

Note: See TracTickets for help on using tickets.