]> git.immae.eu Git - perso/Immae/Projets/packagist/piedsjaloux-ckeditor-component.git/blobdiff - sources/plugins/liststyle/plugin.js
Add oembed
[perso/Immae/Projets/packagist/piedsjaloux-ckeditor-component.git] / sources / plugins / liststyle / plugin.js
index 139499665e719d1ff01ad1d20a4937940e552d0b..f281edce2e8f1cac4224eb7ed89d725c3e686a45 100644 (file)
@@ -1,5 +1,5 @@
 /**\r
- * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.\r
+ * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.\r
  * For licensing, see LICENSE.md or http://ckeditor.com/license\r
  */\r
 \r
@@ -7,7 +7,7 @@
        CKEDITOR.plugins.liststyle = {\r
                requires: 'dialog,contextmenu',\r
                // jscs:disable maximumLineLength\r
-               lang: 'af,ar,bg,bn,bs,ca,cs,cy,da,de,de-ch,el,en,en-au,en-ca,en-gb,eo,es,et,eu,fa,fi,fo,fr,fr-ca,gl,gu,he,hi,hr,hu,id,is,it,ja,ka,km,ko,ku,lt,lv,mk,mn,ms,nb,nl,no,pl,pt,pt-br,ro,ru,si,sk,sl,sq,sr,sr-latn,sv,th,tr,tt,ug,uk,vi,zh,zh-cn', // %REMOVE_LINE_CORE%\r
+               lang: 'af,ar,az,bg,bn,bs,ca,cs,cy,da,de,de-ch,el,en,en-au,en-ca,en-gb,eo,es,es-mx,et,eu,fa,fi,fo,fr,fr-ca,gl,gu,he,hi,hr,hu,id,is,it,ja,ka,km,ko,ku,lt,lv,mk,mn,ms,nb,nl,no,oc,pl,pt,pt-br,ro,ru,si,sk,sl,sq,sr,sr-latn,sv,th,tr,tt,ug,uk,vi,zh,zh-cn', // %REMOVE_LINE_CORE%\r
                // jscs:enable maximumLineLength\r
                init: function( editor ) {\r
                        if ( editor.blockless )\r
 \r
                        def = new CKEDITOR.dialogCommand( 'numberedListStyle', {\r
                                requiredContent: 'ol',\r
-                               allowedContent: 'ol{list-style-type}[start]'\r
+                               allowedContent: 'ol{list-style-type}[start]; li{list-style-type}[value]',\r
+                               contentTransformations: [\r
+                                       [ 'ol: listTypeToStyle' ]\r
+                               ]\r
                        } );\r
                        cmd = editor.addCommand( 'numberedListStyle', def );\r
                        editor.addFeature( cmd );\r
 \r
                        def = new CKEDITOR.dialogCommand( 'bulletedListStyle', {\r
                                requiredContent: 'ul',\r
-                               allowedContent: 'ul{list-style-type}'\r
+                               allowedContent: 'ul{list-style-type}',\r
+                               contentTransformations: [\r
+                                       [ 'ul: listTypeToStyle' ]\r
+                               ]\r
                        } );\r
                        cmd = editor.addCommand( 'bulletedListStyle', def );\r
                        editor.addFeature( cmd );\r