diff options
Diffstat (limited to 'sources/plugins/liststyle/plugin.js')
-rw-r--r-- | sources/plugins/liststyle/plugin.js | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/sources/plugins/liststyle/plugin.js b/sources/plugins/liststyle/plugin.js index 1394996..f281edc 100644 --- a/sources/plugins/liststyle/plugin.js +++ b/sources/plugins/liststyle/plugin.js | |||
@@ -1,5 +1,5 @@ | |||
1 | /** | 1 | /** |
2 | * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. | 2 | * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. |
3 | * For licensing, see LICENSE.md or http://ckeditor.com/license | 3 | * For licensing, see LICENSE.md or http://ckeditor.com/license |
4 | */ | 4 | */ |
5 | 5 | ||
@@ -7,7 +7,7 @@ | |||
7 | CKEDITOR.plugins.liststyle = { | 7 | CKEDITOR.plugins.liststyle = { |
8 | requires: 'dialog,contextmenu', | 8 | requires: 'dialog,contextmenu', |
9 | // jscs:disable maximumLineLength | 9 | // jscs:disable maximumLineLength |
10 | 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% | 10 | 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% |
11 | // jscs:enable maximumLineLength | 11 | // jscs:enable maximumLineLength |
12 | init: function( editor ) { | 12 | init: function( editor ) { |
13 | if ( editor.blockless ) | 13 | if ( editor.blockless ) |
@@ -17,7 +17,10 @@ | |||
17 | 17 | ||
18 | def = new CKEDITOR.dialogCommand( 'numberedListStyle', { | 18 | def = new CKEDITOR.dialogCommand( 'numberedListStyle', { |
19 | requiredContent: 'ol', | 19 | requiredContent: 'ol', |
20 | allowedContent: 'ol{list-style-type}[start]' | 20 | allowedContent: 'ol{list-style-type}[start]; li{list-style-type}[value]', |
21 | contentTransformations: [ | ||
22 | [ 'ol: listTypeToStyle' ] | ||
23 | ] | ||
21 | } ); | 24 | } ); |
22 | cmd = editor.addCommand( 'numberedListStyle', def ); | 25 | cmd = editor.addCommand( 'numberedListStyle', def ); |
23 | editor.addFeature( cmd ); | 26 | editor.addFeature( cmd ); |
@@ -25,7 +28,10 @@ | |||
25 | 28 | ||
26 | def = new CKEDITOR.dialogCommand( 'bulletedListStyle', { | 29 | def = new CKEDITOR.dialogCommand( 'bulletedListStyle', { |
27 | requiredContent: 'ul', | 30 | requiredContent: 'ul', |
28 | allowedContent: 'ul{list-style-type}' | 31 | allowedContent: 'ul{list-style-type}', |
32 | contentTransformations: [ | ||
33 | [ 'ul: listTypeToStyle' ] | ||
34 | ] | ||
29 | } ); | 35 | } ); |
30 | cmd = editor.addCommand( 'bulletedListStyle', def ); | 36 | cmd = editor.addCommand( 'bulletedListStyle', def ); |
31 | editor.addFeature( cmd ); | 37 | editor.addFeature( cmd ); |