@ckeditor/ckeditor5-template 41.3.1 → 41.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/template.js +2 -2
- package/build/translations/ar.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/uz.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/dist/index-content.css +4 -0
- package/dist/index-editor.css +102 -0
- package/dist/index.css +153 -0
- package/dist/index.js +23 -0
- package/dist/translations/ar.d.ts +8 -0
- package/dist/translations/ar.js +23 -0
- package/dist/translations/ar.umd.js +23 -0
- package/dist/translations/bg.d.ts +8 -0
- package/dist/translations/bg.js +23 -0
- package/dist/translations/bg.umd.js +23 -0
- package/dist/translations/bn.d.ts +8 -0
- package/dist/translations/bn.js +23 -0
- package/dist/translations/bn.umd.js +23 -0
- package/dist/translations/ca.d.ts +8 -0
- package/dist/translations/ca.js +23 -0
- package/dist/translations/ca.umd.js +23 -0
- package/dist/translations/cs.d.ts +8 -0
- package/dist/translations/cs.js +23 -0
- package/dist/translations/cs.umd.js +23 -0
- package/dist/translations/da.d.ts +8 -0
- package/dist/translations/da.js +23 -0
- package/dist/translations/da.umd.js +23 -0
- package/dist/translations/de.d.ts +8 -0
- package/dist/translations/de.js +23 -0
- package/dist/translations/de.umd.js +23 -0
- package/dist/translations/el.d.ts +8 -0
- package/dist/translations/el.js +23 -0
- package/dist/translations/el.umd.js +23 -0
- package/dist/translations/en-au.d.ts +8 -0
- package/dist/translations/en-au.js +23 -0
- package/dist/translations/en-au.umd.js +23 -0
- package/dist/translations/en.d.ts +8 -0
- package/dist/translations/en.js +23 -0
- package/dist/translations/en.umd.js +23 -0
- package/dist/translations/es.d.ts +8 -0
- package/dist/translations/es.js +23 -0
- package/dist/translations/es.umd.js +23 -0
- package/dist/translations/et.d.ts +8 -0
- package/dist/translations/et.js +23 -0
- package/dist/translations/et.umd.js +23 -0
- package/dist/translations/fi.d.ts +8 -0
- package/dist/translations/fi.js +23 -0
- package/dist/translations/fi.umd.js +23 -0
- package/dist/translations/fr.d.ts +8 -0
- package/dist/translations/fr.js +23 -0
- package/dist/translations/fr.umd.js +23 -0
- package/dist/translations/gl.d.ts +8 -0
- package/dist/translations/gl.js +23 -0
- package/dist/translations/gl.umd.js +23 -0
- package/dist/translations/he.d.ts +8 -0
- package/dist/translations/he.js +23 -0
- package/dist/translations/he.umd.js +23 -0
- package/dist/translations/hi.d.ts +8 -0
- package/dist/translations/hi.js +23 -0
- package/dist/translations/hi.umd.js +23 -0
- package/dist/translations/hr.d.ts +8 -0
- package/dist/translations/hr.js +23 -0
- package/dist/translations/hr.umd.js +23 -0
- package/dist/translations/hu.d.ts +8 -0
- package/dist/translations/hu.js +23 -0
- package/dist/translations/hu.umd.js +23 -0
- package/dist/translations/id.d.ts +8 -0
- package/dist/translations/id.js +23 -0
- package/dist/translations/id.umd.js +23 -0
- package/dist/translations/it.d.ts +8 -0
- package/dist/translations/it.js +23 -0
- package/dist/translations/it.umd.js +23 -0
- package/dist/translations/ja.d.ts +8 -0
- package/dist/translations/ja.js +23 -0
- package/dist/translations/ja.umd.js +23 -0
- package/dist/translations/ko.d.ts +8 -0
- package/dist/translations/ko.js +23 -0
- package/dist/translations/ko.umd.js +23 -0
- package/dist/translations/lt.d.ts +8 -0
- package/dist/translations/lt.js +23 -0
- package/dist/translations/lt.umd.js +23 -0
- package/dist/translations/lv.d.ts +8 -0
- package/dist/translations/lv.js +23 -0
- package/dist/translations/lv.umd.js +23 -0
- package/dist/translations/ms.d.ts +8 -0
- package/dist/translations/ms.js +23 -0
- package/dist/translations/ms.umd.js +23 -0
- package/dist/translations/nl.d.ts +8 -0
- package/dist/translations/nl.js +23 -0
- package/dist/translations/nl.umd.js +23 -0
- package/dist/translations/no.d.ts +8 -0
- package/dist/translations/no.js +23 -0
- package/dist/translations/no.umd.js +23 -0
- package/dist/translations/pl.d.ts +8 -0
- package/dist/translations/pl.js +23 -0
- package/dist/translations/pl.umd.js +23 -0
- package/dist/translations/pt-br.d.ts +8 -0
- package/dist/translations/pt-br.js +23 -0
- package/dist/translations/pt-br.umd.js +23 -0
- package/dist/translations/pt.d.ts +8 -0
- package/dist/translations/pt.js +23 -0
- package/dist/translations/pt.umd.js +23 -0
- package/dist/translations/ro.d.ts +8 -0
- package/dist/translations/ro.js +23 -0
- package/dist/translations/ro.umd.js +23 -0
- package/dist/translations/ru.d.ts +8 -0
- package/dist/translations/ru.js +23 -0
- package/dist/translations/ru.umd.js +23 -0
- package/dist/translations/sk.d.ts +8 -0
- package/dist/translations/sk.js +23 -0
- package/dist/translations/sk.umd.js +23 -0
- package/dist/translations/sr-latn.d.ts +8 -0
- package/dist/translations/sr-latn.js +23 -0
- package/dist/translations/sr-latn.umd.js +23 -0
- package/dist/translations/sr.d.ts +8 -0
- package/dist/translations/sr.js +23 -0
- package/dist/translations/sr.umd.js +23 -0
- package/dist/translations/sv.d.ts +8 -0
- package/dist/translations/sv.js +23 -0
- package/dist/translations/sv.umd.js +23 -0
- package/dist/translations/th.d.ts +8 -0
- package/dist/translations/th.js +23 -0
- package/dist/translations/th.umd.js +23 -0
- package/dist/translations/tr.d.ts +8 -0
- package/dist/translations/tr.js +23 -0
- package/dist/translations/tr.umd.js +23 -0
- package/dist/translations/uk.d.ts +8 -0
- package/dist/translations/uk.js +23 -0
- package/dist/translations/uk.umd.js +23 -0
- package/dist/translations/uz.d.ts +8 -0
- package/dist/translations/uz.js +23 -0
- package/dist/translations/uz.umd.js +23 -0
- package/dist/translations/vi.d.ts +8 -0
- package/dist/translations/vi.js +23 -0
- package/dist/translations/vi.umd.js +23 -0
- package/dist/translations/zh-cn.d.ts +8 -0
- package/dist/translations/zh-cn.js +23 -0
- package/dist/translations/zh-cn.umd.js +23 -0
- package/dist/translations/zh.d.ts +8 -0
- package/dist/translations/zh.js +23 -0
- package/dist/translations/zh.umd.js +23 -0
- package/dist/types/augmentation.d.ts +27 -0
- package/dist/types/index.d.ts +17 -0
- package/dist/types/template.d.ts +119 -0
- package/dist/types/templatecommand.d.ts +27 -0
- package/dist/types/templateediting.d.ts +34 -0
- package/dist/types/templateui.d.ts +33 -0
- package/dist/types/ui/templatelistbuttonview.d.ts +108 -0
- package/dist/types/ui/templatelistitemview.d.ts +38 -0
- package/dist/types/ui/templatelistview.d.ts +42 -0
- package/lang/contexts.json +2 -1
- package/lang/translations/ar.po +4 -0
- package/lang/translations/bg.po +4 -0
- package/lang/translations/bn.po +4 -0
- package/lang/translations/ca.po +4 -0
- package/lang/translations/cs.po +4 -0
- package/lang/translations/da.po +4 -0
- package/lang/translations/de.po +4 -0
- package/lang/translations/el.po +4 -0
- package/lang/translations/en-au.po +4 -0
- package/lang/translations/en.po +4 -0
- package/lang/translations/es.po +4 -0
- package/lang/translations/et.po +4 -0
- package/lang/translations/fi.po +4 -0
- package/lang/translations/fr.po +4 -0
- package/lang/translations/gl.po +4 -0
- package/lang/translations/he.po +4 -0
- package/lang/translations/hi.po +4 -0
- package/lang/translations/hr.po +4 -0
- package/lang/translations/hu.po +4 -0
- package/lang/translations/id.po +4 -0
- package/lang/translations/it.po +4 -0
- package/lang/translations/ja.po +4 -0
- package/lang/translations/ko.po +4 -0
- package/lang/translations/lt.po +4 -0
- package/lang/translations/lv.po +4 -0
- package/lang/translations/ms.po +4 -0
- package/lang/translations/nl.po +4 -0
- package/lang/translations/no.po +4 -0
- package/lang/translations/pl.po +4 -0
- package/lang/translations/pt-br.po +4 -0
- package/lang/translations/pt.po +4 -0
- package/lang/translations/ro.po +4 -0
- package/lang/translations/ru.po +4 -0
- package/lang/translations/sk.po +4 -0
- package/lang/translations/sr-latn.po +4 -0
- package/lang/translations/sr.po +4 -0
- package/lang/translations/sv.po +4 -0
- package/lang/translations/th.po +4 -0
- package/lang/translations/tr.po +4 -0
- package/lang/translations/uk.po +4 -0
- package/lang/translations/uz.po +4 -0
- package/lang/translations/vi.po +4 -0
- package/lang/translations/zh-cn.po +4 -0
- package/lang/translations/zh.po +4 -0
- package/package.json +5 -4
- package/src/index.js +1 -1
- package/src/template.js +1 -1
- package/src/templatecommand.js +1 -1
- package/src/templateediting.js +1 -1
- package/src/templateui.js +1 -1
- package/src/ui/templatelistbuttonview.js +1 -1
- package/src/ui/templatelistitemview.d.ts +1 -1
- package/src/ui/templatelistitemview.js +1 -1
- package/src/ui/templatelistview.js +1 -1
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
(_0x1df663=>{const {sv:{dictionary:_0x85c848,getPluralForm:_0x459185}}={'sv':{'dictionary':{'Template':'Mall','Insert\x20template':'Infoga\x20mall','No\x20templates\x20available.':'Inga\x20mallar\x20finns.','No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.':'Inga\x20mallar\x20hittades\x20som\x20matchar\x20\x22%0\x22.','Please\x20try\x20a\x20different\x20phrase\x20or\x20check\x20the\x20spelling.':'Prova\x20en\x20annan\x20fras\x20eller\x20kontrollera\x20stavningen.','Search\x20template':'Sök\x20mall','%0\x20templates\x20found':'%0\x20mallar\x20hittades'},'getPluralForm':_0x43a114=>0x1!=_0x43a114}};_0x1df663['sv']||={'dictionary':{},'getPluralForm':null},_0x1df663['sv']['dictionary']=Object['assign'](_0x1df663['sv']['dictionary'],_0x85c848),_0x1df663['sv']['getPluralForm']=_0x459185;})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -0,0 +1,8 @@
|
|
|
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;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
export default{'th':{'dictionary':{'Template':'แม่แบบ','Insert\x20template':'แทรกเทมเพลต','No\x20templates\x20available.':'ไม่มีเทมเพลต','No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.':'ไม่พบเทมเพลตที่ตรงกับ\x20\x22%0\x22','Please\x20try\x20a\x20different\x20phrase\x20or\x20check\x20the\x20spelling.':'โปรดลองใช้วลีอื่นหรือตรวจสอบตัวสะกด','Search\x20template':'ค้นหาเทมเพลต','%0\x20templates\x20found':'พบเทมเพลต\x20%0\x20รายการ'},'getPluralForm':_0x458a16=>0x0}};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
(_0x366eea=>{const {th:{dictionary:_0x188fcc,getPluralForm:_0x179fdc}}={'th':{'dictionary':{'Template':'แม่แบบ','Insert\x20template':'แทรกเทมเพลต','No\x20templates\x20available.':'ไม่มีเทมเพลต','No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.':'ไม่พบเทมเพลตที่ตรงกับ\x20\x22%0\x22','Please\x20try\x20a\x20different\x20phrase\x20or\x20check\x20the\x20spelling.':'โปรดลองใช้วลีอื่นหรือตรวจสอบตัวสะกด','Search\x20template':'ค้นหาเทมเพลต','%0\x20templates\x20found':'พบเทมเพลต\x20%0\x20รายการ'},'getPluralForm':_0xae0c3c=>0x0}};_0x366eea['th']||={'dictionary':{},'getPluralForm':null},_0x366eea['th']['dictionary']=Object['assign'](_0x366eea['th']['dictionary'],_0x188fcc),_0x366eea['th']['getPluralForm']=_0x179fdc;})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -0,0 +1,8 @@
|
|
|
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;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
export default{'tr':{'dictionary':{'Template':'Şablon','Insert\x20template':'Şablon\x20ekle','No\x20templates\x20available.':'Kullanılabilir\x20şablon\x20yok.','No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.':'\x22%0\x22\x20ile\x20eşleşen\x20şablon\x20bulunamadı.','Please\x20try\x20a\x20different\x20phrase\x20or\x20check\x20the\x20spelling.':'Lütfen\x20farklı\x20bir\x20kelime\x20grubu\x20deneyin\x20veya\x20yazım\x20denetimi\x20yapın.','Search\x20template':'Şablon\x20ara','%0\x20templates\x20found':'%0\x20şablon\x20bulundu'},'getPluralForm':_0x4308f7=>_0x4308f7>0x1}};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
(_0x6d8b58=>{const {tr:{dictionary:_0x310e66,getPluralForm:_0x14cd7a}}={'tr':{'dictionary':{'Template':'Şablon','Insert\x20template':'Şablon\x20ekle','No\x20templates\x20available.':'Kullanılabilir\x20şablon\x20yok.','No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.':'\x22%0\x22\x20ile\x20eşleşen\x20şablon\x20bulunamadı.','Please\x20try\x20a\x20different\x20phrase\x20or\x20check\x20the\x20spelling.':'Lütfen\x20farklı\x20bir\x20kelime\x20grubu\x20deneyin\x20veya\x20yazım\x20denetimi\x20yapın.','Search\x20template':'Şablon\x20ara','%0\x20templates\x20found':'%0\x20şablon\x20bulundu'},'getPluralForm':_0x1c1a27=>_0x1c1a27>0x1}};_0x6d8b58['tr']||={'dictionary':{},'getPluralForm':null},_0x6d8b58['tr']['dictionary']=Object['assign'](_0x6d8b58['tr']['dictionary'],_0x310e66),_0x6d8b58['tr']['getPluralForm']=_0x14cd7a;})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -0,0 +1,8 @@
|
|
|
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;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
export default{'uk':{'dictionary':{'Template':'Шаблон','Insert\x20template':'Вставити\x20шаблон','No\x20templates\x20available.':'Немає\x20доступних\x20шаблонів','No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.':'Не\x20знайдено\x20шаблонів,\x20які\x20б\x20відповідали\x20\x22%0\x22.','Please\x20try\x20a\x20different\x20phrase\x20or\x20check\x20the\x20spelling.':'Будь\x20ласка,\x20спробуйте\x20іншу\x20фразу\x20або\x20перевірте\x20написання.','Search\x20template':'Шукати\x20шаблон','%0\x20templates\x20found':'Знайдено\x20%0\x20шаблонів'},'getPluralForm':_0x229b89=>_0x229b89%0x1==0x0&&_0x229b89%0xa==0x1&&_0x229b89%0x64!=0xb?0x0:_0x229b89%0x1==0x0&&_0x229b89%0xa>=0x2&&_0x229b89%0xa<=0x4&&(_0x229b89%0x64<0xc||_0x229b89%0x64>0xe)?0x1:_0x229b89%0x1==0x0&&(_0x229b89%0xa==0x0||_0x229b89%0xa>=0x5&&_0x229b89%0xa<=0x9||_0x229b89%0x64>=0xb&&_0x229b89%0x64<=0xe)?0x2:0x3}};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
(_0x5d43d6=>{const {uk:{dictionary:_0x116733,getPluralForm:_0x44dad9}}={'uk':{'dictionary':{'Template':'Шаблон','Insert\x20template':'Вставити\x20шаблон','No\x20templates\x20available.':'Немає\x20доступних\x20шаблонів','No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.':'Не\x20знайдено\x20шаблонів,\x20які\x20б\x20відповідали\x20\x22%0\x22.','Please\x20try\x20a\x20different\x20phrase\x20or\x20check\x20the\x20spelling.':'Будь\x20ласка,\x20спробуйте\x20іншу\x20фразу\x20або\x20перевірте\x20написання.','Search\x20template':'Шукати\x20шаблон','%0\x20templates\x20found':'Знайдено\x20%0\x20шаблонів'},'getPluralForm':_0x5e7374=>_0x5e7374%0x1==0x0&&_0x5e7374%0xa==0x1&&_0x5e7374%0x64!=0xb?0x0:_0x5e7374%0x1==0x0&&_0x5e7374%0xa>=0x2&&_0x5e7374%0xa<=0x4&&(_0x5e7374%0x64<0xc||_0x5e7374%0x64>0xe)?0x1:_0x5e7374%0x1==0x0&&(_0x5e7374%0xa==0x0||_0x5e7374%0xa>=0x5&&_0x5e7374%0xa<=0x9||_0x5e7374%0x64>=0xb&&_0x5e7374%0x64<=0xe)?0x2:0x3}};_0x5d43d6['uk']||={'dictionary':{},'getPluralForm':null},_0x5d43d6['uk']['dictionary']=Object['assign'](_0x5d43d6['uk']['dictionary'],_0x116733),_0x5d43d6['uk']['getPluralForm']=_0x44dad9;})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -0,0 +1,8 @@
|
|
|
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;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
export default{'uz':{'dictionary':{'Template':'','Insert\x20template':'Shablonni\x20kiritish','No\x20templates\x20available.':'Hech\x20qanday\x20shablon\x20mavjud\x20emas.','No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.':'','Please\x20try\x20a\x20different\x20phrase\x20or\x20check\x20the\x20spelling.':'Iltimos,\x20boshqa\x20iborani\x20sinab\x20ko\x27ring\x20yoki\x20imloni\x20tekshiring.','Search\x20template':'Shablonni\x20qidirish','%0\x20templates\x20found':''},'getPluralForm':_0x52321e=>0x0}};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
(_0x2ab887=>{const {uz:{dictionary:_0x5e9b2e,getPluralForm:_0x537021}}={'uz':{'dictionary':{'Template':'','Insert\x20template':'Shablonni\x20kiritish','No\x20templates\x20available.':'Hech\x20qanday\x20shablon\x20mavjud\x20emas.','No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.':'','Please\x20try\x20a\x20different\x20phrase\x20or\x20check\x20the\x20spelling.':'Iltimos,\x20boshqa\x20iborani\x20sinab\x20ko\x27ring\x20yoki\x20imloni\x20tekshiring.','Search\x20template':'Shablonni\x20qidirish','%0\x20templates\x20found':''},'getPluralForm':_0x2d2436=>0x0}};_0x2ab887['uz']||={'dictionary':{},'getPluralForm':null},_0x2ab887['uz']['dictionary']=Object['assign'](_0x2ab887['uz']['dictionary'],_0x5e9b2e),_0x2ab887['uz']['getPluralForm']=_0x537021;})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -0,0 +1,8 @@
|
|
|
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;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
export default{'vi':{'dictionary':{'Template':'Mẫu','Insert\x20template':'Chèn\x20mẫu\x20sẵn','No\x20templates\x20available.':'Không\x20có\x20mẫu\x20sẵn\x20nào.','No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.':'Không\x20tìm\x20thấy\x20mẫu\x20sẵn\x20nào\x20khớp\x20với\x20\x22%0\x22.','Please\x20try\x20a\x20different\x20phrase\x20or\x20check\x20the\x20spelling.':'Vui\x20lòng\x20thử\x20một\x20cụm\x20từ\x20khác\x20hoặc\x20kiểm\x20tra\x20lại\x20cụm\x20từ.','Search\x20template':'Tìm\x20mẫu\x20sẵn','%0\x20templates\x20found':'Đã\x20tìm\x20thấy\x20%0\x20mẫu'},'getPluralForm':_0x5eb515=>0x0}};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
(_0x392cce=>{const {vi:{dictionary:_0x5c70e6,getPluralForm:_0x509c2e}}={'vi':{'dictionary':{'Template':'Mẫu','Insert\x20template':'Chèn\x20mẫu\x20sẵn','No\x20templates\x20available.':'Không\x20có\x20mẫu\x20sẵn\x20nào.','No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.':'Không\x20tìm\x20thấy\x20mẫu\x20sẵn\x20nào\x20khớp\x20với\x20\x22%0\x22.','Please\x20try\x20a\x20different\x20phrase\x20or\x20check\x20the\x20spelling.':'Vui\x20lòng\x20thử\x20một\x20cụm\x20từ\x20khác\x20hoặc\x20kiểm\x20tra\x20lại\x20cụm\x20từ.','Search\x20template':'Tìm\x20mẫu\x20sẵn','%0\x20templates\x20found':'Đã\x20tìm\x20thấy\x20%0\x20mẫu'},'getPluralForm':_0x9cf55f=>0x0}};_0x392cce['vi']||={'dictionary':{},'getPluralForm':null},_0x392cce['vi']['dictionary']=Object['assign'](_0x392cce['vi']['dictionary'],_0x5c70e6),_0x392cce['vi']['getPluralForm']=_0x509c2e;})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -0,0 +1,8 @@
|
|
|
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;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
export default{'zh-cn':{'dictionary':{'Template':'模板','Insert\x20template':'插入模板','No\x20templates\x20available.':'无可用的模板','No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.':'未找到与\x22%0\x22匹配的模板。','Please\x20try\x20a\x20different\x20phrase\x20or\x20check\x20the\x20spelling.':'请尝试使用不同的短语或检查拼写。','Search\x20template':'搜索模板','%0\x20templates\x20found':'找到\x20%0\x20个模板'},'getPluralForm':_0x2bf198=>0x0}};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
(_0x391ce0=>{const {'zh-cn':{dictionary:_0x26425c,getPluralForm:_0x1bf6f7}}={'zh-cn':{'dictionary':{'Template':'模板','Insert\x20template':'插入模板','No\x20templates\x20available.':'无可用的模板','No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.':'未找到与\x22%0\x22匹配的模板。','Please\x20try\x20a\x20different\x20phrase\x20or\x20check\x20the\x20spelling.':'请尝试使用不同的短语或检查拼写。','Search\x20template':'搜索模板','%0\x20templates\x20found':'找到\x20%0\x20个模板'},'getPluralForm':_0x28a4d5=>0x0}};_0x391ce0['zh-cn']||={'dictionary':{},'getPluralForm':null},_0x391ce0['zh-cn']['dictionary']=Object['assign'](_0x391ce0['zh-cn']['dictionary'],_0x26425c),_0x391ce0['zh-cn']['getPluralForm']=_0x1bf6f7;})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -0,0 +1,8 @@
|
|
|
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;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
export default{'zh':{'dictionary':{'Template':'範本','Insert\x20template':'插入範本','No\x20templates\x20available.':'無可用範本。','No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.':'找不到符合「%0」的範本','Please\x20try\x20a\x20different\x20phrase\x20or\x20check\x20the\x20spelling.':'請嘗試其他詞彙或確認拼寫是否正確。','Search\x20template':'搜尋範本','%0\x20templates\x20found':'已找到\x20%0\x20個範本'},'getPluralForm':_0x51d395=>0x0}};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
(_0x11c4b4=>{const {zh:{dictionary:_0x2e6cc3,getPluralForm:_0x4a396e}}={'zh':{'dictionary':{'Template':'範本','Insert\x20template':'插入範本','No\x20templates\x20available.':'無可用範本。','No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.':'找不到符合「%0」的範本','Please\x20try\x20a\x20different\x20phrase\x20or\x20check\x20the\x20spelling.':'請嘗試其他詞彙或確認拼寫是否正確。','Search\x20template':'搜尋範本','%0\x20templates\x20found':'已找到\x20%0\x20個範本'},'getPluralForm':_0x56d399=>0x0}};_0x11c4b4['zh']||={'dictionary':{},'getPluralForm':null},_0x11c4b4['zh']['dictionary']=Object['assign'](_0x11c4b4['zh']['dictionary'],_0x2e6cc3),_0x11c4b4['zh']['getPluralForm']=_0x4a396e;})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -0,0 +1,27 @@
|
|
|
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 { Template, TemplateCommand, TemplateEditing, TemplateUI, TemplateConfig } from './index.js';
|
|
10
|
+
declare module '@ckeditor/ckeditor5-core' {
|
|
11
|
+
interface PluginsMap {
|
|
12
|
+
[Template.pluginName]: Template;
|
|
13
|
+
[TemplateEditing.pluginName]: TemplateEditing;
|
|
14
|
+
[TemplateUI.pluginName]: TemplateUI;
|
|
15
|
+
}
|
|
16
|
+
interface CommandsMap {
|
|
17
|
+
insertTemplate: TemplateCommand;
|
|
18
|
+
}
|
|
19
|
+
interface EditorConfig {
|
|
20
|
+
/**
|
|
21
|
+
* The configuration of the {@link module:template/template~Template} feature.
|
|
22
|
+
*
|
|
23
|
+
* Read more in {@link module:template/template~TemplateConfig}.
|
|
24
|
+
*/
|
|
25
|
+
template?: TemplateConfig;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
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 template
|
|
11
|
+
*/
|
|
12
|
+
export { default as Template } from './template.js';
|
|
13
|
+
export { default as TemplateCommand } from './templatecommand.js';
|
|
14
|
+
export { default as TemplateEditing } from './templateediting.js';
|
|
15
|
+
export { default as TemplateUI } from './templateui.js';
|
|
16
|
+
export type { TemplateConfig, TemplateDefinition } from './template.js';
|
|
17
|
+
import './augmentation.js';
|
|
@@ -0,0 +1,119 @@
|
|
|
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 template/template
|
|
11
|
+
* @publicApi
|
|
12
|
+
*/
|
|
13
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
14
|
+
import TemplateEditing from './templateediting.js';
|
|
15
|
+
import TemplateUI from './templateui.js';
|
|
16
|
+
/**
|
|
17
|
+
* The template feature.
|
|
18
|
+
*
|
|
19
|
+
* For a detailed overview, check the {@glink features/template Content templates} feature guide.
|
|
20
|
+
*/
|
|
21
|
+
export default class Template extends Plugin {
|
|
22
|
+
/**
|
|
23
|
+
* @inheritDoc
|
|
24
|
+
*/
|
|
25
|
+
static get requires(): readonly [typeof TemplateEditing, typeof TemplateUI];
|
|
26
|
+
/**
|
|
27
|
+
* @inheritDoc
|
|
28
|
+
*/
|
|
29
|
+
static get pluginName(): "Template";
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* The configuration of the template feature.
|
|
33
|
+
*
|
|
34
|
+
* ```ts
|
|
35
|
+
* ClassicEditor
|
|
36
|
+
* .create( {
|
|
37
|
+
* template: ... // Template feature configuration.
|
|
38
|
+
* } )
|
|
39
|
+
* .then( ... )
|
|
40
|
+
* .catch( ... );
|
|
41
|
+
*```
|
|
42
|
+
* See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
|
|
43
|
+
*/
|
|
44
|
+
export interface TemplateConfig {
|
|
45
|
+
/**
|
|
46
|
+
* A list of all template definitions to be displayed in the `'insertTemplate'` UI dropdown.
|
|
47
|
+
*
|
|
48
|
+
* An example configuration:
|
|
49
|
+
*
|
|
50
|
+
* ```json
|
|
51
|
+
* {
|
|
52
|
+
* template: {
|
|
53
|
+
* definitions: [
|
|
54
|
+
* {
|
|
55
|
+
* title: 'Issue acknowledgement (plain text)',
|
|
56
|
+
* data: 'Dear customer, thank you for your report! The issue is currently being worked on by our development team.'
|
|
57
|
+
* },
|
|
58
|
+
* {
|
|
59
|
+
* title: 'Signature (multi-line)',
|
|
60
|
+
* data: '<p><b>Jane Doe</b></p><p>Marketing Specialist at <a href="https://example.com>Example.com</a></p>',
|
|
61
|
+
* description: 'Author signature with the link to the website.'
|
|
62
|
+
* },
|
|
63
|
+
* {
|
|
64
|
+
* title: 'Example table',
|
|
65
|
+
* data: '<table><tr><td>Cell #1</td><td></td></tr><tr><td></td><td>Cell #2</td></tr></table>',
|
|
66
|
+
* icon: '<svg viewBox="0 0 45 45" xmlns="http://www.w3.org/2000/svg">...</svg>',
|
|
67
|
+
* description: 'This template inserts a table.'
|
|
68
|
+
* },
|
|
69
|
+
* {
|
|
70
|
+
* title: 'Insert userAgent data',
|
|
71
|
+
* data: navigator.userAgent
|
|
72
|
+
* },
|
|
73
|
+
* {
|
|
74
|
+
* title: 'Insert translate to English link (function)',
|
|
75
|
+
* data: () => '<a href="' + location.href + '/en" title="Translate to English">Translate to English</a>'
|
|
76
|
+
* },
|
|
77
|
+
* // ...
|
|
78
|
+
* ]
|
|
79
|
+
* }
|
|
80
|
+
* }
|
|
81
|
+
* ```
|
|
82
|
+
*/
|
|
83
|
+
definitions?: Array<TemplateDefinition>;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* An object describing a single template definition.
|
|
87
|
+
*
|
|
88
|
+
* ```json
|
|
89
|
+
* {
|
|
90
|
+
* // Mandatory fields:
|
|
91
|
+
* title: 'Example template',
|
|
92
|
+
* data: '<table><tr><td>Cell #1</td><td></td></tr><tr><td></td><td>Cell #2</td></tr></table>',
|
|
93
|
+
*
|
|
94
|
+
* // Optional configuration:
|
|
95
|
+
* icon: '<svg viewBox="0 0 45 45" xmlns="http://www.w3.org/2000/svg">...</svg>',
|
|
96
|
+
* description: 'This template inserts a table.'
|
|
97
|
+
* }
|
|
98
|
+
* ```
|
|
99
|
+
*/
|
|
100
|
+
export type TemplateDefinition = {
|
|
101
|
+
/**
|
|
102
|
+
* The title of the template.
|
|
103
|
+
*/
|
|
104
|
+
title: string;
|
|
105
|
+
/**
|
|
106
|
+
* An HTML string to be inserted into the document or a callback function that returns an HTML string
|
|
107
|
+
* to be inserted into the document when the template is selected.
|
|
108
|
+
*/
|
|
109
|
+
data: (() => string) | string;
|
|
110
|
+
/**
|
|
111
|
+
* An optional SVG string representing the icon of the template. The default size of the icon is 45x45 pixels.
|
|
112
|
+
* Be sure to set the correct `viewBox` attribute in the icon source. If not provided, a generic icon will be used instead.
|
|
113
|
+
*/
|
|
114
|
+
icon?: string;
|
|
115
|
+
/**
|
|
116
|
+
* An optional long description of the template presented to the users.
|
|
117
|
+
*/
|
|
118
|
+
description?: string;
|
|
119
|
+
};
|