Bug #18539 ยป rtehtmlarea_bugfix_7990.patch
typo3/sysext/rtehtmlarea/htmlarea/plugins/TYPO3Color/typo3color.js (working copy) | ||
---|---|---|
/***************************************************************
|
||
* Copyright notice
|
||
*
|
||
* (c) 2004-2008 Stanislas Rolland <stanislas.rolland(arobas)fructifor.ca>
|
||
* (c) 2004-2008 Stanislas Rolland <typo3(arobas)sjbr.ca>
|
||
* All rights reserved
|
||
*
|
||
* This script is part of the TYPO3 project. The TYPO3 project is
|
||
... | ... | |
* Registering plugin "About" information
|
||
*/
|
||
var pluginInformation = {
|
||
version : "2.0",
|
||
version : "2.1",
|
||
developer : "Stanislas Rolland",
|
||
developerUrl : "http://www.fructifor.ca/",
|
||
developerUrl : "http://www.sjbr.ca/",
|
||
copyrightOwner : "Stanislas Rolland",
|
||
sponsor : "Fructifor Inc.",
|
||
sponsorUrl : "http://www.fructifor.ca/",
|
||
sponsor : "Stanislas Rolland",
|
||
sponsorUrl : "http://www.sjbr.ca/",
|
||
license : "GPL"
|
||
};
|
||
this.registerPluginInformation(pluginInformation);
|
||
... | ... | |
|
||
dialogSelectColor : function (buttonId, element, field, dialogOpener) {
|
||
var dimensions = {
|
||
width : 480,
|
||
width : 490,
|
||
height : 245
|
||
};
|
||
var arguments = {
|
||
... | ... | |
case "HiliteColor" :
|
||
var selectColorWithButtonInitFunctRef = this.makeFunctionReference("selectColorWithButtonInit");
|
||
arguments.initialize = selectColorWithButtonInitFunctRef;
|
||
this.dialog = this.openDialog(buttonId, "", "setColor", arguments, dimensions);
|
||
this.dialog = this.openDialog(buttonId, "", "setColor", arguments, dimensions, "yes");
|
||
break;
|
||
case "color" :
|
||
var selectColorCodeInitFunctRef = this.makeFunctionReference("selectColorCodeInit");
|
||
arguments.initialize = selectColorCodeInitFunctRef;
|
||
this.dialog = this.openDialog(buttonId, "", "setColor", arguments, dimensions, null, dialogOpener);
|
||
this.dialog = this.openDialog(buttonId, "", "setColor", arguments, dimensions, "yes", dialogOpener);
|
||
break;
|
||
case "tag" :
|
||
var selectColorCodeInitFunctRef = this.makeFunctionReference("selectColorCodeInit");
|
||
arguments.initialize = selectColorCodeInitFunctRef;
|
||
arguments.title = "color_title";
|
||
this.dialog = this.openDialog(buttonId, "", "setColorInTag", arguments, dimensions, null, dialogOpener);
|
||
this.dialog = this.openDialog(buttonId, "", "setColorInTag", arguments, dimensions, "yes", dialogOpener);
|
||
}
|
||
},
|
||
|