@ckeditor/ckeditor5-word-count 41.3.0-alpha.4 → 41.3.1
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +2 -3
- package/src/index.d.ts +1 -1
- package/dist/content-index.css +0 -4
- package/dist/editor-index.css +0 -4
- package/dist/index.css +0 -4
- package/dist/translations/ar.d.ts +0 -8
- package/dist/translations/ar.js +0 -5
- package/dist/translations/az.d.ts +0 -8
- package/dist/translations/az.js +0 -5
- package/dist/translations/bg.d.ts +0 -8
- package/dist/translations/bg.js +0 -5
- package/dist/translations/bn.d.ts +0 -8
- package/dist/translations/bn.js +0 -5
- package/dist/translations/ca.d.ts +0 -8
- package/dist/translations/ca.js +0 -5
- package/dist/translations/cs.d.ts +0 -8
- package/dist/translations/cs.js +0 -5
- package/dist/translations/da.d.ts +0 -8
- package/dist/translations/da.js +0 -5
- package/dist/translations/de-ch.d.ts +0 -8
- package/dist/translations/de-ch.js +0 -5
- package/dist/translations/de.d.ts +0 -8
- package/dist/translations/de.js +0 -5
- package/dist/translations/el.d.ts +0 -8
- package/dist/translations/el.js +0 -5
- package/dist/translations/en-au.d.ts +0 -8
- package/dist/translations/en-au.js +0 -5
- package/dist/translations/en-gb.d.ts +0 -8
- package/dist/translations/en-gb.js +0 -5
- package/dist/translations/en.d.ts +0 -8
- package/dist/translations/en.js +0 -5
- package/dist/translations/es-co.d.ts +0 -8
- package/dist/translations/es-co.js +0 -5
- package/dist/translations/es.d.ts +0 -8
- package/dist/translations/es.js +0 -5
- package/dist/translations/et.d.ts +0 -8
- package/dist/translations/et.js +0 -5
- package/dist/translations/fa.d.ts +0 -8
- package/dist/translations/fa.js +0 -5
- package/dist/translations/fi.d.ts +0 -8
- package/dist/translations/fi.js +0 -5
- package/dist/translations/fr.d.ts +0 -8
- package/dist/translations/fr.js +0 -5
- package/dist/translations/gl.d.ts +0 -8
- package/dist/translations/gl.js +0 -5
- package/dist/translations/he.d.ts +0 -8
- package/dist/translations/he.js +0 -5
- package/dist/translations/hi.d.ts +0 -8
- package/dist/translations/hi.js +0 -5
- package/dist/translations/hr.d.ts +0 -8
- package/dist/translations/hr.js +0 -5
- package/dist/translations/hu.d.ts +0 -8
- package/dist/translations/hu.js +0 -5
- package/dist/translations/hy.d.ts +0 -8
- package/dist/translations/hy.js +0 -5
- package/dist/translations/id.d.ts +0 -8
- package/dist/translations/id.js +0 -5
- package/dist/translations/it.d.ts +0 -8
- package/dist/translations/it.js +0 -5
- package/dist/translations/ja.d.ts +0 -8
- package/dist/translations/ja.js +0 -5
- package/dist/translations/ko.d.ts +0 -8
- package/dist/translations/ko.js +0 -5
- package/dist/translations/ku.d.ts +0 -8
- package/dist/translations/ku.js +0 -5
- package/dist/translations/lt.d.ts +0 -8
- package/dist/translations/lt.js +0 -5
- package/dist/translations/lv.d.ts +0 -8
- package/dist/translations/lv.js +0 -5
- package/dist/translations/ms.d.ts +0 -8
- package/dist/translations/ms.js +0 -5
- package/dist/translations/ne.d.ts +0 -8
- package/dist/translations/ne.js +0 -5
- package/dist/translations/nl.d.ts +0 -8
- package/dist/translations/nl.js +0 -5
- package/dist/translations/no.d.ts +0 -8
- package/dist/translations/no.js +0 -5
- package/dist/translations/pl.d.ts +0 -8
- package/dist/translations/pl.js +0 -5
- package/dist/translations/pt-br.d.ts +0 -8
- package/dist/translations/pt-br.js +0 -5
- package/dist/translations/pt.d.ts +0 -8
- package/dist/translations/pt.js +0 -5
- package/dist/translations/ro.d.ts +0 -8
- package/dist/translations/ro.js +0 -5
- package/dist/translations/ru.d.ts +0 -8
- package/dist/translations/ru.js +0 -5
- package/dist/translations/sk.d.ts +0 -8
- package/dist/translations/sk.js +0 -5
- package/dist/translations/sq.d.ts +0 -8
- package/dist/translations/sq.js +0 -5
- package/dist/translations/sr-latn.d.ts +0 -8
- package/dist/translations/sr-latn.js +0 -5
- package/dist/translations/sr.d.ts +0 -8
- package/dist/translations/sr.js +0 -5
- package/dist/translations/sv.d.ts +0 -8
- package/dist/translations/sv.js +0 -5
- package/dist/translations/th.d.ts +0 -8
- package/dist/translations/th.js +0 -5
- package/dist/translations/tk.d.ts +0 -8
- package/dist/translations/tk.js +0 -5
- package/dist/translations/tr.d.ts +0 -8
- package/dist/translations/tr.js +0 -5
- package/dist/translations/ug.d.ts +0 -8
- package/dist/translations/ug.js +0 -5
- package/dist/translations/uk.d.ts +0 -8
- package/dist/translations/uk.js +0 -5
- package/dist/translations/ur.d.ts +0 -8
- package/dist/translations/ur.js +0 -5
- package/dist/translations/vi.d.ts +0 -8
- package/dist/translations/vi.js +0 -5
- package/dist/translations/zh-cn.d.ts +0 -8
- package/dist/translations/zh-cn.js +0 -5
- package/dist/translations/zh.d.ts +0 -8
- package/dist/translations/zh.js +0 -5
- package/dist/types/augmentation.d.ts +0 -23
- package/dist/types/index.d.ts +0 -14
- package/dist/types/utils.d.ts +0 -18
- package/dist/types/wordcount.d.ts +0 -139
- package/dist/types/wordcountconfig.d.ts +0 -96
package/dist/translations/ms.js
DELETED
@@ -1,5 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
-
*/
|
5
|
-
export default {"ms":{"dictionary":{"Words: %0":"Perkataan: %0","Characters: %0":"Aksara: %0"},getPluralForm(n){return 0;}}}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
-
*/
|
5
|
-
|
6
|
-
import type { Translations } from 'ckeditor5';
|
7
|
-
declare const translations: Translations;
|
8
|
-
export default translations;
|
package/dist/translations/ne.js
DELETED
@@ -1,5 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
-
*/
|
5
|
-
export default {"ne":{"dictionary":{"Words: %0":"शब्दहरू: %0","Characters: %0":"क्यारेक्टरहरू: %0"},getPluralForm(n){return (n != 1);}}}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
-
*/
|
5
|
-
|
6
|
-
import type { Translations } from 'ckeditor5';
|
7
|
-
declare const translations: Translations;
|
8
|
-
export default translations;
|
package/dist/translations/nl.js
DELETED
@@ -1,5 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
-
*/
|
5
|
-
export default {"nl":{"dictionary":{"Words: %0":"Woorden: %0","Characters: %0":"Tekens: %0"},getPluralForm(n){return (n != 1);}}}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
-
*/
|
5
|
-
|
6
|
-
import type { Translations } from 'ckeditor5';
|
7
|
-
declare const translations: Translations;
|
8
|
-
export default translations;
|
package/dist/translations/no.js
DELETED
@@ -1,5 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
-
*/
|
5
|
-
export default {"no":{"dictionary":{"Words: %0":"Ord: %0","Characters: %0":"Tegn: %0"},getPluralForm(n){return (n != 1);}}}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
-
*/
|
5
|
-
|
6
|
-
import type { Translations } from 'ckeditor5';
|
7
|
-
declare const translations: Translations;
|
8
|
-
export default translations;
|
package/dist/translations/pl.js
DELETED
@@ -1,5 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
-
*/
|
5
|
-
export default {"pl":{"dictionary":{"Words: %0":"Słowa: %0","Characters: %0":"Znaki: %0"},getPluralForm(n){return (n==1 ? 0 : (n%10>=2 && n%10<=4) && (n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);}}}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
-
*/
|
5
|
-
|
6
|
-
import type { Translations } from 'ckeditor5';
|
7
|
-
declare const translations: Translations;
|
8
|
-
export default translations;
|
@@ -1,5 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
-
*/
|
5
|
-
export default {"pt-br":{"dictionary":{"Words: %0":"Palavras: %0","Characters: %0":"Caracteres: %0"},getPluralForm(n){return (n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;}}}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
-
*/
|
5
|
-
|
6
|
-
import type { Translations } from 'ckeditor5';
|
7
|
-
declare const translations: Translations;
|
8
|
-
export default translations;
|
package/dist/translations/pt.js
DELETED
@@ -1,5 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
-
*/
|
5
|
-
export default {"pt":{"dictionary":{"Words: %0":"Palavras: %0","Characters: %0":"Caracteres: %0"},getPluralForm(n){return (n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;}}}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
-
*/
|
5
|
-
|
6
|
-
import type { Translations } from 'ckeditor5';
|
7
|
-
declare const translations: Translations;
|
8
|
-
export default translations;
|
package/dist/translations/ro.js
DELETED
@@ -1,5 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
-
*/
|
5
|
-
export default {"ro":{"dictionary":{"Words: %0":"Cuvinte: %0","Characters: %0":"Caractere: %0"},getPluralForm(n){return (n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?2:1));}}}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
-
*/
|
5
|
-
|
6
|
-
import type { Translations } from 'ckeditor5';
|
7
|
-
declare const translations: Translations;
|
8
|
-
export default translations;
|
package/dist/translations/ru.js
DELETED
@@ -1,5 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
-
*/
|
5
|
-
export default {"ru":{"dictionary":{"Words: %0":"Слов: %0","Characters: %0":"Символов: %0"},getPluralForm(n){return (n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n%100>=11 && n%100<=14)? 2 : 3);}}}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
-
*/
|
5
|
-
|
6
|
-
import type { Translations } from 'ckeditor5';
|
7
|
-
declare const translations: Translations;
|
8
|
-
export default translations;
|
package/dist/translations/sk.js
DELETED
@@ -1,5 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
-
*/
|
5
|
-
export default {"sk":{"dictionary":{"Words: %0":"Slov: %0","Characters: %0":"Znakov: %0"},getPluralForm(n){return (n % 1 == 0 && n == 1 ? 0 : n % 1 == 0 && n >= 2 && n <= 4 ? 1 : n % 1 != 0 ? 2: 3);}}}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
-
*/
|
5
|
-
|
6
|
-
import type { Translations } from 'ckeditor5';
|
7
|
-
declare const translations: Translations;
|
8
|
-
export default translations;
|
package/dist/translations/sq.js
DELETED
@@ -1,5 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
-
*/
|
5
|
-
export default {"sq":{"dictionary":{"Words: %0":"Fjalë: %0","Characters: %0":"Karaktere: %0"},getPluralForm(n){return (n != 1);}}}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
-
*/
|
5
|
-
|
6
|
-
import type { Translations } from 'ckeditor5';
|
7
|
-
declare const translations: Translations;
|
8
|
-
export default translations;
|
@@ -1,5 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
-
*/
|
5
|
-
export default {"sr-latn":{"dictionary":{"Words: %0":"Reči: %0","Characters: %0":"Karakteri: %0"},getPluralForm(n){return (n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);}}}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
-
*/
|
5
|
-
|
6
|
-
import type { Translations } from 'ckeditor5';
|
7
|
-
declare const translations: Translations;
|
8
|
-
export default translations;
|
package/dist/translations/sr.js
DELETED
@@ -1,5 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
-
*/
|
5
|
-
export default {"sr":{"dictionary":{"Words: %0":"Речи: %0","Characters: %0":"Карактери: %0"},getPluralForm(n){return (n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);}}}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
-
*/
|
5
|
-
|
6
|
-
import type { Translations } from 'ckeditor5';
|
7
|
-
declare const translations: Translations;
|
8
|
-
export default translations;
|
package/dist/translations/sv.js
DELETED
@@ -1,5 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
-
*/
|
5
|
-
export default {"sv":{"dictionary":{"Words: %0":"Ord: %0","Characters: %0":"Tecken: %0"},getPluralForm(n){return (n != 1);}}}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
-
*/
|
5
|
-
|
6
|
-
import type { Translations } from 'ckeditor5';
|
7
|
-
declare const translations: Translations;
|
8
|
-
export default translations;
|
package/dist/translations/th.js
DELETED
@@ -1,5 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
-
*/
|
5
|
-
export default {"th":{"dictionary":{"Words: %0":"คำ: %0","Characters: %0":"ตัวอักษร: %0"},getPluralForm(n){return 0;}}}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
-
*/
|
5
|
-
|
6
|
-
import type { Translations } from 'ckeditor5';
|
7
|
-
declare const translations: Translations;
|
8
|
-
export default translations;
|
package/dist/translations/tk.js
DELETED
@@ -1,5 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
-
*/
|
5
|
-
export default {"tk":{"dictionary":{"Words: %0":"Sözler: %0","Characters: %0":"Nyşanlar: %0"},getPluralForm(n){return (n != 1);}}}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
-
*/
|
5
|
-
|
6
|
-
import type { Translations } from 'ckeditor5';
|
7
|
-
declare const translations: Translations;
|
8
|
-
export default translations;
|
package/dist/translations/tr.js
DELETED
@@ -1,5 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
-
*/
|
5
|
-
export default {"tr":{"dictionary":{"Words: %0":"Kelimeler: %0","Characters: %0":"Karakterler: %0"},getPluralForm(n){return (n > 1);}}}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
-
*/
|
5
|
-
|
6
|
-
import type { Translations } from 'ckeditor5';
|
7
|
-
declare const translations: Translations;
|
8
|
-
export default translations;
|
package/dist/translations/ug.js
DELETED
@@ -1,5 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
-
*/
|
5
|
-
export default {"ug":{"dictionary":{"Words: %0":"سۆز: %0","Characters: %0":"ھەرپ: %0"},getPluralForm(n){return (n != 1);}}}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
-
*/
|
5
|
-
|
6
|
-
import type { Translations } from 'ckeditor5';
|
7
|
-
declare const translations: Translations;
|
8
|
-
export default translations;
|
package/dist/translations/uk.js
DELETED
@@ -1,5 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
-
*/
|
5
|
-
export default {"uk":{"dictionary":{"Words: %0":"Слова: %0","Characters: %0":"Символи: %0"},getPluralForm(n){return (n % 1 == 0 && n % 10 == 1 && n % 100 != 11 ? 0 : n % 1 == 0 && n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14) ? 1 : n % 1 == 0 && (n % 10 ==0 || (n % 10 >=5 && n % 10 <=9) || (n % 100 >=11 && n % 100 <=14 )) ? 2: 3);}}}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
-
*/
|
5
|
-
|
6
|
-
import type { Translations } from 'ckeditor5';
|
7
|
-
declare const translations: Translations;
|
8
|
-
export default translations;
|
package/dist/translations/ur.js
DELETED
@@ -1,5 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
-
*/
|
5
|
-
export default {"ur":{"dictionary":{"Words: %0":"الفاظ: 0%","Characters: %0":"حروف: 0%"},getPluralForm(n){return (n != 1);}}}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
-
*/
|
5
|
-
|
6
|
-
import type { Translations } from 'ckeditor5';
|
7
|
-
declare const translations: Translations;
|
8
|
-
export default translations;
|
package/dist/translations/vi.js
DELETED
@@ -1,5 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
-
*/
|
5
|
-
export default {"vi":{"dictionary":{"Words: %0":"Số chữ: %0","Characters: %0":"Số ký tự: %0"},getPluralForm(n){return 0;}}}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
-
*/
|
5
|
-
|
6
|
-
import type { Translations } from 'ckeditor5';
|
7
|
-
declare const translations: Translations;
|
8
|
-
export default translations;
|
@@ -1,5 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
-
*/
|
5
|
-
export default {"zh-cn":{"dictionary":{"Words: %0":"单词数:%0","Characters: %0":"字符数:%0"},getPluralForm(n){return 0;}}}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
-
*/
|
5
|
-
|
6
|
-
import type { Translations } from 'ckeditor5';
|
7
|
-
declare const translations: Translations;
|
8
|
-
export default translations;
|
package/dist/translations/zh.js
DELETED
@@ -1,5 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
-
*/
|
5
|
-
export default {"zh":{"dictionary":{"Words: %0":"字數: %0","Characters: %0":"字元數: %0"},getPluralForm(n){return 0;}}}
|
@@ -1,23 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
-
*/
|
5
|
-
/**
|
6
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
7
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
8
|
-
*/
|
9
|
-
import type { WordCount, WordCountConfig } from './index.js';
|
10
|
-
declare module '@ckeditor/ckeditor5-core' {
|
11
|
-
interface EditorConfig {
|
12
|
-
/**
|
13
|
-
* The configuration of the word count feature.
|
14
|
-
* It is introduced by the {@link module:word-count/wordcount~WordCount} feature.
|
15
|
-
*
|
16
|
-
* Read more in {@link module:word-count/wordcountconfig~WordCountConfig}.
|
17
|
-
*/
|
18
|
-
wordCount?: WordCountConfig;
|
19
|
-
}
|
20
|
-
interface PluginsMap {
|
21
|
-
[WordCount.pluginName]: WordCount;
|
22
|
-
}
|
23
|
-
}
|
package/dist/types/index.d.ts
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
-
*/
|
5
|
-
/**
|
6
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
7
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
8
|
-
*/
|
9
|
-
/**
|
10
|
-
* @module word-count
|
11
|
-
*/
|
12
|
-
export { default as WordCount, type WordCountUpdateEvent } from './wordcount.js';
|
13
|
-
export type { WordCountConfig } from './wordcountconfig.js';
|
14
|
-
import './augmentation.js';
|
package/dist/types/utils.d.ts
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
-
*/
|
5
|
-
/**
|
6
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
7
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
8
|
-
*/
|
9
|
-
/**
|
10
|
-
* @module word-count/utils
|
11
|
-
*/
|
12
|
-
import type { Item } from 'ckeditor5/src/engine.js';
|
13
|
-
/**
|
14
|
-
* Returns a plain text representation of an element and its children.
|
15
|
-
*
|
16
|
-
* @returns Plain text representing the model's data.
|
17
|
-
*/
|
18
|
-
export declare function modelElementToPlainText(item: Item): string;
|
@@ -1,139 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
-
*/
|
5
|
-
/**
|
6
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
7
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
8
|
-
*/
|
9
|
-
import { Plugin, type Editor } from 'ckeditor5/src/core.js';
|
10
|
-
/**
|
11
|
-
* The word count plugin.
|
12
|
-
*
|
13
|
-
* This plugin calculates all words and characters in all {@link module:engine/model/text~Text text nodes} available in the model.
|
14
|
-
* It also provides an HTML element that updates its state whenever the editor content is changed.
|
15
|
-
*
|
16
|
-
* The model's data is first converted to plain text using {@link module:word-count/utils~modelElementToPlainText}.
|
17
|
-
* The number of words and characters in your text are determined based on the created plain text. Please keep in mind
|
18
|
-
* that every block in the editor is separated with a newline character, which is included in the calculation.
|
19
|
-
*
|
20
|
-
* Here are some examples of how the word and character calculations are made:
|
21
|
-
*
|
22
|
-
* ```html
|
23
|
-
* <paragraph>foo</paragraph>
|
24
|
-
* <paragraph>bar</paragraph>
|
25
|
-
* // Words: 2, Characters: 7
|
26
|
-
*
|
27
|
-
* <paragraph><$text bold="true">foo</$text>bar</paragraph>
|
28
|
-
* // Words: 1, Characters: 6
|
29
|
-
*
|
30
|
-
* <paragraph>*&^%)</paragraph>
|
31
|
-
* // Words: 0, Characters: 5
|
32
|
-
*
|
33
|
-
* <paragraph>foo(bar)</paragraph>
|
34
|
-
* //Words: 1, Characters: 8
|
35
|
-
*
|
36
|
-
* <paragraph>12345</paragraph>
|
37
|
-
* // Words: 1, Characters: 5
|
38
|
-
* ```
|
39
|
-
*/
|
40
|
-
export default class WordCount extends Plugin {
|
41
|
-
/**
|
42
|
-
* The number of characters in the editor.
|
43
|
-
*
|
44
|
-
* @observable
|
45
|
-
* @readonly
|
46
|
-
*/
|
47
|
-
characters: number;
|
48
|
-
/**
|
49
|
-
* The number of words in the editor.
|
50
|
-
*
|
51
|
-
* @observable
|
52
|
-
* @readonly
|
53
|
-
*/
|
54
|
-
words: number;
|
55
|
-
/**
|
56
|
-
* The label used to display the words value in the {@link #wordCountContainer output container}.
|
57
|
-
*
|
58
|
-
* @observable
|
59
|
-
* @private
|
60
|
-
* @readonly
|
61
|
-
*/
|
62
|
-
_wordsLabel: string | undefined;
|
63
|
-
/**
|
64
|
-
* The label used to display the characters value in the {@link #wordCountContainer output container}.
|
65
|
-
*
|
66
|
-
* @observable
|
67
|
-
* @private
|
68
|
-
* @readonly
|
69
|
-
*/
|
70
|
-
_charactersLabel: string | undefined;
|
71
|
-
/**
|
72
|
-
* The configuration of this plugin.
|
73
|
-
*/
|
74
|
-
private _config;
|
75
|
-
/**
|
76
|
-
* The reference to a {@link module:ui/view~View view object} that contains the self-updating HTML container.
|
77
|
-
*/
|
78
|
-
private _outputView;
|
79
|
-
/**
|
80
|
-
* A regular expression used to recognize words in the editor's content.
|
81
|
-
*/
|
82
|
-
private readonly _wordsMatchRegExp;
|
83
|
-
/**
|
84
|
-
* @inheritDoc
|
85
|
-
*/
|
86
|
-
constructor(editor: Editor);
|
87
|
-
/**
|
88
|
-
* @inheritDoc
|
89
|
-
*/
|
90
|
-
static get pluginName(): "WordCount";
|
91
|
-
/**
|
92
|
-
* @inheritDoc
|
93
|
-
*/
|
94
|
-
init(): void;
|
95
|
-
/**
|
96
|
-
* @inheritDoc
|
97
|
-
*/
|
98
|
-
destroy(): void;
|
99
|
-
/**
|
100
|
-
* Creates a self-updating HTML element. Repeated executions return the same element.
|
101
|
-
* The returned element has the following HTML structure:
|
102
|
-
*
|
103
|
-
* ```html
|
104
|
-
* <div class="ck ck-word-count">
|
105
|
-
* <div class="ck-word-count__words">Words: 4</div>
|
106
|
-
* <div class="ck-word-count__characters">Characters: 28</div>
|
107
|
-
* </div>
|
108
|
-
* ```
|
109
|
-
*/
|
110
|
-
get wordCountContainer(): HTMLElement;
|
111
|
-
private _getText;
|
112
|
-
/**
|
113
|
-
* Determines the number of characters in the current editor's model.
|
114
|
-
*/
|
115
|
-
private _getCharacters;
|
116
|
-
/**
|
117
|
-
* Determines the number of words in the current editor's model.
|
118
|
-
*/
|
119
|
-
private _getWords;
|
120
|
-
/**
|
121
|
-
* Determines the number of words and characters in the current editor's model and assigns it to {@link #characters} and {@link #words}.
|
122
|
-
* It also fires the {@link #event:update}.
|
123
|
-
*
|
124
|
-
* @fires update
|
125
|
-
*/
|
126
|
-
private _refreshStats;
|
127
|
-
}
|
128
|
-
/**
|
129
|
-
* An event fired after {@link ~WordCount#words} and {@link ~WordCount#characters} are updated.
|
130
|
-
*
|
131
|
-
* @eventName ~WordCount#update
|
132
|
-
*/
|
133
|
-
export type WordCountUpdateEvent = {
|
134
|
-
name: 'update';
|
135
|
-
args: [{
|
136
|
-
words: number;
|
137
|
-
characters: number;
|
138
|
-
}];
|
139
|
-
};
|