From 96345468b127d9b2202b12a26f48fdf68d729cf0 Mon Sep 17 00:00:00 2001 From: Florian Bogner <f.bogner@pcsg.de> Date: Mon, 12 Jun 2017 10:53:23 +0200 Subject: [PATCH] docs: Improved README.md --- README.md | 41 +++++++++++++++ plugins/ckeditor4/inserthtml4x | 1 - .../inserthtml4x/dialogs/inserthtml.js | 39 ++++++++++++++ plugins/ckeditor4/inserthtml4x/inserthtml.png | Bin 0 -> 395 bytes plugins/ckeditor4/inserthtml4x/plugin.js | 30 +++++++++++ plugins/ckeditor4/inserthtml4x/readme.txt | 49 ++++++++++++++++++ 6 files changed, 159 insertions(+), 1 deletion(-) delete mode 160000 plugins/ckeditor4/inserthtml4x create mode 100644 plugins/ckeditor4/inserthtml4x/dialogs/inserthtml.js create mode 100644 plugins/ckeditor4/inserthtml4x/inserthtml.png create mode 100644 plugins/ckeditor4/inserthtml4x/plugin.js create mode 100644 plugins/ckeditor4/inserthtml4x/readme.txt diff --git a/README.md b/README.md index 50bc902..b18129b 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,47 @@ Features (Funktionen) - CKEditor4 für QUIQQER + +Pluginverwaltung +-------- + +Das Paket liefert eine Pluginverwaltung für CKEditor Plugins ([Plugin Store](http://ckeditor.com/addons/plugins/all)). + +Das Paket liefert eine Auswahl von Plugins mit, diese werden in zwei Ordnern im Paket mitgelifert: +* ckeditor4/plugins/ckeditor4 (Plugins aus dem Pluginstore) +* ckeditor4/plugins/quiqqer (Von PCSG für QUIQQER entwickelte Editorplugins) + +Bei einem Paketsetup werden diese Plugins in das entsprechende QUIQQER-System installiert. + +Zu finden sind die installiert Pakete im "Var-Verzeichnis": + +* \<CMD_DIR>/var/package/quiqqer/ckedito4/plugins/installed (Installiert, aber inaktiv) +* \<CMD_DIR>/var/package/quiqqer/ckedito4/plugins/bin (Installiert und aktiviert) + + +Die Pluginverwaltung kann im Adminbereich unter `Einstellungen -> CKEditor` aufgerufen werden: + + +Plugins installieren +------- + +Um zusätzliche Plugins zu installieren rufen Sie bitte die pluginverwaltung auf: +`ADMINBEREICH -> Einstellungen -> CKEditor` + +1) Dort finden Sie eine Schaltfläche `Hochladen`. +2) Wählen Sie die Schaltfläche `Datei auswählen` +3) Selektieren Sie ein ZIP-Archiv im korrekten Format* +4) Betätigen Sie `Hochladen` +5) Das Plugin wird hochgeladen und installiert + +__**Das korrekte ZIP-Archiv Format:**__ + +Das ZIP muss in einem bestimmten Format aufgebaut sein. + +Folgende Struktur muss eingehalten werden: +Das ZIP-Archiv darf in der ersten Ebene nur einen Ordner enthalten, der den Namen des Plugins trägt. +In diesem Ordner sind die Plugindateien enthalten. + Installation ------------ diff --git a/plugins/ckeditor4/inserthtml4x b/plugins/ckeditor4/inserthtml4x deleted file mode 160000 index 6a4fa63..0000000 --- a/plugins/ckeditor4/inserthtml4x +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 6a4fa6340373600125654874fcef59743fbef140 diff --git a/plugins/ckeditor4/inserthtml4x/dialogs/inserthtml.js b/plugins/ckeditor4/inserthtml4x/dialogs/inserthtml.js new file mode 100644 index 0000000..b6e4eb9 --- /dev/null +++ b/plugins/ckeditor4/inserthtml4x/dialogs/inserthtml.js @@ -0,0 +1,39 @@ +/*********************************************************************************************************/ +/** + * inserthtml plugin for CKEditor 4.x (Author: gpickin ; email: gpickin@gmail.com) + * version: 2.0 + * Released: On 2015-03-10 + * Download: http://www.github.com/gpickin/ckeditor-inserthtml + * + * + * Modified from original: inserthtml plugin for CKEditor 3.x (Author: Lajox ; Email: lajox@19www.com) + * mod-version: 1.0 + * mod-Released: On 2009-12-11 + * mod-Download: http://code.google.com/p/lajox + */ +/*********************************************************************************************************/ + +CKEDITOR.dialog.add('inserthtmlDialog',function(editor){ + return{ + title:'Insert HTML', + minWidth:380, + minHeight:220, + contents:[ + { id:'info', + label:'HTML', + elements:[ + { type:'textarea', + id:'insertcode_area', + label:'', + cols:60, + rows:11 + } + ] + } + ], + onOk: function() { + var sInsert=this.getValueOf('info','insertcode_area'); + if ( sInsert.length > 0 ) + editor.insertHtml(sInsert); + } + }; }); \ No newline at end of file diff --git a/plugins/ckeditor4/inserthtml4x/inserthtml.png b/plugins/ckeditor4/inserthtml4x/inserthtml.png new file mode 100644 index 0000000000000000000000000000000000000000..4aad3f3a539040f62899e895a78c122c7c8a3d44 GIT binary patch literal 395 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`EX7WqAsj$Z!;#Vf<Z~8yL>4nJ za0`Jj<E6WGe}IBAC9V-A!TD(=<%vb942~)JNvR5MnMJAP`9;~q3eLf1FZOKe0jd)P zsdFw$O)SaG&r=A=%uQu5);BcJH#Du8c4Z|{!4ppx#}JF&xswgKnhiwS>b=(~-8-xr zQ1Rf(#qJlgx>H`Ov2f|_ZLeS|UC|L6b7`TLp=anXM+3Wmd;Z(bXMDc#*qKewZLXa* zdc2K|LGMGrwDSjQm>L9jiYZ;+Hti<g{uQgF0!6F})2!aAPWtrjYDKgK_w$W>eJuNS z{LJN(UG{Qs<g=0n`{)3#wO2P9rwU!Hx=;f&j)$S^(K8hfp*5Y;o4?KL*q6LTvQ023 zZsM~3-o<y>4F0npHn3_6zps4SN#NqKt8KbTv$wreaN%8grI0oEvL%yZmirs!8?z71 hv=+*!U2*d%^PSl(`lYiOEr9-I@O1TaS?83{1OVD|n-%~7 literal 0 HcmV?d00001 diff --git a/plugins/ckeditor4/inserthtml4x/plugin.js b/plugins/ckeditor4/inserthtml4x/plugin.js new file mode 100644 index 0000000..074e8b0 --- /dev/null +++ b/plugins/ckeditor4/inserthtml4x/plugin.js @@ -0,0 +1,30 @@ +/*********************************************************************************************************/ +/** + * inserthtml plugin for CKEditor 4.x (Author: gpickin ; email: gpickin@gmail.com) + * version: 2.0 + * Released: On 2015-03-10 + * Download: http://www.github.com/gpickin/ckeditor-inserthtml + * + * + * Modified from original: inserthtml plugin for CKEditor 3.x (Author: Lajox ; Email: lajox@19www.com) + * mod-version: 1.0 + * mod-Released: On 2009-12-11 + * mod-Download: http://code.google.com/p/lajox + */ +/*********************************************************************************************************/ + +CKEDITOR.plugins.add('inserthtml4x', + { + icons: 'inserthtml4x', + init: function( editor ) { + editor.addCommand( 'inserthtml4x', new CKEDITOR.dialogCommand( 'inserthtmlDialog' ) ); + editor.ui.addButton( 'inserthtml4x', { + label: 'Insert HTML', + command: 'inserthtml4x', + toolbar: 'insert', + icon : this.path + 'inserthtml.png' + }); + + CKEDITOR.dialog.add( 'inserthtmlDialog', this.path + 'dialogs/inserthtml.js' ); + } +}); \ No newline at end of file diff --git a/plugins/ckeditor4/inserthtml4x/readme.txt b/plugins/ckeditor4/inserthtml4x/readme.txt new file mode 100644 index 0000000..60ec089 --- /dev/null +++ b/plugins/ckeditor4/inserthtml4x/readme.txt @@ -0,0 +1,49 @@ +/*********************************************************************************************************/ +/** + * inserthtml plugin for CKEditor 4.x (Author: gpickin ; email: gpickin@gmail.com) + * version: 2.0 + * Released: On 2015-03-10 + * Download: http://www.github.com/gpickin/ckeditor-inserthtml + * + * + * Modified from original: inserthtml plugin for CKEditor 3.x (Author: Lajox ; Email: lajox@19www.com) + * mod-version: 1.0 + * mod-Released: On 2009-12-11 + * mod-Download: http://code.google.com/p/lajox + */ +/*********************************************************************************************************/ + +/************************************************************************************************************** +inserthtml plugin for CKEditor 4.x + + --Insert Html Code Plugin + +Plugin Description: CKEditor 4.0+ Insert Html Code Plugin 2.0 + +***************************************************************************************************************/ + + +/**************Help Begin***************/ + +1. Upload inserthtml folder to ckeditor/plugins/ + +2. Configured in the ckeditor/config.js : + Add to config.toolbar a value 'inserthtml' +e.g. + +config.toolbar = +[ + [ 'Source', '-', 'Bold', 'Italic', 'inserthtml' ] +]; + + +3. Again Configured in the ckeditor/config.js , + Expand the extra plugin 'inserthtml' such as: + +config.extraPlugins='myplugin1,myplugin2,inserthtml'; + +4. Language Features Removed due to compatibility issues + +/**************Help End***************/ + + -- GitLab