@ckeditor/ckeditor5-slash-command 41.2.1 → 41.3.0-alpha.3
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/content-index.css +332 -0
- package/dist/editor-index.css +363 -0
- package/dist/index.css +1032 -0
- package/dist/translations/ar.d.ts +8 -0
- package/dist/translations/ar.js +23 -0
- package/dist/translations/bg.d.ts +8 -0
- package/dist/translations/bg.js +23 -0
- package/dist/translations/bn.d.ts +8 -0
- package/dist/translations/bn.js +23 -0
- package/dist/translations/ca.d.ts +8 -0
- package/dist/translations/ca.js +23 -0
- package/dist/translations/cs.d.ts +8 -0
- package/dist/translations/cs.js +23 -0
- package/dist/translations/da.d.ts +8 -0
- package/dist/translations/da.js +23 -0
- package/dist/translations/de.d.ts +8 -0
- package/dist/translations/de.js +23 -0
- package/dist/translations/el.d.ts +8 -0
- package/dist/translations/el.js +23 -0
- package/dist/translations/en-au.d.ts +8 -0
- package/dist/translations/en-au.js +23 -0
- package/dist/translations/en.d.ts +8 -0
- package/dist/translations/en.js +23 -0
- package/dist/translations/es.d.ts +8 -0
- package/dist/translations/es.js +23 -0
- package/dist/translations/et.d.ts +8 -0
- package/dist/translations/et.js +23 -0
- package/dist/translations/fi.d.ts +8 -0
- package/dist/translations/fi.js +23 -0
- package/dist/translations/fr.d.ts +8 -0
- package/dist/translations/fr.js +23 -0
- package/dist/translations/gl.d.ts +8 -0
- package/dist/translations/gl.js +23 -0
- package/dist/translations/he.d.ts +8 -0
- package/dist/translations/he.js +23 -0
- package/dist/translations/hi.d.ts +8 -0
- package/dist/translations/hi.js +23 -0
- package/dist/translations/hr.d.ts +8 -0
- package/dist/translations/hr.js +23 -0
- package/dist/translations/hu.d.ts +8 -0
- package/dist/translations/hu.js +23 -0
- package/dist/translations/id.d.ts +8 -0
- package/dist/translations/id.js +23 -0
- package/dist/translations/it.d.ts +8 -0
- package/dist/translations/it.js +23 -0
- package/dist/translations/ja.d.ts +8 -0
- package/dist/translations/ja.js +23 -0
- package/dist/translations/ko.d.ts +8 -0
- package/dist/translations/ko.js +23 -0
- package/dist/translations/lt.d.ts +8 -0
- package/dist/translations/lt.js +23 -0
- package/dist/translations/lv.d.ts +8 -0
- package/dist/translations/lv.js +23 -0
- package/dist/translations/ms.d.ts +8 -0
- package/dist/translations/ms.js +23 -0
- package/dist/translations/nl.d.ts +8 -0
- package/dist/translations/nl.js +23 -0
- package/dist/translations/no.d.ts +8 -0
- package/dist/translations/no.js +23 -0
- package/dist/translations/pl.d.ts +8 -0
- package/dist/translations/pl.js +23 -0
- package/dist/translations/pt-br.d.ts +8 -0
- package/dist/translations/pt-br.js +23 -0
- package/dist/translations/pt.d.ts +8 -0
- package/dist/translations/pt.js +23 -0
- package/dist/translations/ro.d.ts +8 -0
- package/dist/translations/ro.js +23 -0
- package/dist/translations/ru.d.ts +8 -0
- package/dist/translations/ru.js +23 -0
- package/dist/translations/sk.d.ts +8 -0
- package/dist/translations/sk.js +23 -0
- package/dist/translations/sr.d.ts +8 -0
- package/dist/translations/sr.js +23 -0
- package/dist/translations/sv.d.ts +8 -0
- package/dist/translations/sv.js +23 -0
- package/dist/translations/th.d.ts +8 -0
- package/dist/translations/th.js +23 -0
- package/dist/translations/tr.d.ts +8 -0
- package/dist/translations/tr.js +23 -0
- package/dist/translations/uk.d.ts +8 -0
- package/dist/translations/uk.js +23 -0
- package/dist/translations/uz.d.ts +8 -0
- package/dist/translations/uz.js +23 -0
- package/dist/translations/vi.d.ts +8 -0
- package/dist/translations/vi.js +23 -0
- package/dist/translations/zh-cn.d.ts +8 -0
- package/dist/translations/zh-cn.js +23 -0
- package/dist/translations/zh.d.ts +8 -0
- package/dist/translations/zh.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,246 @@
|
|
|
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/slashcommandconfig
|
|
11
|
+
* @publicApi
|
|
12
|
+
*/
|
|
13
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core.js';
|
|
14
|
+
import './slashcommandeditorconfig.js';
|
|
15
|
+
/**
|
|
16
|
+
* This plugin takes care of the configuration for {@link module:slash-command/slashcommand~SlashCommand}:
|
|
17
|
+
*
|
|
18
|
+
* * It manages the configuration of slash commands in the editor.
|
|
19
|
+
* * It provides default slash commands for common editor features.
|
|
20
|
+
* * It allows defining extra commands and reducing the list of defaults using the editor configuration.
|
|
21
|
+
* See {@link module:slash-command/slashcommandconfig~SlashCommandConfig} to learn more.
|
|
22
|
+
*
|
|
23
|
+
* @extends module:core/plugin~Plugin
|
|
24
|
+
*/
|
|
25
|
+
export default class SlashCommandConfig extends Plugin {
|
|
26
|
+
/**
|
|
27
|
+
* @inheritDoc
|
|
28
|
+
*/
|
|
29
|
+
static get pluginName(): "SlashCommandConfig";
|
|
30
|
+
/**
|
|
31
|
+
* @inheritDoc
|
|
32
|
+
*/
|
|
33
|
+
constructor(editor: Editor);
|
|
34
|
+
/**
|
|
35
|
+
* @inheritDoc
|
|
36
|
+
*/
|
|
37
|
+
afterInit(): void;
|
|
38
|
+
/**
|
|
39
|
+
* Returns an array of slash command definitions enabled in the editor.
|
|
40
|
+
*
|
|
41
|
+
* This method takes into account the following:
|
|
42
|
+
* * The {@link module:slash-command/slashcommandconfig~SlashCommandConfig#getDefaultCommands list of default commands}.
|
|
43
|
+
* * The presence of {@link module:core/editor/editorconfig~EditorConfig#plugins editor features} (plugins).
|
|
44
|
+
* * The {@link module:slash-command/slashcommandeditorconfig~SlashCommandEditorConfig#removeCommands} configuration.
|
|
45
|
+
* * The {@link module:slash-command/slashcommandeditorconfig~SlashCommandEditorConfig#extraCommands} configuration.
|
|
46
|
+
*/
|
|
47
|
+
getAllowedCommands(): Array<SlashCommandDefinition>;
|
|
48
|
+
/**
|
|
49
|
+
* Returns a list of default slash command {@link module:slash-command/slashcommandconfig~SlashCommandDefinition definitions}
|
|
50
|
+
* for common editor features. The available definitions are as follows:
|
|
51
|
+
*
|
|
52
|
+
* ```js
|
|
53
|
+
* [
|
|
54
|
+
* {
|
|
55
|
+
* id: 'blockQuote',
|
|
56
|
+
* commandName: 'blockQuote',
|
|
57
|
+
* title: t( 'Block quote' ),
|
|
58
|
+
* // ...
|
|
59
|
+
* },
|
|
60
|
+
* {
|
|
61
|
+
* id: 'bulletedList',
|
|
62
|
+
* commandName: 'bulletedList',
|
|
63
|
+
* title: t( 'Bulleted list' ),
|
|
64
|
+
* // ...
|
|
65
|
+
* },
|
|
66
|
+
* {
|
|
67
|
+
* id: 'codeBlock',
|
|
68
|
+
* commandName: 'codeBlock',
|
|
69
|
+
* title: t( 'Insert code block' ),
|
|
70
|
+
* // ...
|
|
71
|
+
* },
|
|
72
|
+
* {
|
|
73
|
+
* id: 'ckbox',
|
|
74
|
+
* commandName: 'ckbox',
|
|
75
|
+
* title: t( 'Open file manager' ),
|
|
76
|
+
* // ...
|
|
77
|
+
* },
|
|
78
|
+
* {
|
|
79
|
+
* id: 'ckfinder',
|
|
80
|
+
* commandName: 'ckfinder',
|
|
81
|
+
* title: t( 'Insert image' ),
|
|
82
|
+
* // ...
|
|
83
|
+
* },
|
|
84
|
+
* {
|
|
85
|
+
* id: 'heading1',
|
|
86
|
+
* commandName: 'heading',
|
|
87
|
+
* title: t( 'Heading 1' ),
|
|
88
|
+
* // ...
|
|
89
|
+
* },
|
|
90
|
+
* {
|
|
91
|
+
* id: 'heading2',
|
|
92
|
+
* commandName: 'heading',
|
|
93
|
+
* title: t( 'Heading 2' ),
|
|
94
|
+
* // ...
|
|
95
|
+
* },
|
|
96
|
+
* {
|
|
97
|
+
* id: 'heading3',
|
|
98
|
+
* commandName: 'heading',
|
|
99
|
+
* title: t( 'Heading 3' ),
|
|
100
|
+
* // ...
|
|
101
|
+
* },
|
|
102
|
+
* {
|
|
103
|
+
* id: 'heading4',
|
|
104
|
+
* commandName: 'heading',
|
|
105
|
+
* title: t( 'Heading 4' ),
|
|
106
|
+
* // ...
|
|
107
|
+
* },
|
|
108
|
+
* {
|
|
109
|
+
* id: 'heading5',
|
|
110
|
+
* commandName: 'heading',
|
|
111
|
+
* title: t( 'Heading 5' ),
|
|
112
|
+
* // ...
|
|
113
|
+
* },
|
|
114
|
+
* {
|
|
115
|
+
* id: 'heading6',
|
|
116
|
+
* commandName: 'heading',
|
|
117
|
+
* title: t( 'Heading 6' ),
|
|
118
|
+
* // ...
|
|
119
|
+
* },
|
|
120
|
+
* {
|
|
121
|
+
* id: 'horizontalLine',
|
|
122
|
+
* commandName: 'horizontalLine',
|
|
123
|
+
* title: t( 'Horizontal line' ),
|
|
124
|
+
* // ...
|
|
125
|
+
* },
|
|
126
|
+
* {
|
|
127
|
+
* id: 'htmlEmbed',
|
|
128
|
+
* commandName: 'htmlEmbed',
|
|
129
|
+
* title: t( 'Insert HTML' ),
|
|
130
|
+
* // ...
|
|
131
|
+
* },
|
|
132
|
+
* {
|
|
133
|
+
* id: 'indent',
|
|
134
|
+
* commandName: 'indent',
|
|
135
|
+
* title: t( 'Increase indent' ),
|
|
136
|
+
* // ...
|
|
137
|
+
* },
|
|
138
|
+
* {
|
|
139
|
+
* id: 'insertMermaidCommand',
|
|
140
|
+
* commandName: 'insertMermaidCommand',
|
|
141
|
+
* title: t( 'Insert Mermaid diagram' ),
|
|
142
|
+
* // ...
|
|
143
|
+
* },
|
|
144
|
+
* {
|
|
145
|
+
* id: 'insertTable',
|
|
146
|
+
* commandName: 'insertTable',
|
|
147
|
+
* title: t( 'Insert table' ),
|
|
148
|
+
* // ...
|
|
149
|
+
* },
|
|
150
|
+
* {
|
|
151
|
+
* id: 'insertTableOfContents',
|
|
152
|
+
* commandName: 'insertTableOfContents',
|
|
153
|
+
* title: t( 'Table of contents' ),
|
|
154
|
+
* // ...
|
|
155
|
+
* },
|
|
156
|
+
* {
|
|
157
|
+
* id: 'numberedList',
|
|
158
|
+
* commandName: 'numberedList',
|
|
159
|
+
* title: t( 'Numbered list' ),
|
|
160
|
+
* // ...
|
|
161
|
+
* },
|
|
162
|
+
* {
|
|
163
|
+
* id: 'outdent',
|
|
164
|
+
* commandName: 'outdent',
|
|
165
|
+
* title: t( 'Decrease indent' ),
|
|
166
|
+
* // ...
|
|
167
|
+
* },
|
|
168
|
+
* {
|
|
169
|
+
* id: 'paragraph',
|
|
170
|
+
* commandName: 'paragraph',
|
|
171
|
+
* title: t( 'Paragraph' ),
|
|
172
|
+
* // ...
|
|
173
|
+
* },
|
|
174
|
+
* {
|
|
175
|
+
* id: 'todoList',
|
|
176
|
+
* commandName: 'todoList',
|
|
177
|
+
* title: t( 'To-do list' ),
|
|
178
|
+
* // ...
|
|
179
|
+
* }
|
|
180
|
+
* ]
|
|
181
|
+
*/
|
|
182
|
+
getDefaultCommands(): Array<SlashCommandDefinition>;
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* An object describing a single command definition in the configuration.
|
|
186
|
+
*/
|
|
187
|
+
export interface SlashCommandDefinition {
|
|
188
|
+
/**
|
|
189
|
+
* A unique ID matched with the text that follows the slash ("/") character typed by the user,
|
|
190
|
+
* e.g. 'blockQuote', 'heading1'. See {@link module:slash-command/slashcommandconfig~SlashCommandDefinition#aliases}
|
|
191
|
+
* to learn about slash command aliases that provide a similar functionality.
|
|
192
|
+
*/
|
|
193
|
+
id: string;
|
|
194
|
+
/**
|
|
195
|
+
* The name of the command to be executed if the `execute` property was not provided,
|
|
196
|
+
* for example, 'blockQuote', 'heading'. See {@link module:core/editor/editor~Editor#commands} to learn more about available commands.
|
|
197
|
+
*/
|
|
198
|
+
commandName?: string;
|
|
199
|
+
/**
|
|
200
|
+
* A meaningful title for the command displayed in a dropdown list of possible commands. It can be a string
|
|
201
|
+
* or a callback function returning a string.
|
|
202
|
+
*/
|
|
203
|
+
title: Function | string;
|
|
204
|
+
/**
|
|
205
|
+
* An optional description for the command. Useful when the title is not descriptive enough.
|
|
206
|
+
*/
|
|
207
|
+
description?: string;
|
|
208
|
+
/**
|
|
209
|
+
* An SVG string representing the icon of the command. If not provided, a generic icon will be used instead.
|
|
210
|
+
* The default size of the icon is 20x20 pixels. Be sure to set the correct `viewBox` attribute in the icon source.
|
|
211
|
+
*
|
|
212
|
+
* See {@link module:slash-command/slashcommandconfig~SlashCommandDefinition#isIconColorInherited}.
|
|
213
|
+
*/
|
|
214
|
+
icon?: string;
|
|
215
|
+
/**
|
|
216
|
+
* By default, slash command icons are monochromatic and inherit the color of the text in the editor UI.
|
|
217
|
+
* Setting this property to `false` disables this inheritance and allows the use of complex (colorful) icons.
|
|
218
|
+
*
|
|
219
|
+
* Learn more in {@link module:ui/icon/iconview~IconView#isColorInherited}.
|
|
220
|
+
*/
|
|
221
|
+
isIconColorInherited?: boolean;
|
|
222
|
+
/**
|
|
223
|
+
* An optional list of aliases (extending the base
|
|
224
|
+
* {@link module:slash-command/slashcommandconfig~SlashCommandDefinition#id}) to be used when filtering the list of slash commands
|
|
225
|
+
* based on the text that follows the slash ("/") character.
|
|
226
|
+
*/
|
|
227
|
+
aliases?: Array<string>;
|
|
228
|
+
/**
|
|
229
|
+
* A callback function defining custom logic to decide if the command should be displayed
|
|
230
|
+
* in the dropdown list. If not provided, the default command's {@link module:core/command~Command#isEnabled} property is used instead.
|
|
231
|
+
* If it's also unavailable, it falls back to `true`. This property is checked when a user types the slash ("/") character
|
|
232
|
+
* or changes the text that follows it.
|
|
233
|
+
*
|
|
234
|
+
* This callback gets an {@link module:core/editor/editor~Editor} instance as a parameter.
|
|
235
|
+
*/
|
|
236
|
+
isEnabled?: Function;
|
|
237
|
+
/**
|
|
238
|
+
* A callback function defining custom logic for executing the command. If not provided, the default
|
|
239
|
+
* command's {@link module:core/command~Command#execute} is used instead. Custom logic is useful especially when the slash command
|
|
240
|
+
* requires some arguments (acts like a wrapper) or combines some complex logic. This property is obligatory if
|
|
241
|
+
* {@link module:slash-command/slashcommandconfig~SlashCommandDefinition#commandName} was not passed.
|
|
242
|
+
*
|
|
243
|
+
* This callback gets an {@link module:core/editor/editor~Editor} instance as a parameter.
|
|
244
|
+
*/
|
|
245
|
+
execute?: Function;
|
|
246
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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/slashcommandediting
|
|
11
|
+
*/
|
|
12
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core.js';
|
|
13
|
+
import SlashCommandConfig, { type SlashCommandDefinition } from './slashcommandconfig.js';
|
|
14
|
+
/**
|
|
15
|
+
* Provides the editing functionality of the {@link module:slash-command/slashcommand~SlashCommand} feature.
|
|
16
|
+
*
|
|
17
|
+
* @extends module:core/plugin~Plugin
|
|
18
|
+
*/
|
|
19
|
+
export default class SlashCommandEditing extends Plugin {
|
|
20
|
+
licenseKey: string;
|
|
21
|
+
/**
|
|
22
|
+
* @inheritDoc
|
|
23
|
+
*/
|
|
24
|
+
static get pluginName(): "SlashCommandEditing";
|
|
25
|
+
/**
|
|
26
|
+
* @inheritDoc
|
|
27
|
+
*/
|
|
28
|
+
static get requires(): readonly [typeof SlashCommandConfig];
|
|
29
|
+
/**
|
|
30
|
+
* @inheritDoc
|
|
31
|
+
*/
|
|
32
|
+
constructor(editor: Editor);
|
|
33
|
+
/**
|
|
34
|
+
* @inheritDoc
|
|
35
|
+
*/
|
|
36
|
+
init(): void;
|
|
37
|
+
/**
|
|
38
|
+
* @inheritDoc
|
|
39
|
+
*/
|
|
40
|
+
destroy(): void;
|
|
41
|
+
/**
|
|
42
|
+
* Returns the list of matching enabled command definitions for the specific query text case-insensitively.
|
|
43
|
+
*/
|
|
44
|
+
getMatchingCommands(queryString: string): Array<SlashCommandDefinition>;
|
|
45
|
+
}
|
|
@@ -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.3.0-alpha.3",
|
|
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.3.0-alpha.3",
|
|
16
|
+
"ckeditor5": "41.3.0-alpha.3",
|
|
17
|
+
"ckeditor5-collaboration": "41.3.0-alpha.3"
|
|
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 _0x36f2(){var _0x3004c6=['5015742SXTShD','9MtVjST','655332YumCOI','3119145jocQnk','2982050TixHog','15538963foYdho','2zdPzaB','10pjrahm','7nvterb','821490CsYeuj','2596192YrpMyR'];_0x36f2=function(){return _0x3004c6;};return _0x36f2();}(function(_0x4c8353,_0x57e3db){var _0x151f3e=_0xf638,_0x479715=_0x4c8353();while(!![]){try{var _0x16fd7d=-parseInt(_0x151f3e(0x6d))/0x1+-parseInt(_0x151f3e(0x75))/0x2*(-parseInt(_0x151f3e(0x72))/0x3)+parseInt(_0x151f3e(0x71))/0x4+-parseInt(_0x151f3e(0x73))/0x5+parseInt(_0x151f3e(0x6f))/0x6*(-parseInt(_0x151f3e(0x77))/0x7)+-parseInt(_0x151f3e(0x6e))/0x8*(-parseInt(_0x151f3e(0x70))/0x9)+parseInt(_0x151f3e(0x76))/0xa*(parseInt(_0x151f3e(0x74))/0xb);if(_0x16fd7d===_0x57e3db)break;else _0x479715['push'](_0x479715['shift']());}catch(_0x22226f){_0x479715['push'](_0x479715['shift']());}}}(_0x36f2,0xa7b00));export{default as SlashCommand}from'./slashcommand.js';export{default as SlashCommandConfig}from'./slashcommandconfig.js';function _0xf638(_0x570d89,_0x4aefdd){var _0x36f225=_0x36f2();return _0xf638=function(_0xf63812,_0x40dc59){_0xf63812=_0xf63812-0x6d;var _0x1911e1=_0x36f225[_0xf63812];return _0x1911e1;},_0xf638(_0x570d89,_0x4aefdd);}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
|
+
function _0x2af2(_0xca8e2d,_0x564074){var _0x28f574=_0x28f5();return _0x2af2=function(_0x2af285,_0x62f624){_0x2af285=_0x2af285-0x17f;var _0x52dedd=_0x28f574[_0x2af285];return _0x52dedd;},_0x2af2(_0xca8e2d,_0x564074);}var _0x14d609=_0x2af2;(function(_0x74f86a,_0x388d35){var _0x302931=_0x2af2,_0x33f014=_0x74f86a();while(!![]){try{var _0x25dc03=parseInt(_0x302931(0x189))/0x1+-parseInt(_0x302931(0x183))/0x2*(parseInt(_0x302931(0x186))/0x3)+-parseInt(_0x302931(0x17f))/0x4*(parseInt(_0x302931(0x182))/0x5)+parseInt(_0x302931(0x18b))/0x6*(-parseInt(_0x302931(0x184))/0x7)+-parseInt(_0x302931(0x187))/0x8*(parseInt(_0x302931(0x188))/0x9)+-parseInt(_0x302931(0x18d))/0xa+parseInt(_0x302931(0x180))/0xb;if(_0x25dc03===_0x388d35)break;else _0x33f014['push'](_0x33f014['shift']());}catch(_0x509ec9){_0x33f014['push'](_0x33f014['shift']());}}}(_0x28f5,0x1c61a));function _0x28f5(){var _0x382366=['pluginName','518920ODnIEJ','4VbTheF','5972043iUbjsQ','SlashCommand','220435zcWMgE','610Bswhor','329RyiqEK','requires','1797OtalGa','8EIhPyb','194454ZgtEXq','101520tPoAuu','Mention','29094TMRetL'];_0x28f5=function(){return _0x382366;};return _0x28f5();}import{Plugin as _0x38a7a1}from'ckeditor5/src/core.js';import _0x292b90 from'./slashcommandediting.js';import _0x16986f from'./slashcommandui.js';export default class m extends _0x38a7a1{static get[_0x14d609(0x185)](){var _0x49c2ae=_0x14d609;return[_0x49c2ae(0x18a),_0x292b90,_0x16986f];}static get[_0x14d609(0x18c)](){var _0x583afe=_0x14d609;return _0x583afe(0x181);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{icons as
|
|
23
|
+
import{icons as _0x16a1b4,Plugin as _0x27e23a}from'ckeditor5/src/core.js';import{icons as _0x5e4d0}from'ckeditor5-collaboration/src/collaboration-core.js';import{CKEditorError as _0x4c52fb}from'ckeditor5/src/utils.js';import'./slashcommandeditorconfig.js';export default class o extends _0x27e23a{static get['pluginName'](){return'SlashCommandConfig';}constructor(_0x37d7cb){super(_0x37d7cb),this['_allowedCommands']=null;}['afterInit'](){const _0x1cf941=this['editor']['config']['get']('slashCommand.removeCommands')||[],_0x3d3e50=function(_0x6b2f07){let _0x487c16=['heading4','heading5','heading6'];if(_0x6b2f07){const _0x56eb89=_0x6b2f07['map'](_0x13ce05=>_0x13ce05['model']);_0x487c16=['heading1','heading2','heading3','heading4','heading5','heading6']['filter'](_0x2db046=>!_0x56eb89['includes'](_0x2db046));}return _0x487c16;}(this['editor']['config']['get']('heading.options'));let _0x2095c6=this['getDefaultCommands']()['filter'](_0x399f8a=>!_0x3d3e50['includes'](_0x399f8a['id']))['filter'](_0x5edc6f=>!_0x1cf941['includes'](_0x5edc6f['commandName']));const _0x1fd2f4=this['editor']['config']['get']('slashCommand.extraCommands');_0x1fd2f4&&_0x1fd2f4['length']&&(_0x2095c6=_0x2095c6['concat'](_0x1fd2f4));const _0x6616af=this['editor']['config']['get']('template.definitions');_0x6616af&&_0x6616af['length']&&(_0x2095c6=_0x2095c6['concat'](function(_0x70c721){return _0x70c721['map'](_0x36f485=>{const {title:_0x547ba8,icon:_0x55e73c,description:_0x109d74,data:_0x4262df}=_0x36f485,_0x43af32={'id':c(_0x547ba8,'template'),'commandName':'insertTemplate','execute':_0x1cb1cd=>{_0x1cb1cd['execute']('insertTemplate',_0x4262df);},'description':_0x109d74,'icon':_0x55e73c,'title':_0x547ba8};return _0x55e73c&&(_0x43af32['isIconColorInherited']=!0x1),_0x43af32;});}(_0x6616af)));const _0x1dced5=this['editor']['config']['get']('style.definitions');_0x1dced5&&_0x1dced5['length']&&(_0x2095c6=_0x2095c6['concat'](function(_0x1c45b1){return _0x1c45b1['map'](_0x1887b8=>({'id':c(_0x1887b8['name'],'style'),'commandName':'style','execute':_0x2cd43c=>{_0x2cd43c['execute']('style',{'styleName':_0x1887b8['name']});},'isEnabled':_0x311170=>{const _0x5371e6=_0x311170['commands']['get']('style');return _0x5371e6['isEnabled']&&_0x5371e6['enabledStyles']['includes'](_0x1887b8['name']);},'title':_0x1887b8['name']}));}(_0x1dced5)));const _0x476866=_0x2095c6['filter'](_0x2fe71c=>!_0x2fe71c['commandName']||void 0x0!==this['editor']['commands']['get'](_0x2fe71c['commandName'])),_0x32816e=[];for(const _0x1d84e1 of _0x476866)_0x32816e['push']({'id':_0x1d84e1['id'],'commandName':_0x1d84e1['commandName'],'title':'function'==typeof _0x1d84e1['title']?_0x1d84e1['title'](this['editor']):_0x1d84e1['title'],'description':_0x1d84e1['description'],'icon':_0x1d84e1['icon'],'isIconColorInherited':_0x1d84e1['isIconColorInherited'],'aliases':_0x1d84e1['aliases'],'isEnabled':()=>this['_proxyIsEnabled'](_0x1d84e1),'execute':()=>this['_proxyExecute'](_0x1d84e1)});this['_allowedCommands']=_0x32816e['sort'](d);}['getAllowedCommands'](){return this['_allowedCommands'];}['getDefaultCommands'](){const t=this['editor']['t'],_0x219cc3=this['editor']['locale']['t'];return[{'id':'aiAssistant','commandName':'showAIAssistant','icon':_0x5e4d0['robotPencil'],'title':_0x219cc3('AI\x20Assistant'),'description':t('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content'),'execute':_0x484f3c=>{setTimeout(()=>_0x484f3c['execute']('showAIAssistant'));}},{'id':'blockQuote','commandName':'blockQuote','icon':_0x16a1b4['quote'],'title':_0x219cc3('Block\x20quote'),'description':t('Create\x20a\x20block\x20quote')},{'id':'bulletedList','commandName':'bulletedList','icon':_0x16a1b4['bulletedList'],'title':_0x219cc3('Bulleted\x20list'),'description':t('Create\x20a\x20bulleted\x20list')},{'id':'codeBlock','commandName':'codeBlock','icon':_0x16a1b4['codeBlock'],'title':_0x219cc3('Insert\x20code\x20block'),'description':t('Create\x20a\x20code\x20block')},{'id':'ckbox','commandName':'ckbox','icon':_0x16a1b4['browseFiles'],'title':_0x219cc3('Open\x20file\x20manager'),'description':t('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckfinder','filemanager','upload']},{'id':'ckfinder','commandName':'ckfinder','icon':_0x16a1b4['browseFiles'],'title':_0x219cc3('Insert\x20image'),'description':t('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckbox','filemanager','upload']},{'id':'heading1','commandName':'heading','icon':_0x16a1b4['heading1'],'title':_0x219cc3('Heading\x201'),'description':t('Create\x20a\x20heading\x20level\x201'),'execute':_0xae8fc4=>{_0xae8fc4['execute']('heading',{'value':'heading1'});}},{'id':'heading2','commandName':'heading','icon':_0x16a1b4['heading2'],'title':_0x219cc3('Heading\x202'),'description':t('Create\x20a\x20heading\x20level\x202'),'execute':_0x13d763=>{_0x13d763['execute']('heading',{'value':'heading2'});}},{'id':'heading3','commandName':'heading','icon':_0x16a1b4['heading3'],'title':_0x219cc3('Heading\x203'),'description':t('Create\x20a\x20heading\x20level\x203'),'execute':_0x496369=>{_0x496369['execute']('heading',{'value':'heading3'});}},{'id':'heading4','commandName':'heading','icon':_0x16a1b4['heading4'],'title':_0x219cc3('Heading\x204'),'description':t('Create\x20a\x20heading\x20level\x204'),'execute':_0x1fa403=>{_0x1fa403['execute']('heading',{'value':'heading4'});}},{'id':'heading5','commandName':'heading','icon':_0x16a1b4['heading5'],'title':_0x219cc3('Heading\x205'),'description':t('Create\x20a\x20heading\x20level\x205'),'execute':_0x10763a=>{_0x10763a['execute']('heading',{'value':'heading5'});}},{'id':'heading6','commandName':'heading','icon':_0x16a1b4['heading6'],'title':_0x219cc3('Heading\x206'),'description':t('Create\x20a\x20heading\x20level\x206'),'execute':_0x3f0044=>{_0x3f0044['execute']('heading',{'value':'heading6'});}},{'id':'horizontalLine','commandName':'horizontalLine','icon':_0x16a1b4['horizontalLine'],'title':_0x219cc3('Horizontal\x20line'),'description':t('Insert\x20a\x20horizontal\x20line')},{'id':'htmlEmbed','commandName':'htmlEmbed','icon':_0x16a1b4['html'],'title':_0x219cc3('Insert\x20HTML'),'description':t('Insert\x20an\x20HTML\x20snippet')},{'id':'indent','commandName':'indent','icon':_0x16a1b4['indent'],'title':_0x219cc3('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':_0x16a1b4['table'],'title':_0x219cc3('Insert\x20table'),'description':t('Create\x20a\x20table')},{'id':'insertTableOfContents','commandName':'insertTableOfContents','icon':_0x5e4d0['tableOfContents'],'title':_0x219cc3('Table\x20of\x20contents'),'description':t('Insert\x20table\x20of\x20contents'),'aliases':['toc']},{'id':'numberedList','commandName':'numberedList','icon':_0x16a1b4['numberedList'],'title':_0x219cc3('Numbered\x20list'),'description':t('Create\x20a\x20numbered\x20list')},{'id':'outdent','commandName':'outdent','icon':_0x16a1b4['outdent'],'title':_0x219cc3('Decrease\x20indent'),'description':t('Decrease\x20the\x20indentation')},{'id':'paragraph','commandName':'paragraph','icon':_0x16a1b4['paragraph'],'title':_0x219cc3('Paragraph'),'description':t('Insert\x20a\x20paragraph')},{'id':'todoList','commandName':'todoList','icon':_0x16a1b4['todoList'],'title':_0x219cc3('To-do\x20list'),'description':t('Create\x20a\x20to-do\x20list')}];}['_proxyIsEnabled'](_0x1831c9){return _0x1831c9['isEnabled']?_0x1831c9['isEnabled'](this['editor']):!_0x1831c9['commandName']||this['editor']['commands']['get'](_0x1831c9['commandName'])['isEnabled'];}['_proxyExecute'](_0x21d2f3){if(_0x21d2f3['execute'])_0x21d2f3['execute'](this['editor']);else{if(!_0x21d2f3['commandName'])throw new _0x4c52fb('slash-command-execute-missing',this['editor'],{'commandDefinition':_0x21d2f3});this['editor']['execute'](_0x21d2f3['commandName']);}}}function d(_0x2c91a9,_0x326e65){return _0x2c91a9['title']<_0x326e65['title']?-0x1:_0x2c91a9['title']>_0x326e65['title']?0x1:0x0;}function c(_0x46ae8a,_0x2703c4){return _0x2703c4+'-'+_0x46ae8a['toLowerCase']()['split']('\x20')['join']('-');}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x196e03=_0xa770;(function(_0x3078d9,_0x4863fa){const _0x3355d1=_0xa770,_0x5bc8be=_0x3078d9();while(!![]){try{const _0x17f8b4=-parseInt(_0x3355d1(0xb3))/0x1+parseInt(_0x3355d1(0xaa))/0x2*(-parseInt(_0x3355d1(0x9f))/0x3)+parseInt(_0x3355d1(0x9c))/0x4+parseInt(_0x3355d1(0x93))/0x5+parseInt(_0x3355d1(0xa7))/0x6+-parseInt(_0x3355d1(0xa3))/0x7+parseInt(_0x3355d1(0x9e))/0x8*(parseInt(_0x3355d1(0x9d))/0x9);if(_0x17f8b4===_0x4863fa)break;else _0x5bc8be['push'](_0x5bc8be['shift']());}catch(_0x392720){_0x5bc8be['push'](_0x5bc8be['shift']());}}}(_0x3bda,0xc82f2));function _0xa770(_0x2e39a5,_0x538e46){const _0x3bdafe=_0x3bda();return _0xa770=function(_0xa77097,_0x2b2aac){_0xa77097=_0xa77097-0x8e;let _0x475881=_0x3bdafe[_0xa77097];return _0x475881;},_0xa770(_0x2e39a5,_0x538e46);}import{Plugin as _0x49193d}from'ckeditor5/src/core.js';import{CKEditorError as _0x796142}from'ckeditor5/src/utils.js';import _0x214e1b from'./slashcommandconfig.js';function _0x3bda(){const _0x13057d=['1780317SIWwMs','get','aliases','isEnabled','6025284NJrSiN','title','getMatchingCommands','163674WWKIbp','some','includes','concat','plugins','slashCommandLicenseKeyValid','filter','_licenseKeyCheckInterval','toLowerCase','1448284mrKpvU','slashCommandLicenseKeyTrialLimit:operations','pluginName','slashCommandLicenseKeyTrial','getAllowedCommands','SlashCommandEditing','slash-command-trial-license-key-reached-limit-changes','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.','editor','1025095skOXHn','push','init','description','slashCommandLicenseKeyInvalid','info','SlashCommandConfig','config','licenseKey','5024344TNLbJK','497079GXumio','32OdcdAt','6uvVsBT','slash-command-invalid-license-key','destroy','requires'];_0x3bda=function(){return _0x13057d;};return _0x3bda();}export default class e extends _0x49193d{static get[_0x196e03(0xb5)](){const _0x6278b2=_0x196e03;return _0x6278b2(0x8f);}static get[_0x196e03(0xa2)](){return[_0x214e1b];}constructor(_0x118878){const _0x14d56e=_0x196e03;super(_0x118878),this[_0x14d56e(0xb1)]=null;}[_0x196e03(0x95)](){const _0x1f1604=_0x196e03,_0x1183d2=this[_0x1f1604(0x92)];this[_0x1f1604(0x9b)]=_0x1183d2[_0x1f1604(0x9a)][_0x1f1604(0xa4)](_0x1f1604(0x9b));const _0x2af5=this[_0x1f1604(0x92)];this[_0x1f1604(0xb1)]=setInterval(()=>{const _0x2b5cc=_0x1f1604;let _0x9c6308;for(const _0x4d7ef6 in _0x2af5){const _0x5c8713=_0x4d7ef6,_0x31548a=_0x2af5[_0x5c8713];if(_0x2b5cc(0xb6)===_0x31548a||_0x2b5cc(0x97)===_0x31548a||_0x2b5cc(0xaf)===_0x31548a||_0x2b5cc(0xb4)===_0x31548a){delete _0x2af5[_0x5c8713],_0x9c6308=_0x31548a;break;}}if(_0x2b5cc(0x97)===_0x9c6308)throw clearInterval(this[_0x2b5cc(0xb1)]),new _0x796142(_0x2b5cc(0xa0),null);if(_0x2b5cc(0xb6)===_0x9c6308&&console[_0x2b5cc(0x98)](_0x2b5cc(0x91)),_0x2b5cc(0xb4)===_0x9c6308)throw clearInterval(this[_0x2b5cc(0xb1)]),new _0x796142(_0x2b5cc(0x90),null);_0x2b5cc(0xaf)===_0x9c6308&&clearInterval(this[_0x2b5cc(0xb1)]);},0x3e8);}[_0x196e03(0xa1)](){const _0x519a58=_0x196e03;this[_0x519a58(0xb1)]&&clearInterval(this[_0x519a58(0xb1)]);}[_0x196e03(0xa9)](_0x35666d){const _0x168bf2=_0x196e03,_0x512588=_0x35666d&&_0x35666d[_0x168bf2(0xb2)]();let _0x5ddbbf=this[_0x168bf2(0x92)][_0x168bf2(0xae)][_0x168bf2(0xa4)](_0x168bf2(0x99))[_0x168bf2(0x8e)]();if(_0x5ddbbf=_0x5ddbbf[_0x168bf2(0xb0)](_0x17582e=>_0x17582e[_0x168bf2(0xa6)]()),_0x512588){const _0x1d4e22=[],_0x8866f3=[],_0x419823=[],_0x2ef06a=[];for(const _0x3e71e3 of _0x5ddbbf)_0x3e71e3['id'][_0x168bf2(0xb2)]()[_0x168bf2(0xac)](_0x512588)?_0x1d4e22[_0x168bf2(0x94)](_0x3e71e3):_0x3e71e3[_0x168bf2(0xa8)][_0x168bf2(0xb2)]()[_0x168bf2(0xac)](_0x512588)?_0x8866f3[_0x168bf2(0x94)](_0x3e71e3):_0x3e71e3[_0x168bf2(0xa5)]&&_0x3e71e3[_0x168bf2(0xa5)][_0x168bf2(0xab)](_0x4aeca9=>_0x4aeca9[_0x168bf2(0xb2)]()[_0x168bf2(0xac)](_0x512588))?_0x419823[_0x168bf2(0x94)](_0x3e71e3):_0x3e71e3[_0x168bf2(0x96)]&&_0x3e71e3[_0x168bf2(0x96)][_0x168bf2(0xb2)]()[_0x168bf2(0xac)](_0x512588)&&_0x2ef06a[_0x168bf2(0x94)](_0x3e71e3);_0x5ddbbf=_0x1d4e22[_0x168bf2(0xad)](_0x8866f3,_0x419823,_0x2ef06a);}return _0x5ddbbf;}}
|