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 | |
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')
-rw-r--r-- | sources/config.js | 2 | ||||
-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 |
6 files changed, 36 insertions, 1 deletions
diff --git a/sources/config.js b/sources/config.js index c3716d1..708d25d 100644 --- a/sources/config.js +++ b/sources/config.js | |||
@@ -7,7 +7,7 @@ CKEDITOR.editorConfig = function( config ) { | |||
7 | 7 | ||
8 | // %REMOVE_START% | 8 | // %REMOVE_START% |
9 | // The configuration options below are needed when running CKEditor from source files. | 9 | // The configuration options below are needed when running CKEditor from source files. |
10 | config.plugins = 'dialogui,dialog,a11yhelp,dialogadvtab,basicstyles,panel,floatpanel,menu,contextmenu,resize,button,toolbar,elementspath,enterkey,entities,popup,filebrowser,floatingspace,listblock,richcombo,format,horizontalrule,htmlwriter,fakeobjects,iframe,wysiwygarea,image,indent,indentblock,indentlist,justify,link,list,liststyle,magicline,maximize,removeformat,showborders,sourcearea,tab,lineutils,clipboard,widgetselection,widget,oembed'; | 10 | config.plugins = 'dialogui,dialog,a11yhelp,dialogadvtab,basicstyles,panel,floatpanel,menu,contextmenu,resize,button,toolbar,elementspath,enterkey,entities,popup,filebrowser,floatingspace,listblock,richcombo,format,horizontalrule,htmlwriter,fakeobjects,iframe,wysiwygarea,image,indent,indentblock,indentlist,justify,link,list,liststyle,magicline,maximize,removeformat,showborders,sourcearea,tab,lineutils,clipboard,widgetselection,widget,oembed,brclear'; |
11 | config.skin = 'moono'; | 11 | config.skin = 'moono'; |
12 | // %REMOVE_END% | 12 | // %REMOVE_END% |
13 | 13 | ||
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 | })(); | ||