Opened 14 years ago

Closed 13 years ago

#614 closed defect (wontfix)

Patch to allow setting / getting background color of xinha editor iframe window

Reported by: Wolfgang Owned by: gogo
Priority: normal Milestone:
Component: Xinha Core Version: trunk
Severity: normal Keywords: set get editor background color
Cc:

Description

Goal: Set or Get the backgroundColor of the xinha editor window.
Version of xinhabeing used: Date: 2005-11-07; Rev:421

Patch Step1: Modify existing function in htmlarea.js arround line 1887

in HTMLArea.prototype.initIframe = function()

// Wolfgang: Set backgroundColor from white to transparent
//     + "html, body { border: 0px;  background-color: #ffffff; } \n"
	 + "html, body { border: 0px;  background-color: transparent; } \n"

Patch Step2: add these to functions arround line 2000 in htmarea.js

//Wolfgang: changes to set the editor windows iframe background
HTMLArea.prototype.setBackgroundColor = function(bgcolor) {
	this._iframe.style.backgroundColor = bgcolor;
};

//Wolfgang: get the editors iframe backgroundcolor
HTMLArea.prototype.getBackgroundColor = function() {
	return this._iframe.style.backgroundColor;
};

Change History (1)

comment:1 Changed 13 years ago by gogo

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

Don't think we really need these. If you really want them, they could go into a plugin.

Note: See TracTickets for help on using tickets.