@ckeditor/ckeditor5-slash-command 39.0.0 → 39.0.2
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/LICENSE.md +2 -2
- package/README.md +7 -7
- package/build/slash-command.js +1 -1
- package/lang/translations/ar.po +1 -0
- package/lang/translations/bg.po +1 -0
- package/lang/translations/bn.po +1 -0
- package/lang/translations/ca.po +1 -0
- package/lang/translations/cs.po +1 -0
- package/lang/translations/da.po +1 -0
- package/lang/translations/de.po +1 -0
- package/lang/translations/el.po +1 -0
- package/lang/translations/en-au.po +1 -0
- package/lang/translations/en.po +1 -0
- package/lang/translations/es.po +1 -0
- package/lang/translations/et.po +1 -0
- package/lang/translations/fi.po +1 -0
- package/lang/translations/fr.po +1 -0
- package/lang/translations/gl.po +1 -0
- package/lang/translations/he.po +1 -0
- package/lang/translations/hi.po +1 -0
- package/lang/translations/hr.po +1 -0
- package/lang/translations/hu.po +1 -0
- package/lang/translations/id.po +1 -0
- package/lang/translations/it.po +1 -0
- package/lang/translations/ja.po +1 -0
- package/lang/translations/ko.po +1 -0
- package/lang/translations/lt.po +1 -0
- package/lang/translations/lv.po +1 -0
- package/lang/translations/ms.po +1 -0
- package/lang/translations/nl.po +1 -0
- package/lang/translations/no.po +1 -0
- package/lang/translations/pl.po +1 -0
- package/lang/translations/pt-br.po +1 -0
- package/lang/translations/pt.po +1 -0
- package/lang/translations/ro.po +1 -0
- package/lang/translations/ru.po +1 -0
- package/lang/translations/sk.po +1 -0
- package/lang/translations/sr.po +1 -0
- package/lang/translations/sv.po +1 -0
- package/lang/translations/th.po +1 -0
- package/lang/translations/tr.po +1 -0
- package/lang/translations/uk.po +1 -0
- package/lang/translations/uz.po +1 -0
- package/lang/translations/vi.po +1 -0
- package/lang/translations/zh-cn.po +1 -0
- package/lang/translations/zh.po +1 -0
- package/package.json +13 -17
- package/src/slashcommand.js +1 -1
- package/src/slashcommandconfig.js +1 -1
- package/src/slashcommandediting.js +1 -1
- package/src/slashcommandui.js +1 -1
- package/src/ui/slashcommandbuttonview.js +1 -1
package/lang/translations/ja.po
CHANGED
|
@@ -15,6 +15,7 @@ msgstr ""
|
|
|
15
15
|
"Language-Team: Japanese (https://app.transifex.com/ckeditor/teams/11143/ja/)\n"
|
|
16
16
|
"Language: ja\n"
|
|
17
17
|
"Plural-Forms: nplurals=1; plural=0;\n"
|
|
18
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
|
18
19
|
|
|
19
20
|
msgctxt "Description of the button that creates a block quote."
|
|
20
21
|
msgid "Create a block quote"
|
package/lang/translations/ko.po
CHANGED
|
@@ -15,6 +15,7 @@ msgstr ""
|
|
|
15
15
|
"Language-Team: Korean (https://app.transifex.com/ckeditor/teams/11143/ko/)\n"
|
|
16
16
|
"Language: ko\n"
|
|
17
17
|
"Plural-Forms: nplurals=1; plural=0;\n"
|
|
18
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
|
18
19
|
|
|
19
20
|
msgctxt "Description of the button that creates a block quote."
|
|
20
21
|
msgid "Create a block quote"
|
package/lang/translations/lt.po
CHANGED
|
@@ -15,6 +15,7 @@ msgstr ""
|
|
|
15
15
|
"Language-Team: Lithuanian (https://app.transifex.com/ckeditor/teams/11143/lt/)\n"
|
|
16
16
|
"Language: lt\n"
|
|
17
17
|
"Plural-Forms: nplurals=4; plural=(n % 10 == 1 && (n % 100 > 19 || n % 100 < 11) ? 0 : (n % 10 >= 2 && n % 10 <=9) && (n % 100 > 19 || n % 100 < 11) ? 1 : n % 1 != 0 ? 2: 3);\n"
|
|
18
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
|
18
19
|
|
|
19
20
|
msgctxt "Description of the button that creates a block quote."
|
|
20
21
|
msgid "Create a block quote"
|
package/lang/translations/lv.po
CHANGED
|
@@ -15,6 +15,7 @@ msgstr ""
|
|
|
15
15
|
"Language-Team: Latvian (https://app.transifex.com/ckeditor/teams/11143/lv/)\n"
|
|
16
16
|
"Language: lv\n"
|
|
17
17
|
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : 2);\n"
|
|
18
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
|
18
19
|
|
|
19
20
|
msgctxt "Description of the button that creates a block quote."
|
|
20
21
|
msgid "Create a block quote"
|
package/lang/translations/ms.po
CHANGED
|
@@ -15,6 +15,7 @@ msgstr ""
|
|
|
15
15
|
"Language-Team: Malay (https://app.transifex.com/ckeditor/teams/11143/ms/)\n"
|
|
16
16
|
"Language: ms\n"
|
|
17
17
|
"Plural-Forms: nplurals=1; plural=0;\n"
|
|
18
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
|
18
19
|
|
|
19
20
|
msgctxt "Description of the button that creates a block quote."
|
|
20
21
|
msgid "Create a block quote"
|
package/lang/translations/nl.po
CHANGED
|
@@ -15,6 +15,7 @@ msgstr ""
|
|
|
15
15
|
"Language-Team: Dutch (https://app.transifex.com/ckeditor/teams/11143/nl/)\n"
|
|
16
16
|
"Language: nl\n"
|
|
17
17
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
|
18
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
|
18
19
|
|
|
19
20
|
msgctxt "Description of the button that creates a block quote."
|
|
20
21
|
msgid "Create a block quote"
|
package/lang/translations/no.po
CHANGED
|
@@ -15,6 +15,7 @@ msgstr ""
|
|
|
15
15
|
"Language-Team: Norwegian (https://app.transifex.com/ckeditor/teams/11143/no/)\n"
|
|
16
16
|
"Language: no\n"
|
|
17
17
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
|
18
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
|
18
19
|
|
|
19
20
|
msgctxt "Description of the button that creates a block quote."
|
|
20
21
|
msgid "Create a block quote"
|
package/lang/translations/pl.po
CHANGED
|
@@ -15,6 +15,7 @@ msgstr ""
|
|
|
15
15
|
"Language-Team: Polish (https://app.transifex.com/ckeditor/teams/11143/pl/)\n"
|
|
16
16
|
"Language: pl\n"
|
|
17
17
|
"Plural-Forms: nplurals=4; plural=(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);\n"
|
|
18
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
|
18
19
|
|
|
19
20
|
msgctxt "Description of the button that creates a block quote."
|
|
20
21
|
msgid "Create a block quote"
|
|
@@ -15,6 +15,7 @@ msgstr ""
|
|
|
15
15
|
"Language-Team: Portuguese (Brazil) (https://app.transifex.com/ckeditor/teams/11143/pt_BR/)\n"
|
|
16
16
|
"Language: pt_BR\n"
|
|
17
17
|
"Plural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n"
|
|
18
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
|
18
19
|
|
|
19
20
|
msgctxt "Description of the button that creates a block quote."
|
|
20
21
|
msgid "Create a block quote"
|
package/lang/translations/pt.po
CHANGED
|
@@ -15,6 +15,7 @@ msgstr ""
|
|
|
15
15
|
"Language-Team: Portuguese (https://app.transifex.com/ckeditor/teams/11143/pt/)\n"
|
|
16
16
|
"Language: pt\n"
|
|
17
17
|
"Plural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n"
|
|
18
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
|
18
19
|
|
|
19
20
|
msgctxt "Description of the button that creates a block quote."
|
|
20
21
|
msgid "Create a block quote"
|
package/lang/translations/ro.po
CHANGED
|
@@ -15,6 +15,7 @@ msgstr ""
|
|
|
15
15
|
"Language-Team: Romanian (https://app.transifex.com/ckeditor/teams/11143/ro/)\n"
|
|
16
16
|
"Language: ro\n"
|
|
17
17
|
"Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?2:1));\n"
|
|
18
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
|
18
19
|
|
|
19
20
|
msgctxt "Description of the button that creates a block quote."
|
|
20
21
|
msgid "Create a block quote"
|
package/lang/translations/ru.po
CHANGED
|
@@ -15,6 +15,7 @@ msgstr ""
|
|
|
15
15
|
"Language-Team: Russian (https://app.transifex.com/ckeditor/teams/11143/ru/)\n"
|
|
16
16
|
"Language: ru\n"
|
|
17
17
|
"Plural-Forms: nplurals=4; plural=(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);\n"
|
|
18
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
|
18
19
|
|
|
19
20
|
msgctxt "Description of the button that creates a block quote."
|
|
20
21
|
msgid "Create a block quote"
|
package/lang/translations/sk.po
CHANGED
|
@@ -15,6 +15,7 @@ msgstr ""
|
|
|
15
15
|
"Language-Team: Slovak (https://app.transifex.com/ckeditor/teams/11143/sk/)\n"
|
|
16
16
|
"Language: sk\n"
|
|
17
17
|
"Plural-Forms: nplurals=4; plural=(n % 1 == 0 && n == 1 ? 0 : n % 1 == 0 && n >= 2 && n <= 4 ? 1 : n % 1 != 0 ? 2: 3);\n"
|
|
18
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
|
18
19
|
|
|
19
20
|
msgctxt "Description of the button that creates a block quote."
|
|
20
21
|
msgid "Create a block quote"
|
package/lang/translations/sr.po
CHANGED
|
@@ -15,6 +15,7 @@ msgstr ""
|
|
|
15
15
|
"Language-Team: Serbian (https://app.transifex.com/ckeditor/teams/11143/sr/)\n"
|
|
16
16
|
"Language: sr\n"
|
|
17
17
|
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
|
|
18
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
|
18
19
|
|
|
19
20
|
msgctxt "Description of the button that creates a block quote."
|
|
20
21
|
msgid "Create a block quote"
|
package/lang/translations/sv.po
CHANGED
|
@@ -15,6 +15,7 @@ msgstr ""
|
|
|
15
15
|
"Language-Team: Swedish (https://app.transifex.com/ckeditor/teams/11143/sv/)\n"
|
|
16
16
|
"Language: sv\n"
|
|
17
17
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
|
18
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
|
18
19
|
|
|
19
20
|
msgctxt "Description of the button that creates a block quote."
|
|
20
21
|
msgid "Create a block quote"
|
package/lang/translations/th.po
CHANGED
|
@@ -15,6 +15,7 @@ msgstr ""
|
|
|
15
15
|
"Language-Team: Thai (https://app.transifex.com/ckeditor/teams/11143/th/)\n"
|
|
16
16
|
"Language: th\n"
|
|
17
17
|
"Plural-Forms: nplurals=1; plural=0;\n"
|
|
18
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
|
18
19
|
|
|
19
20
|
msgctxt "Description of the button that creates a block quote."
|
|
20
21
|
msgid "Create a block quote"
|
package/lang/translations/tr.po
CHANGED
|
@@ -15,6 +15,7 @@ msgstr ""
|
|
|
15
15
|
"Language-Team: Turkish (https://app.transifex.com/ckeditor/teams/11143/tr/)\n"
|
|
16
16
|
"Language: tr\n"
|
|
17
17
|
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
|
18
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
|
18
19
|
|
|
19
20
|
msgctxt "Description of the button that creates a block quote."
|
|
20
21
|
msgid "Create a block quote"
|
package/lang/translations/uk.po
CHANGED
|
@@ -15,6 +15,7 @@ msgstr ""
|
|
|
15
15
|
"Language-Team: Ukrainian (https://app.transifex.com/ckeditor/teams/11143/uk/)\n"
|
|
16
16
|
"Language: uk\n"
|
|
17
17
|
"Plural-Forms: nplurals=4; plural=(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);\n"
|
|
18
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
|
18
19
|
|
|
19
20
|
msgctxt "Description of the button that creates a block quote."
|
|
20
21
|
msgid "Create a block quote"
|
package/lang/translations/uz.po
CHANGED
|
@@ -15,6 +15,7 @@ msgstr ""
|
|
|
15
15
|
"Language-Team: Uzbek (https://app.transifex.com/ckeditor/teams/11143/uz/)\n"
|
|
16
16
|
"Language: uz\n"
|
|
17
17
|
"Plural-Forms: nplurals=1; plural=0;\n"
|
|
18
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
|
18
19
|
|
|
19
20
|
msgctxt "Description of the button that creates a block quote."
|
|
20
21
|
msgid "Create a block quote"
|
package/lang/translations/vi.po
CHANGED
|
@@ -15,6 +15,7 @@ msgstr ""
|
|
|
15
15
|
"Language-Team: Vietnamese (https://app.transifex.com/ckeditor/teams/11143/vi/)\n"
|
|
16
16
|
"Language: vi\n"
|
|
17
17
|
"Plural-Forms: nplurals=1; plural=0;\n"
|
|
18
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
|
18
19
|
|
|
19
20
|
msgctxt "Description of the button that creates a block quote."
|
|
20
21
|
msgid "Create a block quote"
|
|
@@ -15,6 +15,7 @@ msgstr ""
|
|
|
15
15
|
"Language-Team: Chinese (China) (https://app.transifex.com/ckeditor/teams/11143/zh_CN/)\n"
|
|
16
16
|
"Language: zh_CN\n"
|
|
17
17
|
"Plural-Forms: nplurals=1; plural=0;\n"
|
|
18
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
|
18
19
|
|
|
19
20
|
msgctxt "Description of the button that creates a block quote."
|
|
20
21
|
msgid "Create a block quote"
|
package/lang/translations/zh.po
CHANGED
|
@@ -15,6 +15,7 @@ msgstr ""
|
|
|
15
15
|
"Language-Team: Chinese (Taiwan) (https://app.transifex.com/ckeditor/teams/11143/zh_TW/)\n"
|
|
16
16
|
"Language: zh_TW\n"
|
|
17
17
|
"Plural-Forms: nplurals=1; plural=0;\n"
|
|
18
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
|
18
19
|
|
|
19
20
|
msgctxt "Description of the button that creates a block quote."
|
|
20
21
|
msgid "Create a block quote"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-slash-command",
|
|
3
|
-
"version": "39.0.
|
|
3
|
+
"version": "39.0.2",
|
|
4
4
|
"description": "Slash command feature for CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -11,22 +11,18 @@
|
|
|
11
11
|
],
|
|
12
12
|
"main": "src/index.js",
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@ckeditor/ckeditor5-ckbox": "39.0.
|
|
15
|
-
"@ckeditor/ckeditor5-ckfinder": "39.0.
|
|
16
|
-
"@ckeditor/ckeditor5-code-block": "39.0.
|
|
17
|
-
"@ckeditor/ckeditor5-heading": "39.0.
|
|
18
|
-
"@ckeditor/ckeditor5-horizontal-line": "39.0.
|
|
19
|
-
"@ckeditor/ckeditor5-html-embed": "39.0.
|
|
20
|
-
"@ckeditor/ckeditor5-indent": "39.0.
|
|
21
|
-
"@ckeditor/ckeditor5-list": "39.0.
|
|
22
|
-
"@ckeditor/ckeditor5-table": "39.0.
|
|
23
|
-
"@ckeditor/ckeditor5-document-outline": "39.0.
|
|
24
|
-
"@ckeditor/ckeditor5-ui": "39.0.
|
|
25
|
-
"ckeditor5": "39.0.
|
|
26
|
-
},
|
|
27
|
-
"engines": {
|
|
28
|
-
"node": ">=16.0.0",
|
|
29
|
-
"npm": ">=5.7.1"
|
|
14
|
+
"@ckeditor/ckeditor5-ckbox": "39.0.2",
|
|
15
|
+
"@ckeditor/ckeditor5-ckfinder": "39.0.2",
|
|
16
|
+
"@ckeditor/ckeditor5-code-block": "39.0.2",
|
|
17
|
+
"@ckeditor/ckeditor5-heading": "39.0.2",
|
|
18
|
+
"@ckeditor/ckeditor5-horizontal-line": "39.0.2",
|
|
19
|
+
"@ckeditor/ckeditor5-html-embed": "39.0.2",
|
|
20
|
+
"@ckeditor/ckeditor5-indent": "39.0.2",
|
|
21
|
+
"@ckeditor/ckeditor5-list": "39.0.2",
|
|
22
|
+
"@ckeditor/ckeditor5-table": "39.0.2",
|
|
23
|
+
"@ckeditor/ckeditor5-document-outline": "39.0.2",
|
|
24
|
+
"@ckeditor/ckeditor5-ui": "39.0.2",
|
|
25
|
+
"ckeditor5": "39.0.2"
|
|
30
26
|
},
|
|
31
27
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
32
28
|
"author": "CKSource (http://cksource.com/)",
|
package/src/slashcommand.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x71d8=['requires','SlashCommand','Mention','pluginName'];(function(_0x4a18b8,_0x71d8e3){var _0x374325=function(_0x5eef89){while(--_0x5eef89){_0x4a18b8['push'](_0x4a18b8['shift']());}};_0x374325(++_0x71d8e3);}(_0x71d8,0x19b));var _0x3743=function(_0x4a18b8,_0x71d8e3){_0x4a18b8=_0x4a18b8-0x0;var _0x374325=_0x71d8[_0x4a18b8];return _0x374325;};import{Plugin as _0x1b0e11}from'ckeditor5/src/core';import _0x302a47 from'./slashcommandediting';import _0x5d3d09 from'./slashcommandui';export default class o extends _0x1b0e11{static get[_0x3743('0x1')](){return[_0x3743('0x3'),_0x302a47,_0x5d3d09];}static get[_0x3743('0x0')](){return _0x3743('0x2');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x36ec4e,icons as _0x595446}from'ckeditor5/src/core';import{CKEditorError as _0x2bd1ad}from'ckeditor5/src/utils';import _0x70907 from'@ckeditor/ckeditor5-list/theme/icons/bulletedlist.svg';import _0x3a4d30 from'@ckeditor/ckeditor5-code-block/theme/icons/codeblock.svg';import _0x9540ba from'@ckeditor/ckeditor5-ckbox/theme/icons/browse-files.svg';import _0x32e604 from'@ckeditor/ckeditor5-ckfinder/theme/icons/browse-files.svg';import _0x5bbf3f from'@ckeditor/ckeditor5-heading/theme/icons/heading1.svg';import _0x551f91 from'@ckeditor/ckeditor5-heading/theme/icons/heading2.svg';import _0x299b52 from'@ckeditor/ckeditor5-heading/theme/icons/heading3.svg';import _0x14fbd9 from'@ckeditor/ckeditor5-heading/theme/icons/heading4.svg';import _0xa0681 from'@ckeditor/ckeditor5-heading/theme/icons/heading5.svg';import _0x3206af from'@ckeditor/ckeditor5-heading/theme/icons/heading6.svg';import _0x441d56 from'@ckeditor/ckeditor5-horizontal-line/theme/icons/horizontalline.svg';import _0x2b2ab7 from'@ckeditor/ckeditor5-html-embed/theme/icons/html.svg';import _0x138109 from'@ckeditor/ckeditor5-indent/theme/icons/indent.svg';import _0x9b1d09 from'@ckeditor/ckeditor5-table/theme/icons/table.svg';import _0x27a7bd from'@ckeditor/ckeditor5-list/theme/icons/numberedlist.svg';import _0x4dedb5 from'@ckeditor/ckeditor5-indent/theme/icons/outdent.svg';import _0x13aff7 from'@ckeditor/ckeditor5-document-outline/theme/icons/table-of-contents.svg';import _0x22d664 from'@ckeditor/ckeditor5-list/theme/icons/todolist.svg';import'./slashcommandeditorconfig';export default class T extends _0x36ec4e{static get['pluginName'](){return'SlashCommandConfig';}constructor(_0x1c1615){super(_0x1c1615),this['_allowedCommands']=null;}['afterInit'](){const _0xd1b384=this['editor']['config']['get']('slashCommand.removeCommands')||[],_0x5480b8=function(_0x255b17){let _0x19c759=['heading4','heading5','heading6'];if(_0x255b17){const _0x3a5a7a=_0x255b17['map'](_0x40d88a=>_0x40d88a['model']);_0x19c759=['heading1','heading2','heading3','heading4','heading5','heading6']['filter'](_0x5c4e00=>!_0x3a5a7a['includes'](_0x5c4e00));}return _0x19c759;}(this['editor']['config']['get']('heading.options'));let _0x33dd98=this['getDefaultCommands']()['filter'](_0x59838d=>!_0x5480b8['includes'](_0x59838d['id']))['filter'](_0x5db3aa=>!_0xd1b384['includes'](_0x5db3aa['commandName']));const _0x559812=this['editor']['config']['get']('slashCommand.extraCommands');_0x559812&&_0x559812['length']&&(_0x33dd98=_0x33dd98['concat'](_0x559812));const _0x1ffdf8=this['editor']['config']['get']('template.definitions');_0x1ffdf8&&_0x1ffdf8['length']&&(_0x33dd98=_0x33dd98['concat'](function(_0xc0a0b4){return _0xc0a0b4['map'](_0x3ec27c=>{const {title:_0xd441d1,icon:_0xa700e6,description:_0x588e7f,data:_0x1a90d9}=_0x3ec27c,_0x4bf18e={'id':H(_0xd441d1,'template'),'commandName':'insertTemplate','execute':_0x592cfe=>{_0x592cfe['execute']('insertTemplate',_0x1a90d9);},'description':_0x588e7f,'icon':_0xa700e6,'title':_0xd441d1};return _0xa700e6&&(_0x4bf18e['isIconColorInherited']=!0x1),_0x4bf18e;});}(_0x1ffdf8)));const _0x14c765=this['editor']['config']['get']('style.definitions');_0x14c765&&_0x14c765['length']&&(_0x33dd98=_0x33dd98['concat'](function(_0x391323){return _0x391323['map'](_0x5cd7d2=>({'id':H(_0x5cd7d2['name'],'style'),'commandName':'style','execute':_0x3b2263=>{_0x3b2263['execute']('style',{'styleName':_0x5cd7d2['name']});},'isEnabled':_0x10a288=>{const _0x34c30f=_0x10a288['commands']['get']('style');return _0x34c30f['isEnabled']&&_0x34c30f['enabledStyles']['includes'](_0x5cd7d2['name']);},'title':_0x5cd7d2['name']}));}(_0x14c765)));const _0x42397c=_0x33dd98['filter'](_0x139b41=>!_0x139b41['commandName']||void 0x0!==this['editor']['commands']['get'](_0x139b41['commandName'])),_0x3fc385=[];for(const _0x18c6d1 of _0x42397c)_0x3fc385['push']({'id':_0x18c6d1['id'],'commandName':_0x18c6d1['commandName'],'title':'function'==typeof _0x18c6d1['title']?_0x18c6d1['title'](this['editor']):_0x18c6d1['title'],'description':_0x18c6d1['description'],'icon':_0x18c6d1['icon'],'isIconColorInherited':_0x18c6d1['isIconColorInherited'],'aliases':_0x18c6d1['aliases'],'isEnabled':()=>this['_proxyIsEnabled'](_0x18c6d1),'execute':()=>this['_proxyExecute'](_0x18c6d1)});this['_allowedCommands']=_0x3fc385['sort'](y);}['getAllowedCommands'](){return this['_allowedCommands'];}['getDefaultCommands'](){const t=this['editor']['t'],_0x14eef4=this['editor']['locale']['t'];return[{'id':'blockQuote','commandName':'blockQuote','icon':_0x595446['quote'],'title':_0x14eef4('Block\x20quote'),'description':t('Create\x20a\x20block\x20quote')},{'id':'bulletedList','commandName':'bulletedList','icon':_0x70907,'title':_0x14eef4('Bulleted\x20list'),'description':t('Create\x20a\x20bulleted\x20list')},{'id':'codeBlock','commandName':'codeBlock','icon':_0x3a4d30,'title':_0x14eef4('Insert\x20code\x20block'),'description':t('Create\x20a\x20code\x20block')},{'id':'ckbox','commandName':'ckbox','icon':_0x9540ba,'title':_0x14eef4('Open\x20file\x20manager'),'description':t('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckfinder','filemanager','upload']},{'id':'ckfinder','commandName':'ckfinder','icon':_0x32e604,'title':_0x14eef4('Insert\x20image'),'description':t('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckbox','filemanager','upload']},{'id':'heading1','commandName':'heading','icon':_0x5bbf3f,'title':_0x14eef4('Heading\x201'),'description':t('Create\x20a\x20heading\x20level\x201'),'execute':_0x1509c6=>{_0x1509c6['execute']('heading',{'value':'heading1'});}},{'id':'heading2','commandName':'heading','icon':_0x551f91,'title':_0x14eef4('Heading\x202'),'description':t('Create\x20a\x20heading\x20level\x202'),'execute':_0x476bf0=>{_0x476bf0['execute']('heading',{'value':'heading2'});}},{'id':'heading3','commandName':'heading','icon':_0x299b52,'title':_0x14eef4('Heading\x203'),'description':t('Create\x20a\x20heading\x20level\x203'),'execute':_0x1de297=>{_0x1de297['execute']('heading',{'value':'heading3'});}},{'id':'heading4','commandName':'heading','icon':_0x14fbd9,'title':_0x14eef4('Heading\x204'),'description':t('Create\x20a\x20heading\x20level\x204'),'execute':_0xe696c6=>{_0xe696c6['execute']('heading',{'value':'heading4'});}},{'id':'heading5','commandName':'heading','icon':_0xa0681,'title':_0x14eef4('Heading\x205'),'description':t('Create\x20a\x20heading\x20level\x205'),'execute':_0x1b1920=>{_0x1b1920['execute']('heading',{'value':'heading5'});}},{'id':'heading6','commandName':'heading','icon':_0x3206af,'title':_0x14eef4('Heading\x206'),'description':t('Create\x20a\x20heading\x20level\x206'),'execute':_0x2bbc85=>{_0x2bbc85['execute']('heading',{'value':'heading6'});}},{'id':'horizontalLine','commandName':'horizontalLine','icon':_0x441d56,'title':_0x14eef4('Horizontal\x20line'),'description':t('Insert\x20a\x20horizontal\x20line')},{'id':'htmlEmbed','commandName':'htmlEmbed','icon':_0x2b2ab7,'title':_0x14eef4('Insert\x20HTML'),'description':t('Insert\x20an\x20HTML\x20snippet')},{'id':'indent','commandName':'indent','icon':_0x138109,'title':_0x14eef4('Increase\x20indent'),'description':t('Increase\x20the\x20indentation')},{'id':'insertMermaidCommand','commandName':'insertMermaidCommand','title':t('Insert\x20Mermaid\x20diagram'),'description':t('Insert\x20the\x20Mermaid\x20diagram')},{'id':'insertTable','commandName':'insertTable','icon':_0x9b1d09,'title':_0x14eef4('Insert\x20table'),'description':t('Create\x20a\x20table')},{'id':'insertTableOfContents','commandName':'insertTableOfContents','icon':_0x13aff7,'title':_0x14eef4('Table\x20of\x20contents'),'description':t('Insert\x20table\x20of\x20contents'),'aliases':['toc']},{'id':'numberedList','commandName':'numberedList','icon':_0x27a7bd,'title':_0x14eef4('Numbered\x20list'),'description':t('Create\x20a\x20numbered\x20list')},{'id':'outdent','commandName':'outdent','icon':_0x4dedb5,'title':_0x14eef4('Decrease\x20indent'),'description':t('Decrease\x20the\x20indentation')},{'id':'paragraph','commandName':'paragraph','icon':_0x595446['paragraph'],'title':_0x14eef4('Paragraph'),'description':t('Insert\x20a\x20paragraph')},{'id':'todoList','commandName':'todoList','icon':_0x22d664,'title':_0x14eef4('To-do\x20list'),'description':t('Create\x20a\x20to-do\x20list')}];}['_proxyIsEnabled'](_0x5d28f2){return _0x5d28f2['isEnabled']?_0x5d28f2['isEnabled'](this['editor']):!_0x5d28f2['commandName']||this['editor']['commands']['get'](_0x5d28f2['commandName'])['isEnabled'];}['_proxyExecute'](_0x3c141a){if(_0x3c141a['execute'])_0x3c141a['execute'](this['editor']);else{if(!_0x3c141a['commandName'])throw new _0x2bd1ad('slash-command-execute-missing',this['editor'],{'commandDefinition':_0x3c141a});this['editor']['execute'](_0x3c141a['commandName']);}}}function y(_0x1940cf,_0xa7ff82){return _0x1940cf['title']<_0xa7ff82['title']?-0x1:_0x1940cf['title']>_0xa7ff82['title']?0x1:0x0;}function H(_0x296c46,_0x1e7c5e){return _0x1e7c5e+'-'+_0x296c46['toLowerCase']()['split']('\x20')['join']('-');}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x58b7=['slashCommandLicenseKeyTrial','getMatchingCommands','slashCommandLicenseKeyTrialLimit:operations','description','push','filter','SlashCommandEditing','info','editor','slashCommandLicenseKeyValid','isEnabled','concat','slashCommandLicenseKeyInvalid','pluginName','toLowerCase','get','_licenseKeyCheckInterval','slash-command-invalid-license-key','includes','plugins','licenseKey','aliases','requires'];(function(_0x39f5fd,_0x58b725){const _0x18b6bb=function(_0x55f7a0){while(--_0x55f7a0){_0x39f5fd['push'](_0x39f5fd['shift']());}};_0x18b6bb(++_0x58b725);}(_0x58b7,0x157));const _0x18b6=function(_0x39f5fd,_0x58b725){_0x39f5fd=_0x39f5fd-0x0;let _0x18b6bb=_0x58b7[_0x39f5fd];return _0x18b6bb;};import{Plugin as _0x4a003d}from'ckeditor5/src/core';import{CKEditorError as _0x4add67}from'ckeditor5/src/utils';import _0x1efea0 from'./slashcommandconfig';export default class e extends _0x4a003d{static get[_0x18b6('0xf')](){return _0x18b6('0x8');}static get[_0x18b6('0x1')](){return[_0x1efea0];}constructor(_0x2b8cda){super(_0x2b8cda),this[_0x18b6('0x12')]=null;}['init'](){const _0x2cc028=this[_0x18b6('0xa')];this[_0x18b6('0x16')]=_0x2cc028['config'][_0x18b6('0x11')](_0x18b6('0x16'));const _0x157371=this[_0x18b6('0xa')];this[_0x18b6('0x12')]=setInterval(()=>{let _0x2d2fa9;for(const _0x3f6d87 in _0x157371){const _0x27cdde=_0x3f6d87,_0x5b5383=_0x157371[_0x27cdde];if('slashCommandLicenseKeyTrial'===_0x5b5383||_0x18b6('0xe')===_0x5b5383||_0x18b6('0xb')===_0x5b5383||_0x18b6('0x4')===_0x5b5383){delete _0x157371[_0x27cdde],_0x2d2fa9=_0x5b5383;break;}}if(_0x18b6('0xe')===_0x2d2fa9)throw clearInterval(this[_0x18b6('0x12')]),new _0x4add67(_0x18b6('0x13'),null);if(_0x18b6('0x2')===_0x2d2fa9&&console[_0x18b6('0x9')]('You\x20are\x20using\x20the\x20trial\x20version\x20of\x20CKEditor\x205\x20slash\x20command\x20plugin\x20with\x20limited\x20usage.\x20Make\x20sure\x20you\x20will\x20not\x20use\x20it\x20in\x20the\x20production\x20environment.'),'slashCommandLicenseKeyTrialLimit:operations'===_0x2d2fa9)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x4add67('slash-command-trial-license-key-reached-limit-changes',null);_0x18b6('0xb')===_0x2d2fa9&&clearInterval(this[_0x18b6('0x12')]);},0x3e8);}['destroy'](){this[_0x18b6('0x12')]&&clearInterval(this[_0x18b6('0x12')]);}[_0x18b6('0x3')](_0x1188fd){const _0x189fc2=_0x1188fd&&_0x1188fd[_0x18b6('0x10')]();let _0x313063=this[_0x18b6('0xa')][_0x18b6('0x15')][_0x18b6('0x11')]('SlashCommandConfig')['getAllowedCommands']();if(_0x313063=_0x313063[_0x18b6('0x7')](_0x2d4d4a=>_0x2d4d4a[_0x18b6('0xc')]()),_0x189fc2){const _0x46f0d6=[],_0x2fa027=[],_0x13e2de=[],_0x1a4890=[];for(const _0x3be59d of _0x313063)_0x3be59d['id'][_0x18b6('0x10')]()[_0x18b6('0x14')](_0x189fc2)?_0x46f0d6[_0x18b6('0x6')](_0x3be59d):_0x3be59d['title']['toLowerCase']()[_0x18b6('0x14')](_0x189fc2)?_0x2fa027[_0x18b6('0x6')](_0x3be59d):_0x3be59d[_0x18b6('0x0')]&&_0x3be59d[_0x18b6('0x0')]['some'](_0x30e9ae=>_0x30e9ae[_0x18b6('0x10')]()[_0x18b6('0x14')](_0x189fc2))?_0x13e2de[_0x18b6('0x6')](_0x3be59d):_0x3be59d['description']&&_0x3be59d[_0x18b6('0x5')][_0x18b6('0x10')]()[_0x18b6('0x14')](_0x189fc2)&&_0x1a4890['push'](_0x3be59d);_0x313063=_0x46f0d6[_0x18b6('0xd')](_0x2fa027,_0x13e2de,_0x1a4890);}return _0x313063;}}
|