diff options
Diffstat (limited to 'protected/extensions/extckeditor/assets/plugins/smiley')
22 files changed, 7 insertions, 0 deletions
diff --git a/protected/extensions/extckeditor/assets/plugins/smiley/dialogs/smiley.js b/protected/extensions/extckeditor/assets/plugins/smiley/dialogs/smiley.js new file mode 100644 index 0000000..a1a1968 --- /dev/null +++ b/protected/extensions/extckeditor/assets/plugins/smiley/dialogs/smiley.js @@ -0,0 +1,7 @@ +/*
+Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+
+CKEDITOR.dialog.add('smiley',function(a){var b=a.config,c=a.lang.smiley,d=b.smiley_images,e=b.smiley_columns||8,f,g,h=function(o){var p=o.data.getTarget(),q=p.getName();if(q=='a')p=p.getChild(0);else if(q!='img')return;var r=p.getAttribute('cke_src'),s=p.getAttribute('title'),t=a.document.createElement('img',{attributes:{src:r,'data-cke-saved-src':r,title:s,alt:s,width:p.$.width,height:p.$.height}});a.insertElement(t);g.hide();o.data.preventDefault();},i=CKEDITOR.tools.addFunction(function(o,p){o=new CKEDITOR.dom.event(o);p=new CKEDITOR.dom.element(p);var q,r,s=o.getKeystroke(),t=a.lang.dir=='rtl';switch(s){case 38:if(q=p.getParent().getParent().getPrevious()){r=q.getChild([p.getParent().getIndex(),0]);r.focus();}o.preventDefault();break;case 40:if(q=p.getParent().getParent().getNext()){r=q.getChild([p.getParent().getIndex(),0]);if(r)r.focus();}o.preventDefault();break;case 32:h({data:o});o.preventDefault();break;case t?37:39:case 9:if(q=p.getParent().getNext()){r=q.getChild(0);r.focus();o.preventDefault(true);}else if(q=p.getParent().getParent().getNext()){r=q.getChild([0,0]);if(r)r.focus();o.preventDefault(true);}break;case t?39:37:case CKEDITOR.SHIFT+9:if(q=p.getParent().getPrevious()){r=q.getChild(0);r.focus();o.preventDefault(true);}else if(q=p.getParent().getParent().getPrevious()){r=q.getLast().getChild(0);r.focus();o.preventDefault(true);}break;default:return;}}),j=CKEDITOR.tools.getNextId()+'_smiley_emtions_label',k=['<div><span id="'+j+'" class="cke_voice_label">'+c.options+'</span>','<table role="listbox" aria-labelledby="'+j+'" style="width:100%;height:100%" cellspacing="2" cellpadding="2"',CKEDITOR.env.ie&&CKEDITOR.env.quirks?' style="position:absolute;"':'','><tbody>'],l=d.length;for(f=0;f<l;f++){if(f%e===0)k.push('<tr>');var m='cke_smile_label_'+f+'_'+CKEDITOR.tools.getNextNumber();k.push('<td class="cke_dark_background cke_centered" style="vertical-align: middle;"><a href="javascript:void(0)" role="option"',' aria-posinset="'+(f+1)+'"',' aria-setsize="'+l+'"',' aria-labelledby="'+m+'"',' class="cke_smile cke_hand" tabindex="-1" onkeydown="CKEDITOR.tools.callFunction( ',i,', event, this );">','<img class="cke_hand" title="',b.smiley_descriptions[f],'" cke_src="',CKEDITOR.tools.htmlEncode(b.smiley_path+d[f]),'" alt="',b.smiley_descriptions[f],'"',' src="',CKEDITOR.tools.htmlEncode(b.smiley_path+d[f]),'"',CKEDITOR.env.ie?" onload=\"this.setAttribute('width', 2); this.removeAttribute('width');\" ":'','><span id="'+m+'" class="cke_voice_label">'+b.smiley_descriptions[f]+'</span>'+'</a>','</td>');
+if(f%e==e-1)k.push('</tr>');}if(f<e-1){for(;f<e-1;f++)k.push('<td></td>');k.push('</tr>');}k.push('</tbody></table></div>');var n={type:'html',id:'smileySelector',html:k.join(''),onLoad:function(o){g=o.sender;},focus:function(){var o=this;setTimeout(function(){var p=o.getElement().getElementsByTag('a').getItem(0);p.focus();},0);},onClick:h,style:'width: 100%; border-collapse: separate;'};return{title:a.lang.smiley.title,minWidth:270,minHeight:120,contents:[{id:'tab1',label:'',title:'',expand:true,padding:0,elements:[n]}],buttons:[CKEDITOR.dialog.cancelButton]};});
diff --git a/protected/extensions/extckeditor/assets/plugins/smiley/images/angel_smile.gif b/protected/extensions/extckeditor/assets/plugins/smiley/images/angel_smile.gif Binary files differnew file mode 100644 index 0000000..2cf4894 --- /dev/null +++ b/protected/extensions/extckeditor/assets/plugins/smiley/images/angel_smile.gif diff --git a/protected/extensions/extckeditor/assets/plugins/smiley/images/angry_smile.gif b/protected/extensions/extckeditor/assets/plugins/smiley/images/angry_smile.gif Binary files differnew file mode 100644 index 0000000..40b52d3 --- /dev/null +++ b/protected/extensions/extckeditor/assets/plugins/smiley/images/angry_smile.gif diff --git a/protected/extensions/extckeditor/assets/plugins/smiley/images/broken_heart.gif b/protected/extensions/extckeditor/assets/plugins/smiley/images/broken_heart.gif Binary files differnew file mode 100644 index 0000000..b6d0166 --- /dev/null +++ b/protected/extensions/extckeditor/assets/plugins/smiley/images/broken_heart.gif diff --git a/protected/extensions/extckeditor/assets/plugins/smiley/images/confused_smile.gif b/protected/extensions/extckeditor/assets/plugins/smiley/images/confused_smile.gif Binary files differnew file mode 100644 index 0000000..a52db7a --- /dev/null +++ b/protected/extensions/extckeditor/assets/plugins/smiley/images/confused_smile.gif diff --git a/protected/extensions/extckeditor/assets/plugins/smiley/images/cry_smile.gif b/protected/extensions/extckeditor/assets/plugins/smiley/images/cry_smile.gif Binary files differnew file mode 100644 index 0000000..1ef6ba4 --- /dev/null +++ b/protected/extensions/extckeditor/assets/plugins/smiley/images/cry_smile.gif diff --git a/protected/extensions/extckeditor/assets/plugins/smiley/images/devil_smile.gif b/protected/extensions/extckeditor/assets/plugins/smiley/images/devil_smile.gif Binary files differnew file mode 100644 index 0000000..bfb2507 --- /dev/null +++ b/protected/extensions/extckeditor/assets/plugins/smiley/images/devil_smile.gif diff --git a/protected/extensions/extckeditor/assets/plugins/smiley/images/embaressed_smile.gif b/protected/extensions/extckeditor/assets/plugins/smiley/images/embaressed_smile.gif Binary files differnew file mode 100644 index 0000000..d9cedc5 --- /dev/null +++ b/protected/extensions/extckeditor/assets/plugins/smiley/images/embaressed_smile.gif diff --git a/protected/extensions/extckeditor/assets/plugins/smiley/images/envelope.gif b/protected/extensions/extckeditor/assets/plugins/smiley/images/envelope.gif Binary files differnew file mode 100644 index 0000000..94e0b1f --- /dev/null +++ b/protected/extensions/extckeditor/assets/plugins/smiley/images/envelope.gif diff --git a/protected/extensions/extckeditor/assets/plugins/smiley/images/heart.gif b/protected/extensions/extckeditor/assets/plugins/smiley/images/heart.gif Binary files differnew file mode 100644 index 0000000..680ae2f --- /dev/null +++ b/protected/extensions/extckeditor/assets/plugins/smiley/images/heart.gif diff --git a/protected/extensions/extckeditor/assets/plugins/smiley/images/kiss.gif b/protected/extensions/extckeditor/assets/plugins/smiley/images/kiss.gif Binary files differnew file mode 100644 index 0000000..70e5255 --- /dev/null +++ b/protected/extensions/extckeditor/assets/plugins/smiley/images/kiss.gif diff --git a/protected/extensions/extckeditor/assets/plugins/smiley/images/lightbulb.gif b/protected/extensions/extckeditor/assets/plugins/smiley/images/lightbulb.gif Binary files differnew file mode 100644 index 0000000..d44c2ff --- /dev/null +++ b/protected/extensions/extckeditor/assets/plugins/smiley/images/lightbulb.gif diff --git a/protected/extensions/extckeditor/assets/plugins/smiley/images/omg_smile.gif b/protected/extensions/extckeditor/assets/plugins/smiley/images/omg_smile.gif Binary files differnew file mode 100644 index 0000000..ab7ea69 --- /dev/null +++ b/protected/extensions/extckeditor/assets/plugins/smiley/images/omg_smile.gif diff --git a/protected/extensions/extckeditor/assets/plugins/smiley/images/regular_smile.gif b/protected/extensions/extckeditor/assets/plugins/smiley/images/regular_smile.gif Binary files differnew file mode 100644 index 0000000..e5bc34b --- /dev/null +++ b/protected/extensions/extckeditor/assets/plugins/smiley/images/regular_smile.gif diff --git a/protected/extensions/extckeditor/assets/plugins/smiley/images/sad_smile.gif b/protected/extensions/extckeditor/assets/plugins/smiley/images/sad_smile.gif Binary files differnew file mode 100644 index 0000000..ae4cf1e --- /dev/null +++ b/protected/extensions/extckeditor/assets/plugins/smiley/images/sad_smile.gif diff --git a/protected/extensions/extckeditor/assets/plugins/smiley/images/shades_smile.gif b/protected/extensions/extckeditor/assets/plugins/smiley/images/shades_smile.gif Binary files differnew file mode 100644 index 0000000..b454017 --- /dev/null +++ b/protected/extensions/extckeditor/assets/plugins/smiley/images/shades_smile.gif diff --git a/protected/extensions/extckeditor/assets/plugins/smiley/images/teeth_smile.gif b/protected/extensions/extckeditor/assets/plugins/smiley/images/teeth_smile.gif Binary files differnew file mode 100644 index 0000000..7d734d1 --- /dev/null +++ b/protected/extensions/extckeditor/assets/plugins/smiley/images/teeth_smile.gif diff --git a/protected/extensions/extckeditor/assets/plugins/smiley/images/thumbs_down.gif b/protected/extensions/extckeditor/assets/plugins/smiley/images/thumbs_down.gif Binary files differnew file mode 100644 index 0000000..90b9978 --- /dev/null +++ b/protected/extensions/extckeditor/assets/plugins/smiley/images/thumbs_down.gif diff --git a/protected/extensions/extckeditor/assets/plugins/smiley/images/thumbs_up.gif b/protected/extensions/extckeditor/assets/plugins/smiley/images/thumbs_up.gif Binary files differnew file mode 100644 index 0000000..b633284 --- /dev/null +++ b/protected/extensions/extckeditor/assets/plugins/smiley/images/thumbs_up.gif diff --git a/protected/extensions/extckeditor/assets/plugins/smiley/images/tounge_smile.gif b/protected/extensions/extckeditor/assets/plugins/smiley/images/tounge_smile.gif Binary files differnew file mode 100644 index 0000000..b2e657f --- /dev/null +++ b/protected/extensions/extckeditor/assets/plugins/smiley/images/tounge_smile.gif diff --git a/protected/extensions/extckeditor/assets/plugins/smiley/images/whatchutalkingabout_smile.gif b/protected/extensions/extckeditor/assets/plugins/smiley/images/whatchutalkingabout_smile.gif Binary files differnew file mode 100644 index 0000000..7709882 --- /dev/null +++ b/protected/extensions/extckeditor/assets/plugins/smiley/images/whatchutalkingabout_smile.gif diff --git a/protected/extensions/extckeditor/assets/plugins/smiley/images/wink_smile.gif b/protected/extensions/extckeditor/assets/plugins/smiley/images/wink_smile.gif Binary files differnew file mode 100644 index 0000000..b210295 --- /dev/null +++ b/protected/extensions/extckeditor/assets/plugins/smiley/images/wink_smile.gif |
