From 4bd080d5604dd3d2f4b172f061903f50df295234 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Beno=C3=AEt=20Pin?= Date: Thu, 18 Aug 2011 11:57:55 +0200 Subject: [PATCH] =?utf8?q?Ajout=20du=20bouton=20=C2=AB=C2=A0Plinn=20Image?= =?utf8?q?=C2=A0=C2=BB=20avec=20toute=20la=20glue=20qui=20va=20bien.=20Pou?= =?utf8?q?r=20l'instant,=20le=20bouton=20de=20=C2=AB=C2=A0Plinn=20Image?= =?utf8?q?=C2=A0=C2=BB=20coexiste=20avec=20le=20bouton=20=C2=AB=C2=A0Image?= =?utf8?q?=C2=A0=C2=BB=20de=20ckeditor.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- skins/ckeditor/config.js | 2 +- .../plugins/plinn_image/dialog/plinn_image.gif | Bin 0 -> 1046 bytes skins/ckeditor/plugins/plinn_image/plugin.js | 15 +++++++++++++++ 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 skins/ckeditor/plugins/plinn_image/dialog/plinn_image.gif diff --git a/skins/ckeditor/config.js b/skins/ckeditor/config.js index fdcad7b..2944bb0 100644 --- a/skins/ckeditor/config.js +++ b/skins/ckeditor/config.js @@ -20,7 +20,7 @@ CKEDITOR.editorConfig = function( config ) { name: 'basicstyles', items : [ 'Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'RemoveFormat' ] }, { name: 'paragraph', items : [ 'NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote', 'CreateDiv', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'] }, { name: 'links', items : [ 'Link', 'Unlink', 'Anchor' ] }, - { name: 'insert', items : [ 'Image', 'Flash', 'Table', 'HorizontalRule', 'SpecialChar', 'PageBreak'] }, + { name: 'insert', items : [ 'PlinnImage', 'Image', 'Flash', 'Table', 'HorizontalRule', 'SpecialChar', 'PageBreak'] }, ]; // context menu diff --git a/skins/ckeditor/plugins/plinn_image/dialog/plinn_image.gif b/skins/ckeditor/plugins/plinn_image/dialog/plinn_image.gif new file mode 100644 index 0000000000000000000000000000000000000000..9020ace866925f229563524ce23385584906356b GIT binary patch literal 1046 zcmZ?wbhEHb6lV})_}*!a>(vu2bfC#+bpB5=#CSFb+A?7Fw&)XmcBs)Mz~Gp@dRdgbcbv$witt-XHz z`k_M?Pn@{6r(^P!D-Rybnoz#H$acoD+YcUYDM(&8f5E}MdzLI-GS9*1OHaYgn~#%r zM?WixnSXuSvW*+|@4w(5RF<2U*VotYU9mVmp>+Gf!~4vQ_Fp~Rd+teFTidZ?M~@u2 zeDB`#Gf4>-F5EeN`sRY8vl<#2T%x+-;}e&ySm{vfd+^fz&!4~LoqgSN&m*i z^-+;8S1+D;wD0r8yvw^cO_?&qqSEiEnU=*uvvcQepFDYe>eQ*nk00N%4G6dT7Q_}6 z6`e~@+`MVil&;R%^B13*KIilM_x^!tU%q^gPbfR&U|q8(ee2dOCapW}-@pI)&%d|P zR&V<2*E_pkymZcz&c6G{>wg3PBXBY)^2?52QEQ|~c z?F>2~+dz4Of#Wj+Kc|exh6M+kIfS)hR&1DXxSfyJP$Z(mq0y4xNk=fiL+NlAtAxyg z2Mx)R{k*zeH47XX7EagTHClO@iMvCvY1bDI1BTZA87$iq4qQCm(!t?Yk@MrC%So;U z%-$6ziZdcgny literal 0 HcmV?d00001 diff --git a/skins/ckeditor/plugins/plinn_image/plugin.js b/skins/ckeditor/plugins/plinn_image/plugin.js index afa30ce..442a2be 100644 --- a/skins/ckeditor/plugins/plinn_image/plugin.js +++ b/skins/ckeditor/plugins/plinn_image/plugin.js @@ -42,6 +42,21 @@ CKEDITOR.plugins.add( 'plinn_image', } ); }); + + var command = editor.addCommand('plinn_image', + { + exec : function(editor) { + alert('Bonjour la France !'); + } + }); + + editor.ui.addButton('PlinnImage', + { + label : editor.lang.common.image, + icon : this.path + 'dialog/plinn_image.gif', + command : 'plinn_image' + }); + console.log(this.path); } }); -- 2.20.1