@ckeditor/ckeditor5-slash-command 39.0.2 → 40.1.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/LICENSE.md +4 -4
- package/build/slash-command.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.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/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 +6 -2
- 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.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 +14 -13
- 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/theme/slashcommand.css +4 -0
package/lang/translations/lv.po
CHANGED
|
@@ -104,3 +104,7 @@ msgstr "Ievietot rindkopu"
|
|
|
104
104
|
msgctxt "Description of the button that inserts a to-do list."
|
|
105
105
|
msgid "Create a to-do list"
|
|
106
106
|
msgstr "Izveidot uzdevumu sarakstu"
|
|
107
|
+
|
|
108
|
+
msgctxt "Description of the button that opens the AI Assistant feature."
|
|
109
|
+
msgid "Open the AI Assistant to generate content"
|
|
110
|
+
msgstr "Atveriet AI palīgu, lai ģenerētu saturu"
|
package/lang/translations/ms.po
CHANGED
|
@@ -104,3 +104,7 @@ msgstr "Masukkan perenggan"
|
|
|
104
104
|
msgctxt "Description of the button that inserts a to-do list."
|
|
105
105
|
msgid "Create a to-do list"
|
|
106
106
|
msgstr "Cipta senarai untuk dibuat"
|
|
107
|
+
|
|
108
|
+
msgctxt "Description of the button that opens the AI Assistant feature."
|
|
109
|
+
msgid "Open the AI Assistant to generate content"
|
|
110
|
+
msgstr "Buka Pembantu AI untuk mencipta kandungan"
|
package/lang/translations/nl.po
CHANGED
|
@@ -104,3 +104,7 @@ msgstr "Alinea invoegen"
|
|
|
104
104
|
msgctxt "Description of the button that inserts a to-do list."
|
|
105
105
|
msgid "Create a to-do list"
|
|
106
106
|
msgstr "Takenlijst aanmaken"
|
|
107
|
+
|
|
108
|
+
msgctxt "Description of the button that opens the AI Assistant feature."
|
|
109
|
+
msgid "Open the AI Assistant to generate content"
|
|
110
|
+
msgstr "Open de AI Assistent om inhoud te genereren"
|
package/lang/translations/no.po
CHANGED
|
@@ -104,3 +104,7 @@ msgstr "Sett inn et avsnitt"
|
|
|
104
104
|
msgctxt "Description of the button that inserts a to-do list."
|
|
105
105
|
msgid "Create a to-do list"
|
|
106
106
|
msgstr "Lag en huskeliste"
|
|
107
|
+
|
|
108
|
+
msgctxt "Description of the button that opens the AI Assistant feature."
|
|
109
|
+
msgid "Open the AI Assistant to generate content"
|
|
110
|
+
msgstr "Åpne AI Assistant for å generere innhold"
|
package/lang/translations/pl.po
CHANGED
|
@@ -104,3 +104,7 @@ msgstr "Dodaj akapit"
|
|
|
104
104
|
msgctxt "Description of the button that inserts a to-do list."
|
|
105
105
|
msgid "Create a to-do list"
|
|
106
106
|
msgstr "Utwórz listę zadań do wykonania"
|
|
107
|
+
|
|
108
|
+
msgctxt "Description of the button that opens the AI Assistant feature."
|
|
109
|
+
msgid "Open the AI Assistant to generate content"
|
|
110
|
+
msgstr "Otwórz asystenta AI, aby wygenerować treść"
|
|
@@ -19,7 +19,7 @@ msgstr ""
|
|
|
19
19
|
|
|
20
20
|
msgctxt "Description of the button that creates a block quote."
|
|
21
21
|
msgid "Create a block quote"
|
|
22
|
-
msgstr "Criar
|
|
22
|
+
msgstr "Criar bloco de citação"
|
|
23
23
|
|
|
24
24
|
msgctxt "Description of the button that inserts a bulleted list."
|
|
25
25
|
msgid "Create a bulleted list"
|
|
@@ -103,4 +103,8 @@ msgstr "Inserir parágrafo"
|
|
|
103
103
|
|
|
104
104
|
msgctxt "Description of the button that inserts a to-do list."
|
|
105
105
|
msgid "Create a to-do list"
|
|
106
|
-
msgstr "Criar uma lista de tarefas
|
|
106
|
+
msgstr "Criar uma lista de tarefas"
|
|
107
|
+
|
|
108
|
+
msgctxt "Description of the button that opens the AI Assistant feature."
|
|
109
|
+
msgid "Open the AI Assistant to generate content"
|
|
110
|
+
msgstr "Abra o Assistente de IA para gerar conteúdo"
|
package/lang/translations/pt.po
CHANGED
|
@@ -104,3 +104,7 @@ msgstr "Inserir um parágrafo"
|
|
|
104
104
|
msgctxt "Description of the button that inserts a to-do list."
|
|
105
105
|
msgid "Create a to-do list"
|
|
106
106
|
msgstr "Criar uma lista de tarefas"
|
|
107
|
+
|
|
108
|
+
msgctxt "Description of the button that opens the AI Assistant feature."
|
|
109
|
+
msgid "Open the AI Assistant to generate content"
|
|
110
|
+
msgstr "Abrir o Assistente de IA para gerar conteúdo"
|
package/lang/translations/ro.po
CHANGED
|
@@ -104,3 +104,7 @@ msgstr "Inserare paragraf"
|
|
|
104
104
|
msgctxt "Description of the button that inserts a to-do list."
|
|
105
105
|
msgid "Create a to-do list"
|
|
106
106
|
msgstr "Creare listă de sarcini"
|
|
107
|
+
|
|
108
|
+
msgctxt "Description of the button that opens the AI Assistant feature."
|
|
109
|
+
msgid "Open the AI Assistant to generate content"
|
|
110
|
+
msgstr "Deschide asistentul AI pentru a genera conținut"
|
package/lang/translations/ru.po
CHANGED
|
@@ -104,3 +104,7 @@ msgstr "Вставить параграф"
|
|
|
104
104
|
msgctxt "Description of the button that inserts a to-do list."
|
|
105
105
|
msgid "Create a to-do list"
|
|
106
106
|
msgstr "Создать список дел"
|
|
107
|
+
|
|
108
|
+
msgctxt "Description of the button that opens the AI Assistant feature."
|
|
109
|
+
msgid "Open the AI Assistant to generate content"
|
|
110
|
+
msgstr "Откройте AI Assistant для создания контента"
|
package/lang/translations/sk.po
CHANGED
|
@@ -104,3 +104,7 @@ msgstr "Vložiť odsek"
|
|
|
104
104
|
msgctxt "Description of the button that inserts a to-do list."
|
|
105
105
|
msgid "Create a to-do list"
|
|
106
106
|
msgstr "Vytvoriť zoznam úloh"
|
|
107
|
+
|
|
108
|
+
msgctxt "Description of the button that opens the AI Assistant feature."
|
|
109
|
+
msgid "Open the AI Assistant to generate content"
|
|
110
|
+
msgstr "Ak chcete vygenerovať obsah, otvorte pomocníka AI"
|
package/lang/translations/sr.po
CHANGED
|
@@ -104,3 +104,7 @@ msgstr "Umetni pasus"
|
|
|
104
104
|
msgctxt "Description of the button that inserts a to-do list."
|
|
105
105
|
msgid "Create a to-do list"
|
|
106
106
|
msgstr "Kreiraj listu zaduženja"
|
|
107
|
+
|
|
108
|
+
msgctxt "Description of the button that opens the AI Assistant feature."
|
|
109
|
+
msgid "Open the AI Assistant to generate content"
|
|
110
|
+
msgstr "Otvorite AI pomoćnika da generišete sadržaj"
|
package/lang/translations/sv.po
CHANGED
|
@@ -104,3 +104,7 @@ msgstr "Infoga ett stycke"
|
|
|
104
104
|
msgctxt "Description of the button that inserts a to-do list."
|
|
105
105
|
msgid "Create a to-do list"
|
|
106
106
|
msgstr "Skapa en att-göra-lista"
|
|
107
|
+
|
|
108
|
+
msgctxt "Description of the button that opens the AI Assistant feature."
|
|
109
|
+
msgid "Open the AI Assistant to generate content"
|
|
110
|
+
msgstr "Öppna AI-assistenten för att generera innehåll"
|
package/lang/translations/th.po
CHANGED
|
@@ -104,3 +104,7 @@ msgstr "แทรกย่อหน้า"
|
|
|
104
104
|
msgctxt "Description of the button that inserts a to-do list."
|
|
105
105
|
msgid "Create a to-do list"
|
|
106
106
|
msgstr "สร้างรายการสิ่งต้องทำ"
|
|
107
|
+
|
|
108
|
+
msgctxt "Description of the button that opens the AI Assistant feature."
|
|
109
|
+
msgid "Open the AI Assistant to generate content"
|
|
110
|
+
msgstr "เปิดผู้ช่วย AI เพื่อสร้างเนื้อหา"
|
package/lang/translations/tr.po
CHANGED
|
@@ -104,3 +104,7 @@ msgstr "Paragraf ekle"
|
|
|
104
104
|
msgctxt "Description of the button that inserts a to-do list."
|
|
105
105
|
msgid "Create a to-do list"
|
|
106
106
|
msgstr "Yapılacaklar listesi oluştur"
|
|
107
|
+
|
|
108
|
+
msgctxt "Description of the button that opens the AI Assistant feature."
|
|
109
|
+
msgid "Open the AI Assistant to generate content"
|
|
110
|
+
msgstr "İçerik oluşturmak için YZ Asistanı aç"
|
package/lang/translations/uk.po
CHANGED
|
@@ -104,3 +104,7 @@ msgstr "Вставити абзац"
|
|
|
104
104
|
msgctxt "Description of the button that inserts a to-do list."
|
|
105
105
|
msgid "Create a to-do list"
|
|
106
106
|
msgstr "Створити список справ"
|
|
107
|
+
|
|
108
|
+
msgctxt "Description of the button that opens the AI Assistant feature."
|
|
109
|
+
msgid "Open the AI Assistant to generate content"
|
|
110
|
+
msgstr "Відкрити ШІ-Помічника для генерування контенту"
|
package/lang/translations/uz.po
CHANGED
|
@@ -104,3 +104,7 @@ msgstr "Paragrafni kiritish"
|
|
|
104
104
|
msgctxt "Description of the button that inserts a to-do list."
|
|
105
105
|
msgid "Create a to-do list"
|
|
106
106
|
msgstr "Vazifalar roʻyxatini yaratish"
|
|
107
|
+
|
|
108
|
+
msgctxt "Description of the button that opens the AI Assistant feature."
|
|
109
|
+
msgid "Open the AI Assistant to generate content"
|
|
110
|
+
msgstr ""
|
package/lang/translations/vi.po
CHANGED
|
@@ -104,3 +104,7 @@ msgstr "Chèn đoạn văn"
|
|
|
104
104
|
msgctxt "Description of the button that inserts a to-do list."
|
|
105
105
|
msgid "Create a to-do list"
|
|
106
106
|
msgstr "Tạo danh sách việc cần làm"
|
|
107
|
+
|
|
108
|
+
msgctxt "Description of the button that opens the AI Assistant feature."
|
|
109
|
+
msgid "Open the AI Assistant to generate content"
|
|
110
|
+
msgstr "Hãy mở Trợ lý AI để tạo nội dung"
|
|
@@ -104,3 +104,7 @@ msgstr "插入一个段落"
|
|
|
104
104
|
msgctxt "Description of the button that inserts a to-do list."
|
|
105
105
|
msgid "Create a to-do list"
|
|
106
106
|
msgstr "创建一个待办事项清单"
|
|
107
|
+
|
|
108
|
+
msgctxt "Description of the button that opens the AI Assistant feature."
|
|
109
|
+
msgid "Open the AI Assistant to generate content"
|
|
110
|
+
msgstr "打开 AI 助手生成内容"
|
package/lang/translations/zh.po
CHANGED
|
@@ -104,3 +104,7 @@ msgstr "插入段落"
|
|
|
104
104
|
msgctxt "Description of the button that inserts a to-do list."
|
|
105
105
|
msgid "Create a to-do list"
|
|
106
106
|
msgstr "建立待辦清單"
|
|
107
|
+
|
|
108
|
+
msgctxt "Description of the button that opens the AI Assistant feature."
|
|
109
|
+
msgid "Open the AI Assistant to generate content"
|
|
110
|
+
msgstr "開啟 AI 助理來生成內容"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-slash-command",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "40.1.0",
|
|
4
4
|
"description": "Slash command feature for CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -11,18 +11,19 @@
|
|
|
11
11
|
],
|
|
12
12
|
"main": "src/index.js",
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@ckeditor/ckeditor5-
|
|
15
|
-
"@ckeditor/ckeditor5-
|
|
16
|
-
"@ckeditor/ckeditor5-
|
|
17
|
-
"@ckeditor/ckeditor5-
|
|
18
|
-
"@ckeditor/ckeditor5-
|
|
19
|
-
"@ckeditor/ckeditor5-
|
|
20
|
-
"@ckeditor/ckeditor5-
|
|
21
|
-
"@ckeditor/ckeditor5-
|
|
22
|
-
"@ckeditor/ckeditor5-
|
|
23
|
-
"@ckeditor/ckeditor5-
|
|
24
|
-
"@ckeditor/ckeditor5-
|
|
25
|
-
"ckeditor5": "
|
|
14
|
+
"@ckeditor/ckeditor5-ai": "40.1.0",
|
|
15
|
+
"@ckeditor/ckeditor5-ckbox": "40.1.0",
|
|
16
|
+
"@ckeditor/ckeditor5-ckfinder": "40.1.0",
|
|
17
|
+
"@ckeditor/ckeditor5-code-block": "40.1.0",
|
|
18
|
+
"@ckeditor/ckeditor5-heading": "40.1.0",
|
|
19
|
+
"@ckeditor/ckeditor5-horizontal-line": "40.1.0",
|
|
20
|
+
"@ckeditor/ckeditor5-html-embed": "40.1.0",
|
|
21
|
+
"@ckeditor/ckeditor5-indent": "40.1.0",
|
|
22
|
+
"@ckeditor/ckeditor5-list": "40.1.0",
|
|
23
|
+
"@ckeditor/ckeditor5-table": "40.1.0",
|
|
24
|
+
"@ckeditor/ckeditor5-document-outline": "40.1.0",
|
|
25
|
+
"@ckeditor/ckeditor5-ui": "40.1.0",
|
|
26
|
+
"ckeditor5": "40.1.0"
|
|
26
27
|
},
|
|
27
28
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
28
29
|
"author": "CKSource (http://cksource.com/)",
|
package/src/slashcommand.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4a45=['Mention','requires','pluginName','SlashCommand'];(function(_0xccfcb,_0x4a45bf){var _0x1730da=function(_0x5a383d){while(--_0x5a383d){_0xccfcb['push'](_0xccfcb['shift']());}};_0x1730da(++_0x4a45bf);}(_0x4a45,0x67));var _0x1730=function(_0xccfcb,_0x4a45bf){_0xccfcb=_0xccfcb-0x0;var _0x1730da=_0x4a45[_0xccfcb];return _0x1730da;};import{Plugin as _0x56219b}from'ckeditor5/src/core';import _0xeafe6f from'./slashcommandediting';import _0x1c07e3 from'./slashcommandui';export default class o extends _0x56219b{static get[_0x1730('0x2')](){return[_0x1730('0x1'),_0xeafe6f,_0x1c07e3];}static get[_0x1730('0x3')](){return _0x1730('0x0');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x124815,icons as _0x22a9e3}from'ckeditor5/src/core';import{CKEditorError as _0xc0dc61}from'ckeditor5/src/utils';import _0xb5b958 from'@ckeditor/ckeditor5-list/theme/icons/bulletedlist.svg';import _0x4902f1 from'@ckeditor/ckeditor5-code-block/theme/icons/codeblock.svg';import _0x10db21 from'@ckeditor/ckeditor5-ckbox/theme/icons/browse-files.svg';import _0x3d3ad9 from'@ckeditor/ckeditor5-ckfinder/theme/icons/browse-files.svg';import _0x2236c9 from'@ckeditor/ckeditor5-heading/theme/icons/heading1.svg';import _0x5334cf from'@ckeditor/ckeditor5-heading/theme/icons/heading2.svg';import _0x47adf5 from'@ckeditor/ckeditor5-heading/theme/icons/heading3.svg';import _0x53deef from'@ckeditor/ckeditor5-heading/theme/icons/heading4.svg';import _0x41cd39 from'@ckeditor/ckeditor5-heading/theme/icons/heading5.svg';import _0x539304 from'@ckeditor/ckeditor5-heading/theme/icons/heading6.svg';import _0x380f8e from'@ckeditor/ckeditor5-horizontal-line/theme/icons/horizontalline.svg';import _0x1cf0ea from'@ckeditor/ckeditor5-html-embed/theme/icons/html.svg';import _0x3a9c61 from'@ckeditor/ckeditor5-indent/theme/icons/indent.svg';import _0x371158 from'@ckeditor/ckeditor5-table/theme/icons/table.svg';import _0x400b5f from'@ckeditor/ckeditor5-list/theme/icons/numberedlist.svg';import _0x3e25ee from'@ckeditor/ckeditor5-indent/theme/icons/outdent.svg';import _0x3f83ef from'@ckeditor/ckeditor5-document-outline/theme/icons/table-of-contents.svg';import _0xcf0397 from'@ckeditor/ckeditor5-list/theme/icons/todolist.svg';import _0x38b029 from'@ckeditor/ckeditor5-ai/theme/icons/robot-pencil.svg';import'./slashcommandeditorconfig';export default class L extends _0x124815{static get['pluginName'](){return'SlashCommandConfig';}constructor(_0x3f2100){super(_0x3f2100),this['_allowedCommands']=null;}['afterInit'](){const _0x1ecc77=this['editor']['config']['get']('slashCommand.removeCommands')||[],_0x375424=function(_0x4266b1){let _0x1df454=['heading4','heading5','heading6'];if(_0x4266b1){const _0x466b00=_0x4266b1['map'](_0x34fad4=>_0x34fad4['model']);_0x1df454=['heading1','heading2','heading3','heading4','heading5','heading6']['filter'](_0xdce8d2=>!_0x466b00['includes'](_0xdce8d2));}return _0x1df454;}(this['editor']['config']['get']('heading.options'));let _0x2cc5fc=this['getDefaultCommands']()['filter'](_0x587d8f=>!_0x375424['includes'](_0x587d8f['id']))['filter'](_0x2cd951=>!_0x1ecc77['includes'](_0x2cd951['commandName']));const _0x1fa0b0=this['editor']['config']['get']('slashCommand.extraCommands');_0x1fa0b0&&_0x1fa0b0['length']&&(_0x2cc5fc=_0x2cc5fc['concat'](_0x1fa0b0));const _0x1aa190=this['editor']['config']['get']('template.definitions');_0x1aa190&&_0x1aa190['length']&&(_0x2cc5fc=_0x2cc5fc['concat'](function(_0x5a1dbd){return _0x5a1dbd['map'](_0x1a2aff=>{const {title:_0x48613a,icon:_0x263cfa,description:_0x52ec0f,data:_0x4b3ba8}=_0x1a2aff,_0x367325={'id':H(_0x48613a,'template'),'commandName':'insertTemplate','execute':_0x48f2ec=>{_0x48f2ec['execute']('insertTemplate',_0x4b3ba8);},'description':_0x52ec0f,'icon':_0x263cfa,'title':_0x48613a};return _0x263cfa&&(_0x367325['isIconColorInherited']=!0x1),_0x367325;});}(_0x1aa190)));const _0xdc2528=this['editor']['config']['get']('style.definitions');_0xdc2528&&_0xdc2528['length']&&(_0x2cc5fc=_0x2cc5fc['concat'](function(_0x58a611){return _0x58a611['map'](_0x477a3c=>({'id':H(_0x477a3c['name'],'style'),'commandName':'style','execute':_0x5869=>{_0x5869['execute']('style',{'styleName':_0x477a3c['name']});},'isEnabled':_0x3575ec=>{const _0x346db5=_0x3575ec['commands']['get']('style');return _0x346db5['isEnabled']&&_0x346db5['enabledStyles']['includes'](_0x477a3c['name']);},'title':_0x477a3c['name']}));}(_0xdc2528)));const _0x330662=_0x2cc5fc['filter'](_0x3f6900=>!_0x3f6900['commandName']||void 0x0!==this['editor']['commands']['get'](_0x3f6900['commandName'])),_0x32a1a7=[];for(const _0x1b23a8 of _0x330662)_0x32a1a7['push']({'id':_0x1b23a8['id'],'commandName':_0x1b23a8['commandName'],'title':'function'==typeof _0x1b23a8['title']?_0x1b23a8['title'](this['editor']):_0x1b23a8['title'],'description':_0x1b23a8['description'],'icon':_0x1b23a8['icon'],'isIconColorInherited':_0x1b23a8['isIconColorInherited'],'aliases':_0x1b23a8['aliases'],'isEnabled':()=>this['_proxyIsEnabled'](_0x1b23a8),'execute':()=>this['_proxyExecute'](_0x1b23a8)});this['_allowedCommands']=_0x32a1a7['sort'](y);}['getAllowedCommands'](){return this['_allowedCommands'];}['getDefaultCommands'](){const t=this['editor']['t'],_0x220cd2=this['editor']['locale']['t'];return[{'id':'aiAssistant','commandName':'showAIAssistant','icon':_0x38b029,'title':_0x220cd2('AI\x20Assistant'),'description':t('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content'),'execute':_0x1bf3e8=>{setTimeout(()=>_0x1bf3e8['execute']('showAIAssistant'));}},{'id':'blockQuote','commandName':'blockQuote','icon':_0x22a9e3['quote'],'title':_0x220cd2('Block\x20quote'),'description':t('Create\x20a\x20block\x20quote')},{'id':'bulletedList','commandName':'bulletedList','icon':_0xb5b958,'title':_0x220cd2('Bulleted\x20list'),'description':t('Create\x20a\x20bulleted\x20list')},{'id':'codeBlock','commandName':'codeBlock','icon':_0x4902f1,'title':_0x220cd2('Insert\x20code\x20block'),'description':t('Create\x20a\x20code\x20block')},{'id':'ckbox','commandName':'ckbox','icon':_0x10db21,'title':_0x220cd2('Open\x20file\x20manager'),'description':t('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckfinder','filemanager','upload']},{'id':'ckfinder','commandName':'ckfinder','icon':_0x3d3ad9,'title':_0x220cd2('Insert\x20image'),'description':t('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckbox','filemanager','upload']},{'id':'heading1','commandName':'heading','icon':_0x2236c9,'title':_0x220cd2('Heading\x201'),'description':t('Create\x20a\x20heading\x20level\x201'),'execute':_0x339cef=>{_0x339cef['execute']('heading',{'value':'heading1'});}},{'id':'heading2','commandName':'heading','icon':_0x5334cf,'title':_0x220cd2('Heading\x202'),'description':t('Create\x20a\x20heading\x20level\x202'),'execute':_0x33dddd=>{_0x33dddd['execute']('heading',{'value':'heading2'});}},{'id':'heading3','commandName':'heading','icon':_0x47adf5,'title':_0x220cd2('Heading\x203'),'description':t('Create\x20a\x20heading\x20level\x203'),'execute':_0x1fb695=>{_0x1fb695['execute']('heading',{'value':'heading3'});}},{'id':'heading4','commandName':'heading','icon':_0x53deef,'title':_0x220cd2('Heading\x204'),'description':t('Create\x20a\x20heading\x20level\x204'),'execute':_0x493537=>{_0x493537['execute']('heading',{'value':'heading4'});}},{'id':'heading5','commandName':'heading','icon':_0x41cd39,'title':_0x220cd2('Heading\x205'),'description':t('Create\x20a\x20heading\x20level\x205'),'execute':_0x240289=>{_0x240289['execute']('heading',{'value':'heading5'});}},{'id':'heading6','commandName':'heading','icon':_0x539304,'title':_0x220cd2('Heading\x206'),'description':t('Create\x20a\x20heading\x20level\x206'),'execute':_0x2c96bb=>{_0x2c96bb['execute']('heading',{'value':'heading6'});}},{'id':'horizontalLine','commandName':'horizontalLine','icon':_0x380f8e,'title':_0x220cd2('Horizontal\x20line'),'description':t('Insert\x20a\x20horizontal\x20line')},{'id':'htmlEmbed','commandName':'htmlEmbed','icon':_0x1cf0ea,'title':_0x220cd2('Insert\x20HTML'),'description':t('Insert\x20an\x20HTML\x20snippet')},{'id':'indent','commandName':'indent','icon':_0x3a9c61,'title':_0x220cd2('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':_0x371158,'title':_0x220cd2('Insert\x20table'),'description':t('Create\x20a\x20table')},{'id':'insertTableOfContents','commandName':'insertTableOfContents','icon':_0x3f83ef,'title':_0x220cd2('Table\x20of\x20contents'),'description':t('Insert\x20table\x20of\x20contents'),'aliases':['toc']},{'id':'numberedList','commandName':'numberedList','icon':_0x400b5f,'title':_0x220cd2('Numbered\x20list'),'description':t('Create\x20a\x20numbered\x20list')},{'id':'outdent','commandName':'outdent','icon':_0x3e25ee,'title':_0x220cd2('Decrease\x20indent'),'description':t('Decrease\x20the\x20indentation')},{'id':'paragraph','commandName':'paragraph','icon':_0x22a9e3['paragraph'],'title':_0x220cd2('Paragraph'),'description':t('Insert\x20a\x20paragraph')},{'id':'todoList','commandName':'todoList','icon':_0xcf0397,'title':_0x220cd2('To-do\x20list'),'description':t('Create\x20a\x20to-do\x20list')}];}['_proxyIsEnabled'](_0x38d1ce){return _0x38d1ce['isEnabled']?_0x38d1ce['isEnabled'](this['editor']):!_0x38d1ce['commandName']||this['editor']['commands']['get'](_0x38d1ce['commandName'])['isEnabled'];}['_proxyExecute'](_0x5de85c){if(_0x5de85c['execute'])_0x5de85c['execute'](this['editor']);else{if(!_0x5de85c['commandName'])throw new _0xc0dc61('slash-command-execute-missing',this['editor'],{'commandDefinition':_0x5de85c});this['editor']['execute'](_0x5de85c['commandName']);}}}function y(_0x2e2eed,_0xe9848d){return _0x2e2eed['title']<_0xe9848d['title']?-0x1:_0x2e2eed['title']>_0xe9848d['title']?0x1:0x0;}function H(_0x37cbb9,_0x5c74a2){return _0x5c74a2+'-'+_0x37cbb9['toLowerCase']()['split']('\x20')['join']('-');}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3a05=['licenseKey','concat','requires','editor','SlashCommandEditing','includes','get','info','slashCommandLicenseKeyInvalid','slash-command-trial-license-key-reached-limit-changes','config','destroy','slash-command-invalid-license-key','slashCommandLicenseKeyValid','_licenseKeyCheckInterval','aliases','init','getMatchingCommands','toLowerCase','slashCommandLicenseKeyTrialLimit:operations','getAllowedCommands','pluginName','isEnabled','SlashCommandConfig','some','title','push','description'];(function(_0x5429ba,_0x3a0594){const _0x15ee19=function(_0x2fc286){while(--_0x2fc286){_0x5429ba['push'](_0x5429ba['shift']());}};_0x15ee19(++_0x3a0594);}(_0x3a05,0x1c5));const _0x15ee=function(_0x5429ba,_0x3a0594){_0x5429ba=_0x5429ba-0x0;let _0x15ee19=_0x3a05[_0x5429ba];return _0x15ee19;};import{Plugin as _0x16a6da}from'ckeditor5/src/core';import{CKEditorError as _0x17e322}from'ckeditor5/src/utils';import _0x1cde66 from'./slashcommandconfig';export default class e extends _0x16a6da{static get[_0x15ee('0x10')](){return _0x15ee('0x1b');}static get[_0x15ee('0x19')](){return[_0x1cde66];}constructor(_0x4d5bda){super(_0x4d5bda),this[_0x15ee('0x9')]=null;}[_0x15ee('0xb')](){const _0x12528e=this[_0x15ee('0x1a')];this[_0x15ee('0x17')]=_0x12528e[_0x15ee('0x5')][_0x15ee('0x1')](_0x15ee('0x17'));const _0x2445e5=this[_0x15ee('0x1a')];this[_0x15ee('0x9')]=setInterval(()=>{let _0x1cc357;for(const _0xc88f41 in _0x2445e5){const _0x163db7=_0xc88f41,_0x38b777=_0x2445e5[_0x163db7];if('slashCommandLicenseKeyTrial'===_0x38b777||_0x15ee('0x3')===_0x38b777||_0x15ee('0x8')===_0x38b777||_0x15ee('0xe')===_0x38b777){delete _0x2445e5[_0x163db7],_0x1cc357=_0x38b777;break;}}if('slashCommandLicenseKeyInvalid'===_0x1cc357)throw clearInterval(this[_0x15ee('0x9')]),new _0x17e322(_0x15ee('0x7'),null);if('slashCommandLicenseKeyTrial'===_0x1cc357&&console[_0x15ee('0x2')]('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.'),_0x15ee('0xe')===_0x1cc357)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x17e322(_0x15ee('0x4'),null);_0x15ee('0x8')===_0x1cc357&&clearInterval(this[_0x15ee('0x9')]);},0x3e8);}[_0x15ee('0x6')](){this[_0x15ee('0x9')]&&clearInterval(this[_0x15ee('0x9')]);}[_0x15ee('0xc')](_0xe4c47){const _0x2aee03=_0xe4c47&&_0xe4c47[_0x15ee('0xd')]();let _0x26b1e6=this[_0x15ee('0x1a')]['plugins'][_0x15ee('0x1')](_0x15ee('0x12'))[_0x15ee('0xf')]();if(_0x26b1e6=_0x26b1e6['filter'](_0x5abdf2=>_0x5abdf2[_0x15ee('0x11')]()),_0x2aee03){const _0x27d600=[],_0x296544=[],_0x4e5d4a=[],_0x206c87=[];for(const _0x67606e of _0x26b1e6)_0x67606e['id'][_0x15ee('0xd')]()[_0x15ee('0x0')](_0x2aee03)?_0x27d600[_0x15ee('0x15')](_0x67606e):_0x67606e[_0x15ee('0x14')][_0x15ee('0xd')]()['includes'](_0x2aee03)?_0x296544['push'](_0x67606e):_0x67606e['aliases']&&_0x67606e[_0x15ee('0xa')][_0x15ee('0x13')](_0x157629=>_0x157629['toLowerCase']()[_0x15ee('0x0')](_0x2aee03))?_0x4e5d4a[_0x15ee('0x15')](_0x67606e):_0x67606e[_0x15ee('0x16')]&&_0x67606e[_0x15ee('0x16')][_0x15ee('0xd')]()[_0x15ee('0x0')](_0x2aee03)&&_0x206c87[_0x15ee('0x15')](_0x67606e);_0x26b1e6=_0x27d600[_0x15ee('0x18')](_0x296544,_0x4e5d4a,_0x206c87);}return _0x26b1e6;}}
|