diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2017-01-21 11:03:41 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2017-01-21 11:03:41 +0100 |
commit | cd64262b335d84c1dc18cd1b986712cf7befdefb (patch) | |
tree | 8e7dfe13214c16f5cabaa6c0c8f80ba3145bd278 /sources/plugins/brclear | |
parent | c63493c899de714b05b0521bb38aab60d19030ef (diff) | |
download | ludivine-ckeditor-component-cd64262b335d84c1dc18cd1b986712cf7befdefb.tar.gz ludivine-ckeditor-component-cd64262b335d84c1dc18cd1b986712cf7befdefb.tar.zst ludivine-ckeditor-component-cd64262b335d84c1dc18cd1b986712cf7befdefb.zip |
Diffstat (limited to 'sources/plugins/brclear')
-rw-r--r-- | sources/plugins/brclear/brclear.png | bin | 0 -> 329 bytes | |||
-rw-r--r-- | sources/plugins/brclear/lang/en.js | 3 | ||||
-rw-r--r-- | sources/plugins/brclear/lang/es.js | 3 | ||||
-rw-r--r-- | sources/plugins/brclear/lang/fr.js | 3 | ||||
-rw-r--r-- | sources/plugins/brclear/plugin.js | 26 |
5 files changed, 35 insertions, 0 deletions
diff --git a/sources/plugins/brclear/brclear.png b/sources/plugins/brclear/brclear.png new file mode 100644 index 0000000..d14c564 --- /dev/null +++ b/sources/plugins/brclear/brclear.png | |||
Binary files differ | |||
diff --git a/sources/plugins/brclear/lang/en.js b/sources/plugins/brclear/lang/en.js new file mode 100644 index 0000000..635be6c --- /dev/null +++ b/sources/plugins/brclear/lang/en.js | |||
@@ -0,0 +1,3 @@ | |||
1 | CKEDITOR.plugins.setLang('brclear','en',{ | ||
2 | title:"New line in full width" | ||
3 | }); | ||
diff --git a/sources/plugins/brclear/lang/es.js b/sources/plugins/brclear/lang/es.js new file mode 100644 index 0000000..04437ed --- /dev/null +++ b/sources/plugins/brclear/lang/es.js | |||
@@ -0,0 +1,3 @@ | |||
1 | CKEDITOR.plugins.setLang('brclear','es',{ | ||
2 | title:"Nueva línea de ancho completo" | ||
3 | }); | ||
diff --git a/sources/plugins/brclear/lang/fr.js b/sources/plugins/brclear/lang/fr.js new file mode 100644 index 0000000..798a495 --- /dev/null +++ b/sources/plugins/brclear/lang/fr.js | |||
@@ -0,0 +1,3 @@ | |||
1 | CKEDITOR.plugins.setLang('brclear','fr',{ | ||
2 | title:"Retour à la ligne sur toute la largeur" | ||
3 | }); | ||
diff --git a/sources/plugins/brclear/plugin.js b/sources/plugins/brclear/plugin.js new file mode 100644 index 0000000..a11ac32 --- /dev/null +++ b/sources/plugins/brclear/plugin.js | |||
@@ -0,0 +1,26 @@ | |||
1 | /** | ||
2 | * BrClear CKEditor plugin | ||
3 | * @author Jacques Malgrange <contacter@boiteasite.fr> - 2015 - MIT License | ||
4 | */ | ||
5 | (function(){ | ||
6 | var brclearCmd={ | ||
7 | canUndo:true, | ||
8 | exec:function(editor){ | ||
9 | var brcl=editor.document.createElement('br',{attributes:{style:'clear:both;'}}); | ||
10 | editor.insertElement(brcl); | ||
11 | }, | ||
12 | html:'<br style="clear:both;" />' | ||
13 | }; | ||
14 | CKEDITOR.plugins.add('brclear',{ | ||
15 | lang:'en,es,fr', | ||
16 | init:function(editor){ | ||
17 | editor.addCommand('brclear',brclearCmd); | ||
18 | editor.ui.addButton('brclear',{ | ||
19 | icon:this.path+'brclear.png', | ||
20 | command:'brclear', | ||
21 | toolbar:'cleanup', | ||
22 | title:editor.lang.brclear.title | ||
23 | }); | ||
24 | } | ||
25 | }); | ||
26 | })(); | ||