@ckeditor/ckeditor5-slash-command 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/slash-command.js +1 -1
- package/dist/index-content.css +4 -0
- package/dist/index-editor.css +57 -0
- package/dist/index.css +84 -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.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 +25 -0
- package/dist/types/index.d.ts +17 -0
- package/dist/types/slashcommand.d.ts +33 -0
- package/dist/types/slashcommandconfig.d.ts +246 -0
- package/dist/types/slashcommandediting.d.ts +45 -0
- package/dist/types/slashcommandeditorconfig.d.ts +100 -0
- package/dist/types/slashcommandui.d.ts +37 -0
- package/dist/types/ui/slashcommandbuttonview.d.ts +35 -0
- package/package.json +5 -4
- package/src/index.js +1 -1
- 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
|
@@ -0,0 +1,100 @@
|
|
|
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 slash-command/slashcommandeditorconfig
|
|
11
|
+
* @publicApi
|
|
12
|
+
*/
|
|
13
|
+
import type { SlashCommandDefinition } from './slashcommandconfig.js';
|
|
14
|
+
/**
|
|
15
|
+
* The configuration of the slash command feature.
|
|
16
|
+
*
|
|
17
|
+
* Read more about {@glink features/slash-commands#configuration configuring the slash command feature}.
|
|
18
|
+
*
|
|
19
|
+
* ```ts
|
|
20
|
+
* ClassicEditor
|
|
21
|
+
* .create( editorElement, {
|
|
22
|
+
* slashCommand: ... // Slash command feature options.
|
|
23
|
+
* } )
|
|
24
|
+
* .then( ... )
|
|
25
|
+
* .catch( ... );
|
|
26
|
+
* ```
|
|
27
|
+
*
|
|
28
|
+
* See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
|
|
29
|
+
*/
|
|
30
|
+
export interface SlashCommandEditorConfig {
|
|
31
|
+
/**
|
|
32
|
+
* The list of commands to be removed from the default command list. Commands specified by this configuration will not
|
|
33
|
+
* appear in the user interface upon writing the slash ("/") character.
|
|
34
|
+
*
|
|
35
|
+
* * Each entry must be a unique name of a command registered in the
|
|
36
|
+
* {@link module:core/editor/editor~Editor#commands editor's command collection}.
|
|
37
|
+
* * Check out the list of the {@link module:slash-command/slashcommandconfig~SlashCommandConfig#getDefaultCommands default commands}
|
|
38
|
+
* supported by the slash command feature to learn which commands can be removed.
|
|
39
|
+
*
|
|
40
|
+
* ```ts
|
|
41
|
+
* ClassicEditor
|
|
42
|
+
* .create( editorElement, {
|
|
43
|
+
* plugins: [ SlashCommand, ... ],
|
|
44
|
+
* slashCommand: {
|
|
45
|
+
* removeCommands: [ 'heading', 'paragraph', ... ]
|
|
46
|
+
* // ...
|
|
47
|
+
* }
|
|
48
|
+
* } )
|
|
49
|
+
* .then( ... )
|
|
50
|
+
* .catch( ... );
|
|
51
|
+
* ```
|
|
52
|
+
*/
|
|
53
|
+
removeCommands: Array<string>;
|
|
54
|
+
/**
|
|
55
|
+
* Additional commands to be added to the
|
|
56
|
+
* {@link module:slash-command/slashcommandconfig~SlashCommandConfig#getDefaultCommands list of defaults} supported
|
|
57
|
+
* by the slash command feature. It allows the feature to work with third-party commands and make them appear in the user interface
|
|
58
|
+
* upon writing the slash ("/") character.
|
|
59
|
+
*
|
|
60
|
+
* ```ts
|
|
61
|
+
* ClassicEditor
|
|
62
|
+
* .create( editorElement, {
|
|
63
|
+
* plugins: [ SlashCommand, ... ],
|
|
64
|
+
* slashCommand: {
|
|
65
|
+
* extraCommands: [
|
|
66
|
+
* {
|
|
67
|
+
* id: 'bold',
|
|
68
|
+
* commandName: 'bold',
|
|
69
|
+
* title: 'Bold',
|
|
70
|
+
* // ...
|
|
71
|
+
* },
|
|
72
|
+
* // ...
|
|
73
|
+
* ]
|
|
74
|
+
* // ...
|
|
75
|
+
* }
|
|
76
|
+
* } )
|
|
77
|
+
* .then( ... )
|
|
78
|
+
* .catch( ... );
|
|
79
|
+
* ```
|
|
80
|
+
*/
|
|
81
|
+
extraCommands: Array<SlashCommandDefinition>;
|
|
82
|
+
/**
|
|
83
|
+
* The maximum number of commands displayed in the dropdown list of slash commands.
|
|
84
|
+
*
|
|
85
|
+
* ```ts
|
|
86
|
+
* ClassicEditor
|
|
87
|
+
* .create( editorElement, {
|
|
88
|
+
* plugins: [ SlashCommand, ... ],
|
|
89
|
+
* slashCommand: {
|
|
90
|
+
* dropdownLimit: 4
|
|
91
|
+
* // More of editor configuration.
|
|
92
|
+
* // ...
|
|
93
|
+
* }
|
|
94
|
+
* } )
|
|
95
|
+
* .then( ... )
|
|
96
|
+
* .catch( ... );
|
|
97
|
+
* ```
|
|
98
|
+
*/
|
|
99
|
+
dropdownLimit: number;
|
|
100
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
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 slash-command/slashcommandui
|
|
11
|
+
*/
|
|
12
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core.js';
|
|
13
|
+
import './slashcommandeditorconfig.js';
|
|
14
|
+
import '../theme/slashcommand.css';
|
|
15
|
+
/**
|
|
16
|
+
* Provides the UI functionality of the {@link module:slash-command/slashcommand~SlashCommand} feature.
|
|
17
|
+
*
|
|
18
|
+
* @extends module:core/plugin~Plugin
|
|
19
|
+
*/
|
|
20
|
+
export default class SlashCommandUI extends Plugin {
|
|
21
|
+
/**
|
|
22
|
+
* @inheritDoc
|
|
23
|
+
*/
|
|
24
|
+
static get pluginName(): "SlashCommandUI";
|
|
25
|
+
/**
|
|
26
|
+
* @inheritDoc
|
|
27
|
+
*/
|
|
28
|
+
constructor(editor: Editor);
|
|
29
|
+
/**
|
|
30
|
+
* @inheritDoc
|
|
31
|
+
*/
|
|
32
|
+
init(): void;
|
|
33
|
+
/**
|
|
34
|
+
* @inheritDoc
|
|
35
|
+
*/
|
|
36
|
+
afterInit(): void;
|
|
37
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
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 slash-command/ui/slashcommandbuttonview
|
|
11
|
+
*/
|
|
12
|
+
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
13
|
+
import { View, ButtonView } from 'ckeditor5/src/ui.js';
|
|
14
|
+
import type { SlashCommandDefinition } from '../slashcommandconfig.js';
|
|
15
|
+
/**
|
|
16
|
+
* A class representing an individual button (slash command) in the list.
|
|
17
|
+
*
|
|
18
|
+
* @extends module:ui/button/buttonview~ButtonView
|
|
19
|
+
*/
|
|
20
|
+
export default class SlashCommandButtonView extends ButtonView {
|
|
21
|
+
/**
|
|
22
|
+
* The view rendering the text part of the slash command button consisting of a title and an optional description.
|
|
23
|
+
*
|
|
24
|
+
* @protected
|
|
25
|
+
*/
|
|
26
|
+
textPartView: View;
|
|
27
|
+
/**
|
|
28
|
+
* Creates an instance of the {@link module:slash-command/ui/slashcommandbuttonview~SlashCommandButtonView} class.
|
|
29
|
+
*/
|
|
30
|
+
constructor(locale: Locale, commandDefinition: SlashCommandDefinition);
|
|
31
|
+
/**
|
|
32
|
+
* @inheritDoc
|
|
33
|
+
*/
|
|
34
|
+
render(): void;
|
|
35
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-slash-command",
|
|
3
|
-
"version": "41.
|
|
3
|
+
"version": "41.4.0",
|
|
4
4
|
"description": "Slash command feature for CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -12,15 +12,16 @@
|
|
|
12
12
|
"type": "module",
|
|
13
13
|
"main": "src/index.js",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@ckeditor/ckeditor5-ui": "41.
|
|
16
|
-
"ckeditor5": "41.
|
|
17
|
-
"ckeditor5-collaboration": "41.
|
|
15
|
+
"@ckeditor/ckeditor5-ui": "41.4.0",
|
|
16
|
+
"ckeditor5": "41.4.0",
|
|
17
|
+
"ckeditor5-collaboration": "41.4.0"
|
|
18
18
|
},
|
|
19
19
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
20
20
|
"author": "CKSource (http://cksource.com/)",
|
|
21
21
|
"homepage": "https://ckeditor.com/ckeditor-5",
|
|
22
22
|
"bugs": "https://support.ckeditor.com/hc/en-us/requests/new",
|
|
23
23
|
"files": [
|
|
24
|
+
"dist",
|
|
24
25
|
"lang",
|
|
25
26
|
"src/**/*.js",
|
|
26
27
|
"src/**/*.d.ts",
|
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0xc8e671,_0x3c2e2b){var _0x4de43e=_0xa1d4,_0xec737c=_0xc8e671();while(!![]){try{var _0x2bc07d=parseInt(_0x4de43e(0x111))/0x1+parseInt(_0x4de43e(0x10e))/0x2*(-parseInt(_0x4de43e(0x10c))/0x3)+parseInt(_0x4de43e(0x107))/0x4*(parseInt(_0x4de43e(0x108))/0x5)+-parseInt(_0x4de43e(0x10d))/0x6*(-parseInt(_0x4de43e(0x109))/0x7)+-parseInt(_0x4de43e(0x10f))/0x8*(-parseInt(_0x4de43e(0x106))/0x9)+parseInt(_0x4de43e(0x110))/0xa*(-parseInt(_0x4de43e(0x112))/0xb)+parseInt(_0x4de43e(0x10a))/0xc*(-parseInt(_0x4de43e(0x10b))/0xd);if(_0x2bc07d===_0x3c2e2b)break;else _0xec737c['push'](_0xec737c['shift']());}catch(_0x1f9c29){_0xec737c['push'](_0xec737c['shift']());}}}(_0x26c4,0xe482a));export{default as SlashCommand}from'./slashcommand.js';function _0xa1d4(_0x3e470c,_0x174f65){var _0x26c4b6=_0x26c4();return _0xa1d4=function(_0xa1d4cd,_0x4e071a){_0xa1d4cd=_0xa1d4cd-0x106;var _0x1d0ab0=_0x26c4b6[_0xa1d4cd];return _0x1d0ab0;},_0xa1d4(_0x3e470c,_0x174f65);}export{default as SlashCommandConfig}from'./slashcommandconfig.js';function _0x26c4(){var _0x40ec88=['6215727JDBgpf','28764JgHjhO','143SnpbIJ','3pUfmZc','6TlXRcH','1035818IeuUkQ','8qDIvYH','7362470fevqIs','244758NWLATo','22uChcYt','8296587tOHUsS','4iGRUPh','4490930Dvafux'];_0x26c4=function(){return _0x40ec88;};return _0x26c4();}export{default as SlashCommandEditing}from'./slashcommandediting.js';export{default as SlashCommandUI}from'./slashcommandui.js';import'./augmentation.js';
|
package/src/slashcommand.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1cf1cb=_0xed69;(function(_0x1ec753,_0x5bb163){var _0x51a555=_0xed69,_0x5533aa=_0x1ec753();while(!![]){try{var _0x94651e=-parseInt(_0x51a555(0x1eb))/0x1*(-parseInt(_0x51a555(0x1ec))/0x2)+-parseInt(_0x51a555(0x1e6))/0x3+-parseInt(_0x51a555(0x1e7))/0x4+parseInt(_0x51a555(0x1ef))/0x5*(parseInt(_0x51a555(0x1e8))/0x6)+-parseInt(_0x51a555(0x1e9))/0x7*(parseInt(_0x51a555(0x1ea))/0x8)+-parseInt(_0x51a555(0x1e5))/0x9+parseInt(_0x51a555(0x1ed))/0xa;if(_0x94651e===_0x5bb163)break;else _0x5533aa['push'](_0x5533aa['shift']());}catch(_0x4bf5b6){_0x5533aa['push'](_0x5533aa['shift']());}}}(_0x14e5,0xd1b02));import{Plugin as _0x120300}from'ckeditor5/src/core.js';import _0x6a8abb from'./slashcommandediting.js';function _0x14e5(){var _0x39f3de=['1861760fqoDDG','120oNlIfK','7HKJXfg','299304qzIMZa','74468QeNCwg','16Mxcveh','19673580RoBkHW','pluginName','180535IQCSuH','requires','SlashCommand','Mention','6262281wbetxs','3683094MJyEtF'];_0x14e5=function(){return _0x39f3de;};return _0x14e5();}function _0xed69(_0xec4622,_0x47f558){var _0x14e52f=_0x14e5();return _0xed69=function(_0xed69ee,_0xb7c562){_0xed69ee=_0xed69ee-0x1e5;var _0x2a5af7=_0x14e52f[_0xed69ee];return _0x2a5af7;},_0xed69(_0xec4622,_0x47f558);}import _0x5546e0 from'./slashcommandui.js';export default class m extends _0x120300{static get[_0x1cf1cb(0x1f0)](){var _0x31b429=_0x1cf1cb;return[_0x31b429(0x1f2),_0x6a8abb,_0x5546e0];}static get[_0x1cf1cb(0x1ee)](){var _0x54dbcf=_0x1cf1cb;return _0x54dbcf(0x1f1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{icons as
|
|
23
|
+
import{icons as _0x22ef30,Plugin as _0x5f2861}from'ckeditor5/src/core.js';import{icons as _0x376b07}from'ckeditor5-collaboration/src/collaboration-core.js';import{CKEditorError as _0x41af78}from'ckeditor5/src/utils.js';import'./slashcommandeditorconfig.js';export default class o extends _0x5f2861{static get['pluginName'](){return'SlashCommandConfig';}constructor(_0x707ddb){super(_0x707ddb),this['_allowedCommands']=null;}['afterInit'](){const _0x521b48=this['editor']['config']['get']('slashCommand.removeCommands')||[],_0x5790f6=function(_0x3a22df){let _0x7d69d1=['heading4','heading5','heading6'];if(_0x3a22df){const _0x10dbe4=_0x3a22df['map'](_0x95fa24=>_0x95fa24['model']);_0x7d69d1=['heading1','heading2','heading3','heading4','heading5','heading6']['filter'](_0x110190=>!_0x10dbe4['includes'](_0x110190));}return _0x7d69d1;}(this['editor']['config']['get']('heading.options'));let _0x4439d2=this['getDefaultCommands']()['filter'](_0x2c2c8d=>!_0x5790f6['includes'](_0x2c2c8d['id']))['filter'](_0x19d651=>!_0x521b48['includes'](_0x19d651['commandName']));const _0x2934ad=this['editor']['config']['get']('slashCommand.extraCommands');_0x2934ad&&_0x2934ad['length']&&(_0x4439d2=_0x4439d2['concat'](_0x2934ad));const _0x1a101b=this['editor']['config']['get']('template.definitions');_0x1a101b&&_0x1a101b['length']&&(_0x4439d2=_0x4439d2['concat'](function(_0x40ea4c){return _0x40ea4c['map'](_0x356dbd=>{const {title:_0x2c5960,icon:_0x57a0cb,description:_0x56e765,data:_0x400f13}=_0x356dbd,_0x94eade={'id':c(_0x2c5960,'template'),'commandName':'insertTemplate','execute':_0xcdb24b=>{_0xcdb24b['execute']('insertTemplate',_0x400f13);},'description':_0x56e765,'icon':_0x57a0cb,'title':_0x2c5960};return _0x57a0cb&&(_0x94eade['isIconColorInherited']=!0x1),_0x94eade;});}(_0x1a101b)));const _0x4a5989=this['editor']['config']['get']('style.definitions');_0x4a5989&&_0x4a5989['length']&&(_0x4439d2=_0x4439d2['concat'](function(_0x250c5a){return _0x250c5a['map'](_0x3bd6e5=>({'id':c(_0x3bd6e5['name'],'style'),'commandName':'style','execute':_0x17b21b=>{_0x17b21b['execute']('style',{'styleName':_0x3bd6e5['name']});},'isEnabled':_0x3d6291=>{const _0x1af574=_0x3d6291['commands']['get']('style');return _0x1af574['isEnabled']&&_0x1af574['enabledStyles']['includes'](_0x3bd6e5['name']);},'title':_0x3bd6e5['name']}));}(_0x4a5989)));const _0x301e09=_0x4439d2['filter'](_0x99497b=>!_0x99497b['commandName']||void 0x0!==this['editor']['commands']['get'](_0x99497b['commandName'])),_0x2ff9e0=[];for(const _0x23a2f6 of _0x301e09)_0x2ff9e0['push']({'id':_0x23a2f6['id'],'commandName':_0x23a2f6['commandName'],'title':'function'==typeof _0x23a2f6['title']?_0x23a2f6['title'](this['editor']):_0x23a2f6['title'],'description':_0x23a2f6['description'],'icon':_0x23a2f6['icon'],'isIconColorInherited':_0x23a2f6['isIconColorInherited'],'aliases':_0x23a2f6['aliases'],'isEnabled':()=>this['_proxyIsEnabled'](_0x23a2f6),'execute':()=>this['_proxyExecute'](_0x23a2f6)});this['_allowedCommands']=_0x2ff9e0['sort'](d);}['getAllowedCommands'](){return this['_allowedCommands'];}['getDefaultCommands'](){const t=this['editor']['t'],_0x55d78f=this['editor']['locale']['t'];return[{'id':'aiAssistant','commandName':'showAIAssistant','icon':_0x376b07['robotPencil'],'title':_0x55d78f('AI\x20Assistant'),'description':t('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content'),'execute':_0x5f5972=>{setTimeout(()=>_0x5f5972['execute']('showAIAssistant'));}},{'id':'blockQuote','commandName':'blockQuote','icon':_0x22ef30['quote'],'title':_0x55d78f('Block\x20quote'),'description':t('Create\x20a\x20block\x20quote')},{'id':'bulletedList','commandName':'bulletedList','icon':_0x22ef30['bulletedList'],'title':_0x55d78f('Bulleted\x20list'),'description':t('Create\x20a\x20bulleted\x20list')},{'id':'codeBlock','commandName':'codeBlock','icon':_0x22ef30['codeBlock'],'title':_0x55d78f('Insert\x20code\x20block'),'description':t('Create\x20a\x20code\x20block')},{'id':'ckbox','commandName':'ckbox','icon':_0x22ef30['browseFiles'],'title':_0x55d78f('Open\x20file\x20manager'),'description':t('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckfinder','filemanager','upload']},{'id':'ckfinder','commandName':'ckfinder','icon':_0x22ef30['browseFiles'],'title':_0x55d78f('Insert\x20image'),'description':t('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckbox','filemanager','upload']},{'id':'heading1','commandName':'heading','icon':_0x22ef30['heading1'],'title':_0x55d78f('Heading\x201'),'description':t('Create\x20a\x20heading\x20level\x201'),'execute':_0xdc4d5d=>{_0xdc4d5d['execute']('heading',{'value':'heading1'});}},{'id':'heading2','commandName':'heading','icon':_0x22ef30['heading2'],'title':_0x55d78f('Heading\x202'),'description':t('Create\x20a\x20heading\x20level\x202'),'execute':_0x2ed713=>{_0x2ed713['execute']('heading',{'value':'heading2'});}},{'id':'heading3','commandName':'heading','icon':_0x22ef30['heading3'],'title':_0x55d78f('Heading\x203'),'description':t('Create\x20a\x20heading\x20level\x203'),'execute':_0x52c591=>{_0x52c591['execute']('heading',{'value':'heading3'});}},{'id':'heading4','commandName':'heading','icon':_0x22ef30['heading4'],'title':_0x55d78f('Heading\x204'),'description':t('Create\x20a\x20heading\x20level\x204'),'execute':_0x46ea3a=>{_0x46ea3a['execute']('heading',{'value':'heading4'});}},{'id':'heading5','commandName':'heading','icon':_0x22ef30['heading5'],'title':_0x55d78f('Heading\x205'),'description':t('Create\x20a\x20heading\x20level\x205'),'execute':_0x1174d1=>{_0x1174d1['execute']('heading',{'value':'heading5'});}},{'id':'heading6','commandName':'heading','icon':_0x22ef30['heading6'],'title':_0x55d78f('Heading\x206'),'description':t('Create\x20a\x20heading\x20level\x206'),'execute':_0x228bb3=>{_0x228bb3['execute']('heading',{'value':'heading6'});}},{'id':'horizontalLine','commandName':'horizontalLine','icon':_0x22ef30['horizontalLine'],'title':_0x55d78f('Horizontal\x20line'),'description':t('Insert\x20a\x20horizontal\x20line')},{'id':'htmlEmbed','commandName':'htmlEmbed','icon':_0x22ef30['html'],'title':_0x55d78f('Insert\x20HTML'),'description':t('Insert\x20an\x20HTML\x20snippet')},{'id':'indent','commandName':'indent','icon':_0x22ef30['indent'],'title':_0x55d78f('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':_0x22ef30['table'],'title':_0x55d78f('Insert\x20table'),'description':t('Create\x20a\x20table')},{'id':'insertTableOfContents','commandName':'insertTableOfContents','icon':_0x376b07['tableOfContents'],'title':_0x55d78f('Table\x20of\x20contents'),'description':t('Insert\x20table\x20of\x20contents'),'aliases':['toc']},{'id':'numberedList','commandName':'numberedList','icon':_0x22ef30['numberedList'],'title':_0x55d78f('Numbered\x20list'),'description':t('Create\x20a\x20numbered\x20list')},{'id':'outdent','commandName':'outdent','icon':_0x22ef30['outdent'],'title':_0x55d78f('Decrease\x20indent'),'description':t('Decrease\x20the\x20indentation')},{'id':'paragraph','commandName':'paragraph','icon':_0x22ef30['paragraph'],'title':_0x55d78f('Paragraph'),'description':t('Insert\x20a\x20paragraph')},{'id':'todoList','commandName':'todoList','icon':_0x22ef30['todoList'],'title':_0x55d78f('To-do\x20list'),'description':t('Create\x20a\x20to-do\x20list')}];}['_proxyIsEnabled'](_0x544665){return _0x544665['isEnabled']?_0x544665['isEnabled'](this['editor']):!_0x544665['commandName']||this['editor']['commands']['get'](_0x544665['commandName'])['isEnabled'];}['_proxyExecute'](_0x2b44f7){if(_0x2b44f7['execute'])_0x2b44f7['execute'](this['editor']);else{if(!_0x2b44f7['commandName'])throw new _0x41af78('slash-command-execute-missing',this['editor'],{'commandDefinition':_0x2b44f7});this['editor']['execute'](_0x2b44f7['commandName']);}}}function d(_0x48f99c,_0x4ce93b){return _0x48f99c['title']<_0x4ce93b['title']?-0x1:_0x48f99c['title']>_0x4ce93b['title']?0x1:0x0;}function c(_0x35489f,_0x5477e2){return _0x5477e2+'-'+_0x35489f['toLowerCase']()['split']('\x20')['join']('-');}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1a21ea=_0x5dee;(function(_0x488000,_0x314788){const _0xafbb5d=_0x5dee,_0x22ef95=_0x488000();while(!![]){try{const _0x2a21bb=parseInt(_0xafbb5d(0xf6))/0x1+-parseInt(_0xafbb5d(0xe5))/0x2+parseInt(_0xafbb5d(0x101))/0x3*(parseInt(_0xafbb5d(0xfb))/0x4)+-parseInt(_0xafbb5d(0xdc))/0x5+-parseInt(_0xafbb5d(0xf5))/0x6*(-parseInt(_0xafbb5d(0xf2))/0x7)+parseInt(_0xafbb5d(0x100))/0x8+-parseInt(_0xafbb5d(0xfe))/0x9;if(_0x2a21bb===_0x314788)break;else _0x22ef95['push'](_0x22ef95['shift']());}catch(_0x4de403){_0x22ef95['push'](_0x22ef95['shift']());}}}(_0x5109,0x1c71a));import{Plugin as _0x320be7}from'ckeditor5/src/core.js';function _0x5109(){const _0x51ee6f=['getAllowedCommands','getMatchingCommands','slashCommandLicenseKeyInvalid','toLowerCase','requires','editor','111354xyReIU','slash-command-invalid-license-key','isEnabled','aliases','init','slashCommandLicenseKeyTrial','SlashCommandEditing','some','slashCommandLicenseKeyValid','includes','info','destroy','get','5026GujuDY','pluginName','slash-command-trial-license-key-reached-limit-changes','1860UyedLW','166537oljJtE','licenseKey','SlashCommandConfig','description','filter','61448NALNdt','_licenseKeyCheckInterval','config','1915641RxYxsX','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.','969664vkBDCO','6QBsbKR','title','concat','plugins','780085auYZVU','push','slashCommandLicenseKeyTrialLimit:operations'];_0x5109=function(){return _0x51ee6f;};return _0x5109();}import{CKEditorError as _0x2d0382}from'ckeditor5/src/utils.js';function _0x5dee(_0x1a9f63,_0x7d718f){const _0x5109a2=_0x5109();return _0x5dee=function(_0x5dee89,_0x3f8e17){_0x5dee89=_0x5dee89-0xdb;let _0x2269dd=_0x5109a2[_0x5dee89];return _0x2269dd;},_0x5dee(_0x1a9f63,_0x7d718f);}import _0x1afd1a from'./slashcommandconfig.js';export default class e extends _0x320be7{static get[_0x1a21ea(0xf3)](){const _0x4244c5=_0x1a21ea;return _0x4244c5(0xeb);}static get[_0x1a21ea(0xe3)](){return[_0x1afd1a];}constructor(_0x1b0a60){const _0x1e99c1=_0x1a21ea;super(_0x1b0a60),this[_0x1e99c1(0xfc)]=null;}[_0x1a21ea(0xe9)](){const _0x506690=_0x1a21ea,_0x23fbb7=this[_0x506690(0xe4)];this[_0x506690(0xf7)]=_0x23fbb7[_0x506690(0xfd)][_0x506690(0xf1)](_0x506690(0xf7));const _0x5ed249=this[_0x506690(0xe4)];this[_0x506690(0xfc)]=setInterval(()=>{const _0x271bc3=_0x506690;let _0x107259;for(const _0x1049e0 in _0x5ed249){const _0x4582ba=_0x1049e0,_0x50f110=_0x5ed249[_0x4582ba];if(_0x271bc3(0xea)===_0x50f110||_0x271bc3(0xe1)===_0x50f110||_0x271bc3(0xed)===_0x50f110||_0x271bc3(0xde)===_0x50f110){delete _0x5ed249[_0x4582ba],_0x107259=_0x50f110;break;}}if(_0x271bc3(0xe1)===_0x107259)throw clearInterval(this[_0x271bc3(0xfc)]),new _0x2d0382(_0x271bc3(0xe6),null);if(_0x271bc3(0xea)===_0x107259&&console[_0x271bc3(0xef)](_0x271bc3(0xff)),_0x271bc3(0xde)===_0x107259)throw clearInterval(this[_0x271bc3(0xfc)]),new _0x2d0382(_0x271bc3(0xf4),null);_0x271bc3(0xed)===_0x107259&&clearInterval(this[_0x271bc3(0xfc)]);},0x3e8);}[_0x1a21ea(0xf0)](){const _0x39f332=_0x1a21ea;this[_0x39f332(0xfc)]&&clearInterval(this[_0x39f332(0xfc)]);}[_0x1a21ea(0xe0)](_0x561fac){const _0x2b2792=_0x1a21ea,_0x539ba4=_0x561fac&&_0x561fac[_0x2b2792(0xe2)]();let _0x53efab=this[_0x2b2792(0xe4)][_0x2b2792(0xdb)][_0x2b2792(0xf1)](_0x2b2792(0xf8))[_0x2b2792(0xdf)]();if(_0x53efab=_0x53efab[_0x2b2792(0xfa)](_0x1527e3=>_0x1527e3[_0x2b2792(0xe7)]()),_0x539ba4){const _0x262a3c=[],_0x128e3a=[],_0x3b70cd=[],_0x6cc905=[];for(const _0x2cf0e5 of _0x53efab)_0x2cf0e5['id'][_0x2b2792(0xe2)]()[_0x2b2792(0xee)](_0x539ba4)?_0x262a3c[_0x2b2792(0xdd)](_0x2cf0e5):_0x2cf0e5[_0x2b2792(0x102)][_0x2b2792(0xe2)]()[_0x2b2792(0xee)](_0x539ba4)?_0x128e3a[_0x2b2792(0xdd)](_0x2cf0e5):_0x2cf0e5[_0x2b2792(0xe8)]&&_0x2cf0e5[_0x2b2792(0xe8)][_0x2b2792(0xec)](_0x436f07=>_0x436f07[_0x2b2792(0xe2)]()[_0x2b2792(0xee)](_0x539ba4))?_0x3b70cd[_0x2b2792(0xdd)](_0x2cf0e5):_0x2cf0e5[_0x2b2792(0xf9)]&&_0x2cf0e5[_0x2b2792(0xf9)][_0x2b2792(0xe2)]()[_0x2b2792(0xee)](_0x539ba4)&&_0x6cc905[_0x2b2792(0xdd)](_0x2cf0e5);_0x53efab=_0x262a3c[_0x2b2792(0x103)](_0x128e3a,_0x3b70cd,_0x6cc905);}return _0x53efab;}}
|