/dev/qulogic/ckeditor: bf4e51c01558: Split skin's skin.js into a...

Elliott Sales de Andrade qulogic at pidgin.im
Fri Aug 9 03:13:29 EDT 2013


Changeset: bf4e51c015586110bfd6f9ad569ee6d53cf159e3
Author:	 Elliott Sales de Andrade <qulogic at pidgin.im>
Date:	 2013-08-06 17:42 -0400
Branch:	 default
URL: https://hg.pidgin.im/dev/qulogic/ckeditor/rev/bf4e51c01558

Description:

Split skin's skin.js into a separate file.

diffstat:

 pidgin/ckeditor/Makefile.am          |   1 +
 pidgin/ckeditor/ckeditor.js          |  11 +----------
 pidgin/ckeditor/skins/pidgin/skin.js |  10 ++++++++++
 3 files changed, 12 insertions(+), 10 deletions(-)

diffs (47 lines):

diff --git a/pidgin/ckeditor/Makefile.am b/pidgin/ckeditor/Makefile.am
--- a/pidgin/ckeditor/Makefile.am
+++ b/pidgin/ckeditor/Makefile.am
@@ -19,6 +19,7 @@ nobase_ckeditor_DATA +=3D \
 	skins/pidgin/editor.css \
 	skins/pidgin/icons_hidpi.png \
 	skins/pidgin/icons.png \
+	skins/pidgin/skin.js \
 	skins/pidgin/images/arrow.png \
 	skins/pidgin/images/close.png \
 	skins/pidgin/images/lock-open.png \
diff --git a/pidgin/ckeditor/ckeditor.js b/pidgin/ckeditor/ckeditor.js
--- a/pidgin/ckeditor/ckeditor.js
+++ b/pidgin/ckeditor/ckeditor.js
@@ -412,16 +412,7 @@ a[h].$.styleSheet.cssText=3Da[h].$.styleSh
 a.toLowerCase();b&&(f=3Dthis.icons[a+"-rtl"]);f||(f=3Dthis.icons[a])}a=3Dc=
||f&&f.path||"";d=3Dd||f&&f.offset;e=3De||f&&f.bgsize||"16px";return a&&"ba=
ckground-image:url("+CKEDITOR.getUrl(a)+");background-position:0 "+d+"px;ba=
ckground-size:"+e+";"}};CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{ge=
tUiColor:function(){return this.uiColor},setUiColor:function(a){var b=3De(C=
KEDITOR.document);return(this.setUiColor=3Dfunction(a){var c=3DCKEDITOR.ski=
n.chameleon,e=3D[[i,a]];this.uiColor=3Da;d([b],c(this,"editor"),e);d(j,c(th=
is,
 "panel"),e)}).call(this,a)}});var f=3D"cke_ui_color",j=3D[],i=3D/\$color/g=
;CKEDITOR.on("instanceLoaded",function(a){if(!CKEDITOR.env.ie||!CKEDITOR.en=
v.quirks){var b=3Da.editor,a=3Dfunction(a){a=3D(a.data[0]||a.data).element.=
getElementsByTag("iframe").getItem(0).getFrameDocument();if(!a.getById("cke=
_ui_color")){a=3De(a);j.push(a);var c=3Db.getUiColor();c&&d([a],CKEDITOR.sk=
in.chameleon(b,"panel"),[[i,c]])}};b.on("panelShow",a);b.on("menuShow",a);b=
.config.uiColor&&b.setUiColor(b.config.uiColor)}})})();
 (function(){if(CKEDITOR.env.webkit)CKEDITOR.env.hc=3Dfalse;else{var b=3DCK=
EDITOR.dom.element.createFromHtml('<div style=3D"width:0px;height:0px;posit=
ion:absolute;left:-10000px;border: 1px solid;border-color: red blue;"></div=
>',CKEDITOR.document);b.appendTo(CKEDITOR.document.getHead());try{CKEDITOR.=
env.hc=3Db.getComputedStyle("border-top-color")=3D=3Db.getComputedStyle("bo=
rder-right-color")}catch(c){CKEDITOR.env.hc=3Dfalse}b.remove()}if(CKEDITOR.=
env.hc)CKEDITOR.env.cssClass=3DCKEDITOR.env.cssClass+" cke_hc";CKEDITOR.doc=
ument.appendStyleText(".cke{visibility:hidden;}");
-CKEDITOR.status=3D"loaded";CKEDITOR.fireOnce("loaded");if(b=3DCKEDITOR._.p=
ending){delete CKEDITOR._.pending;for(var a=3D0;a<b.length;a++){CKEDITOR.ed=
itor.prototype.constructor.apply(b[a][0],b[a][1]);CKEDITOR.add(b[a][0])}}})=
();/*
- Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserve=
d.
- For licensing, see LICENSE.md or http://ckeditor.com/license
-*/
-CKEDITOR.skin.name=3D"pidgin";
-CKEDITOR.skin.chameleon=3Dfunction(){var b=3Dfunction(){return function(b,=
e){for(var a=3Db.match(/[^#]./g),c=3D0;3>c;c++){var f=3Da,h=3Dc,d;d=3Dparse=
Int(a[c],16);d=3D("0"+(0>e?0|d*(1+e):0|d+(255-d)*e).toString(16)).slice(-2)=
;f[h]=3Dd}return"#"+a.join("")}}(),c=3Dfunction(){var b=3Dnew CKEDITOR.temp=
late("background:#{to};background-image:-webkit-gradient(linear,lefttop,lef=
tbottom,from({from}),to({to}));background-image:-moz-linear-gradient(top,{f=
rom},{to});background-image:-webkit-linear-gradient(top,{from},{to});backgr=
ound-image:-o-linear-gradient(top,{from},{to});background-image:-ms-linear-=
gradient(top,{from},{to});background-image:linear-gradient(top,{from},{to})=
;filter:progid:DXImageTransform.Microsoft.gradient(gradientType=3D0,startCo=
lorstr=3D'{from}',endColorstr=3D'{to}');");return function(c,
-a){return b.output({from:c,to:a})}}(),f=3D{editor:new CKEDITOR.template("{=
id}.cke_chrome [border-color:{defaultBorder};] {id} .cke_top [ {defaultGrad=
ient}border-bottom-color:{defaultBorder};] {id} .cke_bottom [{defaultGradie=
nt}border-top-color:{defaultBorder};] {id} .cke_resizer [border-right-color=
:{ckeResizer}] {id} .cke_dialog_title [{defaultGradient}border-bottom-color=
:{defaultBorder};] {id} .cke_dialog_footer [{defaultGradient}outline-color:=
{defaultBorder};border-top-color:{defaultBorder};] {id} .cke_dialog_tab [{l=
ightGradient}border-color:{defaultBorder};] {id} .cke_dialog_tab:hover [{me=
diumGradient}] {id} .cke_dialog_contents [border-top-color:{defaultBorder};=
] {id} .cke_dialog_tab_selected, {id} .cke_dialog_tab_selected:hover [backg=
round:{dialogTabSelected};border-bottom-color:{dialogTabSelectedBorder};] {=
id} .cke_dialog_body [background:{dialogBody};border-color:{defaultBorder};=
] {id} .cke_toolgroup [{lightGradient}border-color:{defaultBorder};] {id} a=
.cke_button_off:hover, {id} a.cke_button_off:focus, {id} a.cke_button_off:a=
ctive [{mediumGradient}] {id} .cke_button_on [{ckeButtonOn}] {id} .cke_tool=
bar_separator [background-color: {ckeToolbarSeparator};] {id} .cke_combo_bu=
tton [border-color:{defaultBorder};{lightGradient}] {id} a.cke_combo_button=
:hover, {id} a.cke_combo_button:focus, {id} .cke_combo_on a.cke_combo_butto=
n [border-color:{defaultBorder};{mediumGradient}] {id} .cke_path_item [colo=
r:{elementsPathColor};] {id} a.cke_path_item:hover, {id} a.cke_path_item:fo=
cus, {id} a.cke_path_item:active [background-color:{elementsPathBg};] {id}.=
cke_panel [border-color:{defaultBorder};] "),
-panel:new CKEDITOR.template(".cke_panel_grouptitle [{lightGradient}border-=
color:{defaultBorder};] .cke_menubutton_icon [background-color:{menubuttonI=
con};] .cke_menubutton:hover .cke_menubutton_icon, .cke_menubutton:focus .c=
ke_menubutton_icon, .cke_menubutton:active .cke_menubutton_icon [background=
-color:{menubuttonIconHover};] .cke_menuseparator [background-color:{menubu=
ttonIcon};] a:hover.cke_colorbox, a:focus.cke_colorbox, a:active.cke_colorb=
ox [border-color:{defaultBorder};] a:hover.cke_colorauto, a:hover.cke_color=
more, a:focus.cke_colorauto, a:focus.cke_colormore, a:active.cke_colorauto,=
 a:active.cke_colormore [background-color:{ckeColorauto};border-color:{defa=
ultBorder};] ")};
-return function(g,e){var a=3Dg.uiColor,a=3D{id:"."+g.id,defaultBorder:b(a,=
-0.1),defaultGradient:c(b(a,0.9),a),lightGradient:c(b(a,1),b(a,0.7)),medium=
Gradient:c(b(a,0.8),b(a,0.5)),ckeButtonOn:c(b(a,0.6),b(a,0.7)),ckeResizer:b=
(a,-0.4),ckeToolbarSeparator:b(a,0.5),ckeColorauto:b(a,0.8),dialogBody:b(a,=
0.7),dialogTabSelected:c("#FFFFFF","#FFFFFF"),dialogTabSelectedBorder:"#FFF=
",elementsPathColor:b(a,-0.6),elementsPathBg:a,menubuttonIcon:b(a,0.5),menu=
buttonIconHover:b(a,0.3)};return f[e].output(a).replace(/\[/g,
-"{").replace(/\]/g,"}")}}();CKEDITOR.plugins.add("basicstyles",{init:funct=
ion(c){var e=3D0,d=3Dfunction(g,d,b,a){if(a){var a=3Dnew CKEDITOR.style(a),=
f=3Dh[b];f.unshift(a);c.attachStyleStateChange(a,function(a){!c.readOnly&&c=
.getCommand(b).setState(a)});c.addCommand(b,new CKEDITOR.styleCommand(a,{co=
ntentForms:f}));c.ui.addButton&&c.ui.addButton(g,{label:d,command:b,toolbar=
:"basicstyles,"+(e+=3D10)})}},h=3D{bold:["strong","b",["span",function(a){a=
=3Da.styles["font-weight"];return"bold"=3D=3Da||700<=3D+a}]],italic:["em","=
i",["span",function(a){return"italic"=3D=3D
+CKEDITOR.status=3D"loaded";CKEDITOR.fireOnce("loaded");if(b=3DCKEDITOR._.p=
ending){delete CKEDITOR._.pending;for(var a=3D0;a<b.length;a++){CKEDITOR.ed=
itor.prototype.constructor.apply(b[a][0],b[a][1]);CKEDITOR.add(b[a][0])}}})=
();CKEDITOR.plugins.add("basicstyles",{init:function(c){var e=3D0,d=3Dfunct=
ion(g,d,b,a){if(a){var a=3Dnew CKEDITOR.style(a),f=3Dh[b];f.unshift(a);c.at=
tachStyleStateChange(a,function(a){!c.readOnly&&c.getCommand(b).setState(a)=
});c.addCommand(b,new CKEDITOR.styleCommand(a,{contentForms:f}));c.ui.addBu=
tton&&c.ui.addButton(g,{label:d,command:b,toolbar:"basicstyles,"+(e+=3D10)}=
)}},h=3D{bold:["strong","b",["span",function(a){a=3Da.styles["font-weight"]=
;return"bold"=3D=3Da||700<=3D+a}]],italic:["em","i",["span",function(a){ret=
urn"italic"=3D=3D
 a.styles["font-style"]}]],underline:["u",["span",function(a){return"underl=
ine"=3D=3Da.styles["text-decoration"]}]],strike:["s","strike",["span",funct=
ion(a){return"line-through"=3D=3Da.styles["text-decoration"]}]],subscript:[=
"sub"],superscript:["sup"]},b=3Dc.config,a=3Dc.lang.basicstyles;d("Bold",a.=
bold,"bold",b.coreStyles_bold);d("Italic",a.italic,"italic",b.coreStyles_it=
alic);d("Underline",a.underline,"underline",b.coreStyles_underline);d("Stri=
ke",a.strike,"strike",b.coreStyles_strike);d("Subscript",a.subscript,
 "subscript",b.coreStyles_subscript);d("Superscript",a.superscript,"supersc=
ript",b.coreStyles_superscript);c.setKeystroke([[CKEDITOR.CTRL+66,"bold"],[=
CKEDITOR.CTRL+73,"italic"],[CKEDITOR.CTRL+85,"underline"]])}});CKEDITOR.con=
fig.coreStyles_bold=3D{element:"strong",overrides:"b"};CKEDITOR.config.core=
Styles_italic=3D{element:"em",overrides:"i"};CKEDITOR.config.coreStyles_und=
erline=3D{element:"u"};CKEDITOR.config.coreStyles_strike=3D{element:"s",ove=
rrides:"strike"};CKEDITOR.config.coreStyles_subscript=3D{element:"sub"};
 CKEDITOR.config.coreStyles_superscript=3D{element:"sup"};CKEDITOR.plugins.=
add("dialogui",{onLoad:function(){var i=3Dfunction(b){this._||(this._=3D{})=
;this._["default"]=3Dthis._.initValue=3Db["default"]||"";this._.required=3D=
b.required||!1;for(var a=3D[this._],d=3D1;d<arguments.length;d++)a.push(arg=
uments[d]);a.push(!0);CKEDITOR.tools.extend.apply(CKEDITOR.tools,a);return =
this._},r=3D{build:function(b,a,d){return new CKEDITOR.ui.dialog.textInput(=
b,a,d)}},l=3D{build:function(b,a,d){return new CKEDITOR.ui.dialog[a.type](b=
,a,d)}},n=3D{isChanged:function(){return this.getValue()!=3D
diff --git a/pidgin/ckeditor/skins/pidgin/skin.js b/pidgin/ckeditor/skins/p=
idgin/skin.js
new file mode 100644
--- /dev/null
+++ b/pidgin/ckeditor/skins/pidgin/skin.js
@@ -0,0 +1,10 @@
+=EF=BB=BF/*
+ Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserve=
d.
+ For licensing, see LICENSE.md or http://ckeditor.com/license
+*/
+CKEDITOR.skin.name=3D"pidgin";
+CKEDITOR.skin.chameleon=3Dfunction(){var b=3Dfunction(){return function(b,=
e){for(var a=3Db.match(/[^#]./g),c=3D0;3>c;c++){var f=3Da,h=3Dc,d;d=3Dparse=
Int(a[c],16);d=3D("0"+(0>e?0|d*(1+e):0|d+(255-d)*e).toString(16)).slice(-2)=
;f[h]=3Dd}return"#"+a.join("")}}(),c=3Dfunction(){var b=3Dnew CKEDITOR.temp=
late("background:#{to};background-image:-webkit-gradient(linear,lefttop,lef=
tbottom,from({from}),to({to}));background-image:-moz-linear-gradient(top,{f=
rom},{to});background-image:-webkit-linear-gradient(top,{from},{to});backgr=
ound-image:-o-linear-gradient(top,{from},{to});background-image:-ms-linear-=
gradient(top,{from},{to});background-image:linear-gradient(top,{from},{to})=
;filter:progid:DXImageTransform.Microsoft.gradient(gradientType=3D0,startCo=
lorstr=3D'{from}',endColorstr=3D'{to}');");return function(c,
+a){return b.output({from:c,to:a})}}(),f=3D{editor:new CKEDITOR.template("{=
id}.cke_chrome [border-color:{defaultBorder};] {id} .cke_top [ {defaultGrad=
ient}border-bottom-color:{defaultBorder};] {id} .cke_bottom [{defaultGradie=
nt}border-top-color:{defaultBorder};] {id} .cke_resizer [border-right-color=
:{ckeResizer}] {id} .cke_dialog_title [{defaultGradient}border-bottom-color=
:{defaultBorder};] {id} .cke_dialog_footer [{defaultGradient}outline-color:=
{defaultBorder};border-top-color:{defaultBorder};] {id} .cke_dialog_tab [{l=
ightGradient}border-color:{defaultBorder};] {id} .cke_dialog_tab:hover [{me=
diumGradient}] {id} .cke_dialog_contents [border-top-color:{defaultBorder};=
] {id} .cke_dialog_tab_selected, {id} .cke_dialog_tab_selected:hover [backg=
round:{dialogTabSelected};border-bottom-color:{dialogTabSelectedBorder};] {=
id} .cke_dialog_body [background:{dialogBody};border-color:{defaultBorder};=
] {id} .cke_toolgroup [{lightGradient}border-color:{defaultBorder};] {id} a=
.cke_button_off:hover, {id} a.cke_button_off:focus, {id} a.cke_button_off:a=
ctive [{mediumGradient}] {id} .cke_button_on [{ckeButtonOn}] {id} .cke_tool=
bar_separator [background-color: {ckeToolbarSeparator};] {id} .cke_combo_bu=
tton [border-color:{defaultBorder};{lightGradient}] {id} a.cke_combo_button=
:hover, {id} a.cke_combo_button:focus, {id} .cke_combo_on a.cke_combo_butto=
n [border-color:{defaultBorder};{mediumGradient}] {id} .cke_path_item [colo=
r:{elementsPathColor};] {id} a.cke_path_item:hover, {id} a.cke_path_item:fo=
cus, {id} a.cke_path_item:active [background-color:{elementsPathBg};] {id}.=
cke_panel [border-color:{defaultBorder};] "),
+panel:new CKEDITOR.template(".cke_panel_grouptitle [{lightGradient}border-=
color:{defaultBorder};] .cke_menubutton_icon [background-color:{menubuttonI=
con};] .cke_menubutton:hover .cke_menubutton_icon, .cke_menubutton:focus .c=
ke_menubutton_icon, .cke_menubutton:active .cke_menubutton_icon [background=
-color:{menubuttonIconHover};] .cke_menuseparator [background-color:{menubu=
ttonIcon};] a:hover.cke_colorbox, a:focus.cke_colorbox, a:active.cke_colorb=
ox [border-color:{defaultBorder};] a:hover.cke_colorauto, a:hover.cke_color=
more, a:focus.cke_colorauto, a:focus.cke_colormore, a:active.cke_colorauto,=
 a:active.cke_colormore [background-color:{ckeColorauto};border-color:{defa=
ultBorder};] ")};
+return function(g,e){var a=3Dg.uiColor,a=3D{id:"."+g.id,defaultBorder:b(a,=
-0.1),defaultGradient:c(b(a,0.9),a),lightGradient:c(b(a,1),b(a,0.7)),medium=
Gradient:c(b(a,0.8),b(a,0.5)),ckeButtonOn:c(b(a,0.6),b(a,0.7)),ckeResizer:b=
(a,-0.4),ckeToolbarSeparator:b(a,0.5),ckeColorauto:b(a,0.8),dialogBody:b(a,=
0.7),dialogTabSelected:c("#FFFFFF","#FFFFFF"),dialogTabSelectedBorder:"#FFF=
",elementsPathColor:b(a,-0.6),elementsPathBg:a,menubuttonIcon:b(a,0.5),menu=
buttonIconHover:b(a,0.3)};return f[e].output(a).replace(/\[/g,
+"{").replace(/\]/g,"}")}}();



More information about the Commits mailing list