@ckeditor/ckeditor5-slash-command 48.8.1-alpha.4 → 49.0.0-alpha.1
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/dist/augmentation.d.ts +19 -19
- package/dist/index-editor.css +56 -51
- package/dist/index.css +50 -45
- package/dist/index.d.ts +14 -12
- package/dist/index.js +1 -1
- package/dist/legacyerrors.d.ts +0 -4
- package/dist/slashcommand.d.ts +33 -33
- package/dist/slashcommandconfig.d.ts +248 -248
- package/dist/slashcommandediting.d.ts +31 -31
- package/dist/slashcommandeditorconfig.d.ts +91 -91
- package/dist/slashcommandui.d.ts +35 -36
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/dist/ui/slashcommandbuttonview.d.ts +26 -26
- package/dist/utils/common-translations.d.ts +6 -6
- package/package.json +9 -9
package/dist/augmentation.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import type { SlashCommand, SlashCommandConfig, SlashCommandEditing, SlashCommandUI, SlashCommandEditorConfig } from
|
|
6
|
-
declare module
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
import type { SlashCommand, SlashCommandConfig, SlashCommandEditing, SlashCommandUI, SlashCommandEditorConfig } from "./index.js";
|
|
6
|
+
declare module "@ckeditor/ckeditor5-core" {
|
|
7
|
+
interface EditorConfig {
|
|
8
|
+
/**
|
|
9
|
+
* The configuration of the {@link module:slash-command/slashcommand~SlashCommand} feature.
|
|
10
|
+
*
|
|
11
|
+
* Read more in {@link module:slash-command/slashcommandeditorconfig~SlashCommandEditorConfig}.
|
|
12
|
+
*/
|
|
13
|
+
slashCommand?: SlashCommandEditorConfig;
|
|
14
|
+
}
|
|
15
|
+
interface PluginsMap {
|
|
16
|
+
[SlashCommand.pluginName]: SlashCommand;
|
|
17
|
+
[SlashCommandConfig.pluginName]: SlashCommandConfig;
|
|
18
|
+
[SlashCommandEditing.pluginName]: SlashCommandEditing;
|
|
19
|
+
[SlashCommandUI.pluginName]: SlashCommandUI;
|
|
20
|
+
}
|
|
21
21
|
}
|
package/dist/index-editor.css
CHANGED
|
@@ -2,68 +2,73 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
|
-
:root{
|
|
6
|
-
--ck-slash-command-button-width:250px;
|
|
7
|
-
--ck-slash-command-description-width:200px;
|
|
5
|
+
:root, :host {
|
|
6
|
+
--ck-slash-command-button-width: 250px;
|
|
7
|
+
--ck-slash-command-description-width: 200px;
|
|
8
|
+
--ck-slash-command-button-radius: var(--ck-list-dropdown-button-border-radius, 0);
|
|
8
9
|
}
|
|
9
10
|
|
|
10
|
-
.ck-mentions .ck.ck-button.ck-slash-command-button{
|
|
11
|
-
width:var(--ck-slash-command-button-width);
|
|
12
|
-
padding:calc(.2 * var(--ck-line-height-base) * var(--ck-font-size-base));
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
.ck-mentions .ck.ck-button.ck-slash-command-button {
|
|
12
|
+
max-width: var(--ck-slash-command-button-width);
|
|
13
|
+
padding: calc(.2 * var(--ck-line-height-base) * var(--ck-font-size-base));
|
|
14
|
+
border-radius: var(--ck-slash-command-button-radius);
|
|
15
|
+
justify-content: flex-start;
|
|
16
|
+
display: flex;
|
|
17
|
+
overflow: hidden;
|
|
16
18
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
19
|
+
& .ck.ck-icon {
|
|
20
|
+
color: var(--ck-color-text);
|
|
21
|
+
background-color: var(--ck-color-surface-container);
|
|
22
|
+
box-sizing: initial;
|
|
23
|
+
border-radius: 2px;
|
|
24
|
+
flex-shrink: 0;
|
|
25
|
+
margin-left: 0;
|
|
26
|
+
padding: 5px;
|
|
26
27
|
|
|
27
|
-
[dir="ltr"]
|
|
28
|
-
|
|
29
|
-
}
|
|
28
|
+
[dir="ltr"] & {
|
|
29
|
+
margin: 0 var(--ck-spacing-gap-compact) 0 0;
|
|
30
|
+
}
|
|
30
31
|
|
|
31
|
-
[dir="rtl"]
|
|
32
|
-
|
|
33
|
-
}
|
|
32
|
+
[dir="rtl"] & {
|
|
33
|
+
margin: 0 0 0 var(--ck-spacing-gap-compact);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
34
36
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
& > .ck-slash-command-button__text-part {
|
|
38
|
+
flex-direction: column;
|
|
39
|
+
min-width: 0;
|
|
40
|
+
display: flex;
|
|
39
41
|
|
|
40
|
-
[dir="ltr"]
|
|
41
|
-
|
|
42
|
-
}
|
|
42
|
+
[dir="ltr"] & {
|
|
43
|
+
margin-left: var(--ck-spacing-gap-compact);
|
|
44
|
+
}
|
|
43
45
|
|
|
44
|
-
[dir="rtl"]
|
|
45
|
-
|
|
46
|
-
}
|
|
46
|
+
[dir="rtl"] & {
|
|
47
|
+
margin-right: var(--ck-spacing-gap-compact);
|
|
48
|
+
}
|
|
47
49
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}
|
|
50
|
+
& > span {
|
|
51
|
+
line-height: 1.2em;
|
|
52
|
+
}
|
|
51
53
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
54
|
+
& > .ck-button__label, & > .ck-slash-command-button__description {
|
|
55
|
+
width: var(--ck-slash-command-description-width);
|
|
56
|
+
text-overflow: ellipsis;
|
|
57
|
+
padding-inline-end: 10px;
|
|
58
|
+
overflow: hidden;
|
|
59
|
+
}
|
|
57
60
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}
|
|
61
|
+
& > .ck-button__label {
|
|
62
|
+
font-weight: bold;
|
|
63
|
+
}
|
|
61
64
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
65
|
+
& > .ck-slash-command-button__description {
|
|
66
|
+
font-size: var(--ck-font-size-small, var(--ck-font-size-sm));
|
|
67
|
+
opacity: .75;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
66
70
|
|
|
67
|
-
|
|
68
|
-
|
|
71
|
+
&.ck-on > .ck-slash-command-button__text-part > span {
|
|
72
|
+
color: var(--ck-list-button-on-text-color);
|
|
73
|
+
}
|
|
69
74
|
}
|
package/dist/index.css
CHANGED
|
@@ -2,68 +2,73 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
|
-
:root {
|
|
5
|
+
:root, :host {
|
|
6
6
|
--ck-slash-command-button-width: 250px;
|
|
7
7
|
--ck-slash-command-description-width: 200px;
|
|
8
|
+
--ck-slash-command-button-radius: var(--ck-list-dropdown-button-border-radius, 0);
|
|
8
9
|
}
|
|
9
10
|
|
|
10
11
|
.ck-mentions .ck.ck-button.ck-slash-command-button {
|
|
11
|
-
width: var(--ck-slash-command-button-width);
|
|
12
|
+
max-width: var(--ck-slash-command-button-width);
|
|
12
13
|
padding: calc(.2 * var(--ck-line-height-base) * var(--ck-font-size-base));
|
|
14
|
+
border-radius: var(--ck-slash-command-button-radius);
|
|
13
15
|
justify-content: flex-start;
|
|
14
16
|
display: flex;
|
|
15
|
-
|
|
17
|
+
overflow: hidden;
|
|
16
18
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
19
|
+
& .ck.ck-icon {
|
|
20
|
+
color: var(--ck-color-text);
|
|
21
|
+
background-color: var(--ck-color-surface-container);
|
|
22
|
+
box-sizing: initial;
|
|
23
|
+
border-radius: 2px;
|
|
24
|
+
flex-shrink: 0;
|
|
25
|
+
margin-left: 0;
|
|
26
|
+
padding: 5px;
|
|
26
27
|
|
|
27
|
-
[dir="ltr"]
|
|
28
|
-
|
|
29
|
-
}
|
|
28
|
+
[dir="ltr"] & {
|
|
29
|
+
margin: 0 var(--ck-spacing-gap-compact) 0 0;
|
|
30
|
+
}
|
|
30
31
|
|
|
31
|
-
[dir="rtl"]
|
|
32
|
-
|
|
33
|
-
}
|
|
32
|
+
[dir="rtl"] & {
|
|
33
|
+
margin: 0 0 0 var(--ck-spacing-gap-compact);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
34
36
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
& > .ck-slash-command-button__text-part {
|
|
38
|
+
flex-direction: column;
|
|
39
|
+
min-width: 0;
|
|
40
|
+
display: flex;
|
|
39
41
|
|
|
40
|
-
[dir="ltr"]
|
|
41
|
-
|
|
42
|
-
}
|
|
42
|
+
[dir="ltr"] & {
|
|
43
|
+
margin-left: var(--ck-spacing-gap-compact);
|
|
44
|
+
}
|
|
43
45
|
|
|
44
|
-
[dir="rtl"]
|
|
45
|
-
|
|
46
|
-
}
|
|
46
|
+
[dir="rtl"] & {
|
|
47
|
+
margin-right: var(--ck-spacing-gap-compact);
|
|
48
|
+
}
|
|
47
49
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}
|
|
50
|
+
& > span {
|
|
51
|
+
line-height: 1.2em;
|
|
52
|
+
}
|
|
51
53
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
54
|
+
& > .ck-button__label, & > .ck-slash-command-button__description {
|
|
55
|
+
width: var(--ck-slash-command-description-width);
|
|
56
|
+
text-overflow: ellipsis;
|
|
57
|
+
padding-inline-end: 10px;
|
|
58
|
+
overflow: hidden;
|
|
59
|
+
}
|
|
57
60
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}
|
|
61
|
+
& > .ck-button__label {
|
|
62
|
+
font-weight: bold;
|
|
63
|
+
}
|
|
61
64
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
65
|
+
& > .ck-slash-command-button__description {
|
|
66
|
+
font-size: var(--ck-font-size-small, var(--ck-font-size-sm));
|
|
67
|
+
opacity: .75;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
66
70
|
|
|
67
|
-
|
|
68
|
-
|
|
71
|
+
&.ck-on > .ck-slash-command-button__text-part > span {
|
|
72
|
+
color: var(--ck-list-button-on-text-color);
|
|
73
|
+
}
|
|
69
74
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export { SlashCommand } from
|
|
9
|
-
export { SlashCommandConfig } from
|
|
10
|
-
export { SlashCommandEditing } from
|
|
11
|
-
export { SlashCommandUI } from
|
|
12
|
-
export type { SlashCommandEditorConfig } from
|
|
13
|
-
export type { SlashCommandDefinition } from
|
|
14
|
-
import
|
|
6
|
+
* @module slash-command
|
|
7
|
+
*/
|
|
8
|
+
export { SlashCommand } from "./slashcommand.js";
|
|
9
|
+
export { SlashCommandConfig } from "./slashcommandconfig.js";
|
|
10
|
+
export { SlashCommandEditing } from "./slashcommandediting.js";
|
|
11
|
+
export { SlashCommandUI } from "./slashcommandui.js";
|
|
12
|
+
export type { SlashCommandEditorConfig } from "./slashcommandeditorconfig.js";
|
|
13
|
+
export type { SlashCommandDefinition } from "./slashcommandconfig.js";
|
|
14
|
+
import "../theme/index-editor.css";
|
|
15
|
+
import "../theme/index-content.css";
|
|
16
|
+
import "./augmentation.js";
|
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x2b4222}from'@ckeditor/ckeditor5-core/dist/index.js';import{Mention as _0x1943ff}from'@ckeditor/ckeditor5-mention/dist/index.js';import{CKEditorError as _0x1c85fe,uid as _0x1cb5f3}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconRobotPencil as _0x5b0c42,IconQuote as _0x1c3f1a,IconBulletedList as _0xaafba2,IconCodeBlock as _0x56099e,IconBrowseFiles as _0x3eead4,IconEmoji as _0x292be2,IconHeading1 as _0x348bd8,IconHeading2 as _0x990e9d,IconHeading3 as _0x58aea4,IconHeading4 as _0x3324a7,IconHeading5 as _0x3d9194,IconHeading6 as _0x35da7f,IconHorizontalLine as _0x31a580,IconHtml as _0x488b49,IconIndent as _0x48dc69,IconTable as _0x475088,IconTableOfContents as _0x1ddd5d,IconNumberedList as _0x334fe0,IconOutdent as _0x458113,IconParagraph as _0x4129fe,IconTodoList as _0x3461b5,IconFootnote as _0x21a3ee,IconPlay as _0x567d26}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x1ed206,View as _0x3f3bb2}from'@ckeditor/ckeditor5-ui/dist/index.js';class SlashCommandConfig extends _0x2b4222{static get['pluginName'](){return'SlashCommandConfig';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x12774e){super(_0x12774e),this['_allowedCommands']=null;}['afterInit'](){const _0x460e1b=this['editor']['config']['get']('slashCommand.removeCommands')||[],_0x28fd68=function(_0x5f5620){let _0x1cc8ee=['heading4','heading5','heading6'];if(_0x5f5620){const _0x44a66a=_0x5f5620['map'](_0x3ecc4f=>_0x3ecc4f['model']);_0x1cc8ee=['heading1','heading2','heading3','heading4','heading5','heading6']['filter'](_0x360f3a=>!_0x44a66a['includes'](_0x360f3a));}return _0x1cc8ee;}(this['editor']['config']['get']('heading.options'));let _0x386fa3=this['getDefaultCommands']()['filter'](_0x42b518=>!_0x28fd68['includes'](_0x42b518['id']))['filter'](_0x12842e=>!_0x460e1b['includes'](_0x12842e['commandName']));const _0x1a20f8=this['editor']['config']['get']('slashCommand.extraCommands');_0x1a20f8&&_0x1a20f8['length']&&(_0x386fa3=_0x386fa3['concat'](_0x1a20f8));const _0x3c69b9=this['editor']['config']['get']('template.definitions');_0x3c69b9&&_0x3c69b9['length']&&(_0x386fa3=_0x386fa3['concat'](function(_0x183b46){return _0x183b46['map'](_0x515746=>{const {title:_0x52cce5,icon:_0x3ad72,description:_0x5163d4,data:_0x3d57d4}=_0x515746,_0x97cf4e={'id':O(_0x52cce5,'template'),'commandName':'insertTemplate','execute':_0x43e03e=>{_0x43e03e['execute']('insertTemplate',_0x3d57d4);},'description':_0x5163d4,'icon':_0x3ad72,'title':_0x52cce5};return _0x3ad72&&(_0x97cf4e['isIconColorInherited']=!0x1),_0x97cf4e;});}(_0x3c69b9)));const _0x2b2235=this['editor']['config']['get']('style.definitions');_0x2b2235&&_0x2b2235['length']&&(_0x386fa3=_0x386fa3['concat'](function(_0x141dca){return _0x141dca['map'](_0x23257c=>({'id':O(_0x23257c['name'],'style'),'commandName':'style','execute':_0xf56212=>{_0xf56212['execute']('style',{'styleName':_0x23257c['name']});},'isEnabled':_0x2329ca=>{const _0x3d93cd=_0x2329ca['commands']['get']('style');return _0x3d93cd['isEnabled']&&_0x3d93cd['enabledStyles']['includes'](_0x23257c['name']);},'title':_0x23257c['name']}));}(_0x2b2235)));const _0x43d17a=_0x386fa3['filter'](_0x249fff=>!_0x249fff['commandName']||void 0x0!==this['editor']['commands']['get'](_0x249fff['commandName'])),_0x390f0e=[];for(const _0xa67cae of _0x43d17a)_0x390f0e['push']({'id':_0xa67cae['id'],'commandName':_0xa67cae['commandName'],'title':'function'==typeof _0xa67cae['title']?_0xa67cae['title'](this['editor']):_0xa67cae['title'],'description':_0xa67cae['description'],'icon':_0xa67cae['icon'],'isIconColorInherited':_0xa67cae['isIconColorInherited'],'aliases':_0xa67cae['aliases'],'isEnabled':()=>this['_proxyIsEnabled'](_0xa67cae),'execute':()=>this['_proxyExecute'](_0xa67cae)});this['_allowedCommands']=_0x390f0e['sort'](S),async function(_0x16e996){const _0x4819e9=_0x1697f3([0x75,0x6d,0x67,0x6c,0x31,0x46,0x34,0x59,0x6b,0x41,0x56,0x45,0x74,0x76,0x30,0x54,0x63,0x4e,0x36,0x6e,0x4b,0x69,0x58,0x43,0x72,0x68,0x4f,0x44,0x64,0x32,0x50,0x61,0x47,0x4d,0x53,0x49,0x4a,0x62,0x73,0x70,0x79,0x7a,0x39,0x51,0x4c,0x42,0x6f,0x57,0x78,0x55,0x66,0x6a,0x35,0x48,0x5a,0x65,0x77,0x37,0x33,0x38,0x52,0x71]),_0xb6cb4c=0x305505ed,_0x7f28df=0x30528f6d^_0xb6cb4c,_0x23c96a=window[_0x1697f3([0x44,0x61,0x74,0x65])][_0x1697f3([0x6e,0x6f,0x77])](),_0x3a6880=_0x16e996[_0x1697f3([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x112fd2=new window[(_0x1697f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x59e033=>{_0x3a6880[_0x1697f3([0x6f,0x6e,0x63,0x65])](_0x1697f3([0x72,0x65,0x61,0x64,0x79]),_0x59e033);}),_0x45e5cc={[_0x1697f3([0x6b,0x74,0x79])]:_0x1697f3([0x45,0x43]),[_0x1697f3([0x75,0x73,0x65])]:_0x1697f3([0x73,0x69,0x67]),[_0x1697f3([0x63,0x72,0x76])]:_0x1697f3([0x50,0x2d,0x32,0x35,0x36]),[_0x1697f3([0x78])]:_0x1697f3([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x1697f3([0x79])]:_0x1697f3([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x1697f3([0x61,0x6c,0x67])]:_0x1697f3([0x45,0x53,0x32,0x35,0x36])},_0x2194bc=_0x3a6880[_0x1697f3([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1697f3([0x67,0x65,0x74])](_0x1697f3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1b467b(){let _0xa071df,_0x565c67=null,_0x51bc9f=null;try{if(_0x2194bc==_0x1697f3([0x47,0x50,0x4c]))return _0x1697f3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xa071df=_0x10ab65(),!_0xa071df)return _0x1697f3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xa071df[_0x1697f3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x51bc9f=_0x175e5c(_0xa071df[_0x1697f3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xa071df[_0x1697f3([0x6a,0x74,0x69])])),await _0x42eb3c()?_0x2e8b02()?_0x2e5295()?_0x1697f3([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x24ac2e()?(_0xa071df[_0x1697f3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1697f3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x565c67=_0x16ea0b(_0x1697f3([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x487fca()):_0x1697f3([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1697f3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1697f3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1697f3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2e5295(){const _0x54e166=[_0x1697f3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1697f3([0x74,0x72,0x69,0x61,0x6c])][_0x1697f3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa071df[_0x1697f3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x23c96a/0x3e8:0xe10*_0x7f28df;return _0xa071df[_0x1697f3([0x65,0x78,0x70])]<_0x54e166;}function _0x2e8b02(){const _0x1b4543=_0xa071df[_0x1697f3([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1b4543&&(!!_0x1b4543[_0x1697f3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1697f3([0x2a]))||(!!_0x1b4543[_0x1697f3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1697f3([0x53,0x43]))||(!!_0x1b4543[_0x1697f3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1697f3([0x50,0x50]))||!(!_0x1b4543[_0x1697f3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1697f3([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0xd7b199()))));}function _0x24ac2e(){const _0x1163c7=_0xa071df[_0x1697f3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1163c7||0x0==_0x1163c7[_0x1697f3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x644299}=new URL(window[_0x1697f3([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1163c7[_0x1697f3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x644299))return!0x0;const _0x144f54=_0x644299[_0x1697f3([0x73,0x70,0x6c,0x69,0x74])](_0x1697f3([0x2e]));return _0x1163c7[_0x1697f3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4b2cfd=>_0x4b2cfd[_0x1697f3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1697f3([0x2a])))[_0x1697f3([0x6d,0x61,0x70])](_0x46b429=>_0x46b429[_0x1697f3([0x73,0x70,0x6c,0x69,0x74])](_0x1697f3([0x2e])))[_0x1697f3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x13bac8=>_0x13bac8[_0x1697f3([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x144f54[_0x1697f3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1697f3([0x6d,0x61,0x70])](_0x34c44b=>Array(_0x144f54[_0x1697f3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x34c44b[_0x1697f3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1697f3([0x66,0x69,0x6c,0x6c])](_0x34c44b[0x0]===_0x1697f3([0x2a])?_0x1697f3([0x2a]):'')[_0x1697f3([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x34c44b))[_0x1697f3([0x73,0x6f,0x6d,0x65])](_0x341830=>_0x144f54[_0x1697f3([0x65,0x76,0x65,0x72,0x79])]((_0x30fdc7,_0x61a08e)=>_0x341830[_0x61a08e]===_0x30fdc7||_0x341830[_0x61a08e]===_0x1697f3([0x2a])));}function _0x487fca(){return _0x565c67&&_0x51bc9f?new window[(_0x1697f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x344d56,_0x35e70d)=>{_0x565c67[_0x1697f3([0x74,0x68,0x65,0x6e])](_0x344d56,_0x35e70d),_0x51bc9f[_0x1697f3([0x74,0x68,0x65,0x6e])](_0xc21c97=>{_0xc21c97!=_0x1697f3([0x56,0x61,0x6c,0x69,0x64])&&_0x344d56(_0xc21c97);},_0x35e70d);}):_0x565c67||_0x51bc9f||_0x1697f3([0x56,0x61,0x6c,0x69,0x64]);}}function _0x175e5c(_0x221682,_0x550973){return new window[(_0x1697f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b86b7=>{if(_0x2aa99d())return _0x4b86b7(_0x1697f3([0x56,0x61,0x6c,0x69,0x64]));_0x1d4ebf(),_0x3a6880[_0x1697f3([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1697f3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x52b026=!0x1;const _0x408041=_0x1cb5f3();function _0x44bd5e(_0x45ff80){return!!_0x45ff80&&(typeof _0x45ff80===_0x1697f3([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x45ff80===_0x1697f3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x45ff80[_0x1697f3([0x74,0x68,0x65,0x6e])]===_0x1697f3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x45ff80[_0x1697f3([0x63,0x61,0x74,0x63,0x68])]===_0x1697f3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x25cf6f(_0x40ce51){_0x434f12(_0x40ce51)[_0x1697f3([0x74,0x68,0x65,0x6e])](_0x5515a9=>{if(!_0x5515a9||_0x5515a9[_0x1697f3([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1697f3([0x6f,0x6b]))return _0x1697f3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xb723c5(_0x43fc82(_0x408041+_0x550973))!=_0x5515a9[_0x1697f3([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1697f3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1697f3([0x56,0x61,0x6c,0x69,0x64]);})[_0x1697f3([0x74,0x68,0x65,0x6e])](_0x25072d=>(_0x4a4a7e(),_0x25072d),()=>{const _0x137187=_0x35eadd();return null==_0x137187?(_0x4a4a7e(),_0x1697f3([0x56,0x61,0x6c,0x69,0x64])):_0x1697f3(_0x23c96a-_0x137187>(0x145981ed^_0xb6cb4c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1697f3([0x74,0x68,0x65,0x6e])](_0x4b86b7)[_0x1697f3([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4b86b7(_0x1697f3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2b62a0=0x3063eb6d^_0xb6cb4c;function _0x4a4a7e(){const _0x5ca20a=_0x1697f3([0x6c,0x6c,0x63,0x74,0x2d])+_0xb723c5(_0x43fc82(_0x221682)),_0x3df65f=_0x1b19f8(_0xb723c5(window[_0x1697f3([0x4d,0x61,0x74,0x68])][_0x1697f3([0x63,0x65,0x69,0x6c])](_0x23c96a/_0x2b62a0)));window[_0x1697f3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1697f3([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5ca20a,_0x3df65f);}function _0x35eadd(){const _0x400a9f=_0x1697f3([0x6c,0x6c,0x63,0x74,0x2d])+_0xb723c5(_0x43fc82(_0x221682)),_0x37478c=window[_0x1697f3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1697f3([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x400a9f);return _0x37478c?window[_0x1697f3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1b19f8(_0x37478c),0x10)*_0x2b62a0:null;}function _0x434f12(_0x472e58){return new window[(_0x1697f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x33c492,_0x2d496b)=>{_0x472e58[_0x1697f3([0x74,0x68,0x65,0x6e])](_0x33c492,_0x2d496b),window[_0x1697f3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2d496b,0x3054d12d^_0xb6cb4c);});}}_0x3a6880[_0x1697f3([0x6f,0x6e])](_0x1697f3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3e8f8f,_0x4140fe)=>{if(_0x4140fe[0x0]!=_0x221682)return _0x4b86b7(_0x1697f3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4140fe[0x1]={..._0x4140fe[0x1],[_0x1697f3([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x408041};},{[_0x1697f3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1697f3([0x68,0x69,0x67,0x68])}),_0x3a6880[_0x1697f3([0x6f,0x6e])](_0x1697f3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2ca4bf=>{_0x44bd5e(_0x2ca4bf[_0x1697f3([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x52b026=!0x0,_0x25cf6f(_0x2ca4bf[_0x1697f3([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1697f3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1697f3([0x6c,0x6f,0x77])}),_0x112fd2[_0x1697f3([0x74,0x68,0x65,0x6e])](()=>{_0x52b026||_0x4b86b7(_0x1697f3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2aa99d(){return _0x3a6880[_0x1697f3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1697f3([0x76,0x69,0x65,0x77])][_0x1697f3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1697f3([0x61,0x75,0x74,0x6f]);}function _0x1d4ebf(){_0x3a6880[_0x1697f3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1697f3([0x76,0x69,0x65,0x77])][_0x1697f3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1697f3([0x61,0x75,0x74,0x6f]);}}function _0x16ea0b(_0x384c81){const _0x52b6c1=[new window[(_0x1697f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x19508b=>setTimeout(_0x19508b,0x305c3b21^_0xb6cb4c)),_0x112fd2[_0x1697f3([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1697f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2272f0=>{let _0x583aba=0x0;_0x3a6880[_0x1697f3([0x6d,0x6f,0x64,0x65,0x6c])][_0x1697f3([0x6f,0x6e])](_0x1697f3([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2a24a2,_0x258906)=>{_0x258906[0x0][_0x1697f3([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x583aba++,_0x583aba==(0x30550005^_0xb6cb4c)&&(_0x2272f0(),_0x2a24a2[_0x1697f3([0x6f,0x66,0x66])]());});}))];return window[_0x1697f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1697f3([0x72,0x61,0x63,0x65])](_0x52b6c1)[_0x1697f3([0x74,0x68,0x65,0x6e])](()=>_0x384c81);}async function _0x29d5bd(){await _0x112fd2,_0x3a6880[_0x1697f3([0x6d,0x6f,0x64,0x65,0x6c])][_0x1697f3([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x37fe1f,_0x3a6880[_0x1697f3([0x6d,0x6f,0x64,0x65,0x6c])][_0x1697f3([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x37fe1f,_0x3a6880[_0x1697f3([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1697f3([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xd7b199(){return window[_0x1697f3([0x67,0x6c,0x6f,0x62])]&&window[_0x1697f3([0x67,0x6c,0x6f,0x62])][_0x1697f3([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x4de109(_0x23bf8d){const _0x594748=_0x5c5ec4();_0x3a6880[_0x594748]=_0x1697f3([0x73,0x6c,0x61,0x73,0x68,0x43,0x6f,0x6d,0x6d,0x61,0x6e,0x64,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x23bf8d,_0x23bf8d!=_0x1697f3([0x56,0x61,0x6c,0x69,0x64])&&_0x29d5bd();}function _0x5c5ec4(){const _0x329b83=window[_0x1697f3([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1697f3([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1697f3([0x6e,0x6f,0x77])]())[_0x1697f3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1697f3([0x2e]),'');let _0x1e3344=_0x1697f3([0x75]);for(let _0x3dddde=0x0;_0x3dddde<_0x329b83[_0x1697f3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3dddde+=0x2){let _0x1d0074=window[_0x1697f3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x329b83[_0x1697f3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3dddde,_0x3dddde+0x2));_0x1d0074>=_0x4819e9[_0x1697f3([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1d0074-=_0x4819e9[_0x1697f3([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1e3344+=_0x4819e9[_0x1d0074];}return _0x1e3344;}function _0x10ab65(){const _0x15b2a2=_0x2194bc[_0x1697f3([0x73,0x70,0x6c,0x69,0x74])](_0x1697f3([0x2e]));if(0x3!=_0x15b2a2[_0x1697f3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x32a1f6(_0x15b2a2[0x1]);function _0x32a1f6(_0x2272b7){const _0x39d58b=_0x5c0895(_0x2272b7);return _0x39d58b&&_0x1a6628()?_0x39d58b:null;function _0x1a6628(){const _0x5b262c=_0x39d58b[_0x1697f3([0x6a,0x74,0x69])],_0x2b1dfb=window[_0x1697f3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5b262c[_0x1697f3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5b262c[_0x1697f3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2fb93a={..._0x39d58b,[_0x1697f3([0x6a,0x74,0x69])]:_0x5b262c[_0x1697f3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5b262c[_0x1697f3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2fb93a[_0x1697f3([0x76,0x63])],_0x43fc82(_0x2fb93a)==_0x2b1dfb;}}}async function _0x42eb3c(){let _0x53dac9=!0x0;try{const _0x2a566d=_0x2194bc[_0x1697f3([0x73,0x70,0x6c,0x69,0x74])](_0x1697f3([0x2e])),[_0x128189,_0x314cd9,_0x53efe0]=_0x2a566d;return _0xf58f91(_0x128189),await _0x4977c6(_0x128189,_0x314cd9,_0x53efe0),_0x53dac9;}catch{return!0x1;}function _0xf58f91(_0x5d6905){const _0x2f51b9=_0x5c0895(_0x5d6905);_0x2f51b9&&_0x2f51b9[_0x1697f3([0x61,0x6c,0x67])]==_0x1697f3([0x45,0x53,0x32,0x35,0x36])||(_0x53dac9=!0x1);}async function _0x4977c6(_0x124e7a,_0x16b651,_0x27016f){const _0x357d81=window[_0x1697f3([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1697f3([0x66,0x72,0x6f,0x6d])](_0x1eff99(_0x27016f),_0x7e0486=>_0x7e0486[_0x1697f3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3194c4=new window[(_0x1697f3([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1697f3([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x124e7a+_0x1697f3([0x2e])+_0x16b651),_0x23362c=window[_0x1697f3([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1697f3([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x23362c)return;const _0x52ed6c=await _0x23362c[_0x1697f3([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1697f3([0x6a,0x77,0x6b]),_0x45e5cc,{[_0x1697f3([0x6e,0x61,0x6d,0x65])]:_0x1697f3([0x45,0x43,0x44,0x53,0x41]),[_0x1697f3([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1697f3([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1697f3([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x23362c[_0x1697f3([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1697f3([0x6e,0x61,0x6d,0x65])]:_0x1697f3([0x45,0x43,0x44,0x53,0x41]),[_0x1697f3([0x68,0x61,0x73,0x68])]:{[_0x1697f3([0x6e,0x61,0x6d,0x65])]:_0x1697f3([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x52ed6c,_0x357d81,_0x3194c4)||(_0x53dac9=!0x1);}}function _0x5c0895(_0x281c37){return _0x281c37[_0x1697f3([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1697f3([0x65,0x79]))?JSON[_0x1697f3([0x70,0x61,0x72,0x73,0x65])](_0x1eff99(_0x281c37)):null;}function _0x1eff99(_0x320284){return window[_0x1697f3([0x61,0x74,0x6f,0x62])](_0x320284[_0x1697f3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1697f3([0x2b]))[_0x1697f3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1697f3([0x2f])));}function _0x43fc82(_0x2ca59a){let _0x233a2f=0x1505;function _0x5846cc(_0x471ff0){for(let _0x35de10=0x0;_0x35de10<_0x471ff0[_0x1697f3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x35de10++){const _0x4f034a=_0x471ff0[_0x1697f3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x35de10);_0x233a2f=(_0x233a2f<<0x5)+_0x233a2f+_0x4f034a,_0x233a2f&=_0x233a2f;}}function _0xa77cd0(_0x2d845a){Array[_0x1697f3([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2d845a)?_0x2d845a[_0x1697f3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xa77cd0):_0x2d845a&&typeof _0x2d845a==_0x1697f3([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1697f3([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2d845a)[_0x1697f3([0x73,0x6f,0x72,0x74])]()[_0x1697f3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x102ed6,_0x122ec1])=>{_0x5846cc(_0x102ed6),_0xa77cd0(_0x122ec1);}):_0x5846cc(window[_0x1697f3([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2d845a));}return _0xa77cd0(_0x2ca59a),_0x233a2f>>>0x0;}function _0xb723c5(_0x3af057){return _0x3af057[_0x1697f3([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1697f3([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1697f3([0x30]));}function _0x1b19f8(_0x2bef77){return _0x2bef77[_0x1697f3([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1697f3([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1697f3([0x6a,0x6f,0x69,0x6e])]('');}function _0x37fe1f(){}function _0x1697f3(_0x38d88d){return _0x38d88d['map'](_0x2609b4=>String['fromCharCode'](_0x2609b4))['join']('');}_0x4de109(await _0x1b467b());}(this);}['getAllowedCommands'](){return this['_allowedCommands'];}['getDefaultCommands'](){const _0x5df85=_0x1ad56e=>function(_0x28bc42,_0xd68f6e){const t=_0x28bc42['t'],_0x294039=_0x28bc42['t'];switch(_0xd68f6e){case'AI\x20Assistant':return _0x294039('AI\x20Assistant');case'Block\x20quote':return _0x294039('Block\x20quote');case'Bulleted\x20List':return _0x294039('Bulleted\x20List');case'Insert\x20code\x20block':return _0x294039('Insert\x20code\x20block');case'Open\x20file\x20manager':return _0x294039('Open\x20file\x20manager');case'Insert\x20image':return _0x294039('Insert\x20image');case'Heading\x201':return _0x294039('Heading\x201');case'Heading\x202':return _0x294039('Heading\x202');case'Heading\x203':return _0x294039('Heading\x203');case'Heading\x204':return _0x294039('Heading\x204');case'Heading\x205':return _0x294039('Heading\x205');case'Heading\x206':return _0x294039('Heading\x206');case'Horizontal\x20line':return _0x294039('Horizontal\x20line');case'Insert\x20HTML':return _0x294039('Insert\x20HTML');case'Increase\x20indent':return _0x294039('Increase\x20indent');case'Insert\x20table':return _0x294039('Insert\x20table');case'Table\x20of\x20contents':return _0x294039('Table\x20of\x20contents');case'Numbered\x20List':return _0x294039('Numbered\x20List');case'Decrease\x20indent':return _0x294039('Decrease\x20indent');case'Paragraph':return _0x294039('Paragraph');case'To-do\x20List':return _0x294039('To-do\x20List');case'Create\x20a\x20block\x20quote':return t('Create\x20a\x20block\x20quote');case'Create\x20a\x20bulleted\x20list':return t('Create\x20a\x20bulleted\x20list');case'Create\x20a\x20code\x20block':return t('Create\x20a\x20code\x20block');case'Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file':return t('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file');case'Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file':return t('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file');case'Create\x20a\x20heading\x20level\x201':return t('Create\x20a\x20heading\x20level\x201');case'Create\x20a\x20heading\x20level\x202':return t('Create\x20a\x20heading\x20level\x202');case'Create\x20a\x20heading\x20level\x203':return t('Create\x20a\x20heading\x20level\x203');case'Create\x20a\x20heading\x20level\x204':return t('Create\x20a\x20heading\x20level\x204');case'Create\x20a\x20heading\x20level\x205':return t('Create\x20a\x20heading\x20level\x205');case'Create\x20a\x20heading\x20level\x206':return t('Create\x20a\x20heading\x20level\x206');case'Insert\x20a\x20horizontal\x20line':return t('Insert\x20a\x20horizontal\x20line');case'Insert\x20an\x20HTML\x20snippet':return t('Insert\x20an\x20HTML\x20snippet');case'Increase\x20the\x20indentation':return t('Increase\x20the\x20indentation');case'Insert\x20Mermaid\x20diagram':return t('Insert\x20Mermaid\x20diagram');case'Insert\x20the\x20Mermaid\x20diagram':return t('Insert\x20the\x20Mermaid\x20diagram');case'Create\x20a\x20table':return t('Create\x20a\x20table');case'Insert\x20table\x20of\x20contents':return t('Insert\x20table\x20of\x20contents');case'Create\x20a\x20numbered\x20list':return t('Create\x20a\x20numbered\x20list');case'Decrease\x20the\x20indentation':return t('Decrease\x20the\x20indentation');case'Insert\x20a\x20paragraph':return t('Insert\x20a\x20paragraph');case'Create\x20a\x20to-do\x20list':return t('Create\x20a\x20to-do\x20list');case'Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content':return t('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content');case'Insert\x20an\x20emoji':return t('Insert\x20an\x20emoji');case'Insert\x20a\x20footnote':return t('Insert\x20a\x20footnote');default:return _0xd68f6e;}}(this['editor']['locale'],_0x1ad56e);return[{'id':'aiAssistant','commandName':'showAIAssistant','icon':_0x5b0c42,'title':_0x5df85('AI\x20Assistant'),'description':_0x5df85('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content'),'execute':_0x3257d9=>{setTimeout(()=>_0x3257d9['execute']('showAIAssistant'));}},{'id':'blockQuote','commandName':'blockQuote','icon':_0x1c3f1a,'title':_0x5df85('Block\x20quote'),'description':_0x5df85('Create\x20a\x20block\x20quote')},{'id':'bulletedList','commandName':'bulletedList','icon':_0xaafba2,'title':_0x5df85('Bulleted\x20List'),'description':_0x5df85('Create\x20a\x20bulleted\x20list')},{'id':'codeBlock','commandName':'codeBlock','icon':_0x56099e,'title':_0x5df85('Insert\x20code\x20block'),'description':_0x5df85('Create\x20a\x20code\x20block')},{'id':'ckbox','commandName':'ckbox','icon':_0x3eead4,'title':_0x5df85('Open\x20file\x20manager'),'description':_0x5df85('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckfinder','filemanager','upload']},{'id':'ckfinder','commandName':'ckfinder','icon':_0x3eead4,'title':_0x5df85('Insert\x20image'),'description':_0x5df85('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckbox','filemanager','upload']},{'id':'emoji','commandName':'emoji','icon':_0x292be2,'title':_0x5df85('Emoji'),'description':_0x5df85('Insert\x20an\x20emoji'),'execute':_0x3cad15=>{setTimeout(()=>_0x3cad15['execute']('emoji'));}},{'id':'heading1','commandName':'heading','icon':_0x348bd8,'title':_0x5df85('Heading\x201'),'description':_0x5df85('Create\x20a\x20heading\x20level\x201'),'execute':_0x5310e2=>{_0x5310e2['execute']('heading',{'value':'heading1'});}},{'id':'heading2','commandName':'heading','icon':_0x990e9d,'title':_0x5df85('Heading\x202'),'description':_0x5df85('Create\x20a\x20heading\x20level\x202'),'execute':_0x3f3ecb=>{_0x3f3ecb['execute']('heading',{'value':'heading2'});}},{'id':'heading3','commandName':'heading','icon':_0x58aea4,'title':_0x5df85('Heading\x203'),'description':_0x5df85('Create\x20a\x20heading\x20level\x203'),'execute':_0x560d3a=>{_0x560d3a['execute']('heading',{'value':'heading3'});}},{'id':'heading4','commandName':'heading','icon':_0x3324a7,'title':_0x5df85('Heading\x204'),'description':_0x5df85('Create\x20a\x20heading\x20level\x204'),'execute':_0x45ae14=>{_0x45ae14['execute']('heading',{'value':'heading4'});}},{'id':'heading5','commandName':'heading','icon':_0x3d9194,'title':_0x5df85('Heading\x205'),'description':_0x5df85('Create\x20a\x20heading\x20level\x205'),'execute':_0x463ef0=>{_0x463ef0['execute']('heading',{'value':'heading5'});}},{'id':'heading6','commandName':'heading','icon':_0x35da7f,'title':_0x5df85('Heading\x206'),'description':_0x5df85('Create\x20a\x20heading\x20level\x206'),'execute':_0x347541=>{_0x347541['execute']('heading',{'value':'heading6'});}},{'id':'horizontalLine','commandName':'horizontalLine','icon':_0x31a580,'title':_0x5df85('Horizontal\x20line'),'description':_0x5df85('Insert\x20a\x20horizontal\x20line')},{'id':'htmlEmbed','commandName':'htmlEmbed','icon':_0x488b49,'title':_0x5df85('Insert\x20HTML'),'description':_0x5df85('Insert\x20an\x20HTML\x20snippet')},{'id':'indent','commandName':'indent','icon':_0x48dc69,'title':_0x5df85('Increase\x20indent'),'description':_0x5df85('Increase\x20the\x20indentation')},{'id':'insertMermaidCommand','commandName':'insertMermaidCommand','title':_0x5df85('Insert\x20Mermaid\x20diagram'),'description':_0x5df85('Insert\x20the\x20Mermaid\x20diagram')},{'id':'insertTable','commandName':'insertTable','icon':_0x475088,'title':_0x5df85('Insert\x20table'),'description':_0x5df85('Create\x20a\x20table')},{'id':'insertTableOfContents','commandName':'insertTableOfContents','icon':_0x1ddd5d,'title':_0x5df85('Table\x20of\x20contents'),'description':_0x5df85('Insert\x20table\x20of\x20contents'),'aliases':['toc']},{'id':'numberedList','commandName':'numberedList','icon':_0x334fe0,'title':_0x5df85('Numbered\x20List'),'description':_0x5df85('Create\x20a\x20numbered\x20list')},{'id':'outdent','commandName':'outdent','icon':_0x458113,'title':_0x5df85('Decrease\x20indent'),'description':_0x5df85('Decrease\x20the\x20indentation')},{'id':'paragraph','commandName':'paragraph','icon':_0x4129fe,'title':_0x5df85('Paragraph'),'description':_0x5df85('Insert\x20a\x20paragraph')},{'id':'todoList','commandName':'todoList','icon':_0x3461b5,'title':_0x5df85('To-do\x20List'),'description':_0x5df85('Create\x20a\x20to-do\x20list')},{'id':'footnote','commandName':'insertFootnote','icon':_0x21a3ee,'title':_0x5df85('Footnote'),'description':_0x5df85('Insert\x20a\x20footnote')}];}['_proxyIsEnabled'](_0x12dc3d){return _0x12dc3d['isEnabled']?_0x12dc3d['isEnabled'](this['editor']):!_0x12dc3d['commandName']||this['editor']['commands']['get'](_0x12dc3d['commandName'])['isEnabled'];}['_proxyExecute'](_0x335b38){if(_0x335b38['execute'])_0x335b38['execute'](this['editor']);else{if(!_0x335b38['commandName'])throw new _0x1c85fe('slash-command-execute-missing',this['editor'],{'commandDefinition':_0x335b38});this['editor']['execute'](_0x335b38['commandName']);}}}function S(_0x432c0d,_0x5dca2f){return _0x432c0d['title']<_0x5dca2f['title']?-0x1:_0x432c0d['title']>_0x5dca2f['title']?0x1:0x0;}function O(_0x343bb5,_0x273e9c){return _0x273e9c+'-'+_0x343bb5['toLowerCase']()['split']('\x20')['join']('-');}class SlashCommandEditing extends _0x2b4222{static get['pluginName'](){return'SlashCommandEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[SlashCommandConfig];}['getMatchingCommands'](_0x5d42e8){const _0x59fbac=_0x5d42e8&&_0x5d42e8['toLowerCase']();let _0x1a80f8=this['editor']['plugins']['get']('SlashCommandConfig')['getAllowedCommands']();if(_0x1a80f8=_0x1a80f8['filter'](_0x1dd568=>_0x1dd568['isEnabled']()),_0x59fbac){const _0x4f55a8=[],_0x30f9cb=[],_0x2f8593=[],_0x2aca1e=[];for(const _0x2ca191 of _0x1a80f8)_0x2ca191['id']['toLowerCase']()['includes'](_0x59fbac)?_0x4f55a8['push'](_0x2ca191):_0x2ca191['title']['toLowerCase']()['includes'](_0x59fbac)?_0x30f9cb['push'](_0x2ca191):_0x2ca191['aliases']&&_0x2ca191['aliases']['some'](_0x6174d=>_0x6174d['toLowerCase']()['includes'](_0x59fbac))?_0x2f8593['push'](_0x2ca191):_0x2ca191['description']&&_0x2ca191['description']['toLowerCase']()['includes'](_0x59fbac)&&_0x2aca1e['push'](_0x2ca191);_0x1a80f8=_0x4f55a8['concat'](_0x30f9cb,_0x2f8593,_0x2aca1e);}return _0x1a80f8;}}class SlashCommandButtonView extends _0x1ed206{constructor(_0x857231,_0x120ee9){super(_0x857231),this['textPartView']=this['_createTextPartView'](_0x857231,_0x120ee9),void 0x0!==_0x120ee9['isIconColorInherited']&&(this['iconView']['isColorInherited']=_0x120ee9['isIconColorInherited']),this['set']({'icon':_0x120ee9['icon']||_0x567d26,'withText':!0x0,'label':_0x120ee9['title'],'class':'ck-slash-command-button'});}['render'](){super['render'](),this['children']['add'](this['textPartView']);}['_createTextPartView'](_0x360f44,_0x24c43d){const _0x152402=new _0x3f3bb2(_0x360f44);return _0x152402['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-slash-command-button__text-part']},'children':_0x24c43d['description']?[this['labelView'],{'tag':'span','attributes':{'class':['ck','ck-slash-command-button__description']},'children':[{'text':_0x24c43d['description']}]}]:[this['labelView']]}),_0x152402;}}class SlashCommandUI extends _0x2b4222{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SlashCommandUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x48e0ab){super(_0x48e0ab),this['_setupMentionConfiguration']();}['init'](){this['editor']['once']('ready',this['_overrideMentionExecuteListener']['bind'](this)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x371f19=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3d876c;for(const _0x53b92c in _0x371f19){const _0x20f329=_0x53b92c,_0x400a8c=_0x371f19[_0x20f329];if('slashCommandLicenseKeyValid'==_0x400a8c||'slashCommandLicenseKeyInvalid'==_0x400a8c||'slashCommandLicenseKeyExpired'==_0x400a8c||'slashCommandLicenseKeyDomainLimit'==_0x400a8c||'slashCommandLicenseKeyNotAllowed'==_0x400a8c||'slashCommandLicenseKeyEvaluationLimit'==_0x400a8c||'slashCommandLicenseKeyUsageLimit'==_0x400a8c){delete _0x371f19[_0x20f329],_0x3d876c=_0x400a8c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'slashCommandLicenseKeyInvalid'==_0x3d876c&&_0x371f19['_showLicenseError']('invalid'),'slashCommandLicenseKeyExpired'==_0x3d876c&&_0x371f19['_showLicenseError']('expired'),'slashCommandLicenseKeyDomainLimit'==_0x3d876c&&_0x371f19['_showLicenseError']('domainLimit'),'slashCommandLicenseKeyNotAllowed'==_0x3d876c&&_0x371f19['_showLicenseError']('featureNotAllowed','SlashCommand'),'slashCommandLicenseKeyEvaluationLimit'==_0x3d876c&&_0x371f19['_showLicenseError']('evaluationLimit'),'slashCommandLicenseKeyUsageLimit'==_0x3d876c&&_0x371f19['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_setupMentionConfiguration'](){const _0xf0508b=this['editor'],_0x2b1ba7=this['editor']['plugins']['get']('SlashCommandEditing'),_0x4b7b37=_0xf0508b['config']['get']('mention.feeds');_0x4b7b37['push']({'marker':'/','feed':_0x36edc6=>_0x2b1ba7['getMatchingCommands'](_0x36edc6),'itemRenderer':this['_customItemRenderer']['bind'](this),'dropdownLimit':_0xf0508b['config']['get']('slashCommand.dropdownLimit')||0x1/0x0}),_0xf0508b['config']['set']('mention.feeds',_0x4b7b37);}['_overrideMentionExecuteListener'](){const _0x5715ec=this['editor'];_0x5715ec['commands']['get']('mention')['on']('execute',(_0x45ba44,_0x174210)=>{const _0x268fcc=_0x174210[0x0],_0x322706=_0x5715ec['model'];'/'===_0x268fcc['marker']&&_0x322706['change'](_0x3d7909=>{_0x3d7909['remove'](_0x268fcc['range']),_0x268fcc['mention']['execute'](),_0x45ba44['stop']();});},{'priority':'high'});}['_customItemRenderer'](_0x524303){const _0x8ad1f6=this['editor']['locale'],_0x3c472f=new SlashCommandButtonView(_0x8ad1f6,_0x524303);return _0x3c472f['render'](),_0x3c472f['element'];}}class SlashCommand extends _0x2b4222{static get['requires'](){return[_0x1943ff,SlashCommandEditing,SlashCommandUI];}static get['pluginName'](){return'SlashCommand';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{SlashCommand,SlashCommandConfig,SlashCommandEditing,SlashCommandUI};
|
|
23
|
+
import{Plugin as _0x3e7553}from'@ckeditor/ckeditor5-core';import{Mention as _0x4373cd}from'@ckeditor/ckeditor5-mention';import{CKEditorError as _0x5292a2,uid as _0xc4355f}from'@ckeditor/ckeditor5-utils';import{IconBrowseFiles as _0x4a38a4,IconBulletedList as _0x7061b3,IconCodeBlock as _0x3638f1,IconEmoji as _0xee149c,IconFootnote as _0x2b222a,IconHeading1 as _0x1d57ea,IconHeading2 as _0x153c4f,IconHeading3 as _0x4294b3,IconHeading4 as _0x194755,IconHeading5 as _0x1da646,IconHeading6 as _0x48d30e,IconHorizontalLine as _0xae02dc,IconHtml as _0x1a762d,IconIndent as _0x26e9d1,IconNumberedList as _0x36bfb4,IconOutdent as _0x22dcd4,IconParagraph as _0x4606d1,IconPlay as _0x4749a0,IconQuote as _0x326ad3,IconRobotPencil as _0x811968,IconTable as _0x483f9e,IconTableOfContents as _0x2023e9,IconTodoList as _0x841e23}from'@ckeditor/ckeditor5-icons';import{ButtonView as _0x59bef5,View as _0x521d87}from'@ckeditor/ckeditor5-ui';var O=class extends _0x3e7553{static get['pluginName'](){return'SlashCommandConfig';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2dd3c8){super(_0x2dd3c8),this['_allowedCommands']=null;}afterInit(){const _0x4d8ccf=this['editor']['config']['get']('slashCommand.removeCommands')||[],_0x24931c=function(_0x3be85a){let _0x1058f0=['heading4','heading5','heading6'];if(_0x3be85a){const _0x115f2f=_0x3be85a['map'](_0x4e018f=>_0x4e018f['model']);_0x1058f0=['heading1','heading2','heading3','heading4','heading5','heading6']['filter'](_0x242088=>!_0x115f2f['includes'](_0x242088));}return _0x1058f0;}(this['editor']['config']['get']('heading.options'));let _0x43d7e3=this['getDefaultCommands']()['filter'](_0x4eb28d=>!_0x24931c['includes'](_0x4eb28d['id']))['filter'](_0x1dd886=>!_0x4d8ccf['includes'](_0x1dd886['commandName']));const _0x3708b2=this['editor']['config']['get']('slashCommand.extraCommands');_0x3708b2&&_0x3708b2['length']&&(_0x43d7e3=_0x43d7e3['concat'](_0x3708b2));const _0x316468=this['editor']['config']['get']('template.definitions');_0x316468&&_0x316468['length']&&(_0x43d7e3=_0x43d7e3['concat'](function(_0x4e04e6){return _0x4e04e6['map'](_0x1c9fbc=>{const {title:_0x35e71a,icon:_0x58981b,description:_0x30af1d,data:_0x53b5a5}=_0x1c9fbc,_0x4fb36c={'id':P(_0x35e71a,'template'),'commandName':'insertTemplate','execute':_0xf76191=>{_0xf76191['execute']('insertTemplate',_0x53b5a5);},'description':_0x30af1d,'icon':_0x58981b,'title':_0x35e71a};return _0x58981b&&(_0x4fb36c['isIconColorInherited']=!0x1),_0x4fb36c;});}(_0x316468)));const _0x3636cd=this['editor']['config']['get']('style.definitions');_0x3636cd&&_0x3636cd['length']&&(_0x43d7e3=_0x43d7e3['concat'](function(_0x3ace96){return _0x3ace96['map'](_0x3bf195=>({'id':P(_0x3bf195['name'],'style'),'commandName':'style','execute':_0x5c3890=>{_0x5c3890['execute']('style',{'styleName':_0x3bf195['name']});},'isEnabled':_0x29995b=>{const _0x3accae=_0x29995b['commands']['get']('style');return _0x3accae['isEnabled']&&_0x3accae['enabledStyles']['includes'](_0x3bf195['name']);},'title':_0x3bf195['name']}));}(_0x3636cd)));const _0x209700=_0x43d7e3['filter'](_0x228119=>!_0x228119['commandName']||void 0x0!==this['editor']['commands']['get'](_0x228119['commandName'])),_0x5c39cf=[];for(const _0x555a69 of _0x209700)_0x5c39cf['push']({'id':_0x555a69['id'],'commandName':_0x555a69['commandName'],'title':'function'==typeof _0x555a69['title']?_0x555a69['title'](this['editor']):_0x555a69['title'],'description':_0x555a69['description'],'icon':_0x555a69['icon'],'isIconColorInherited':_0x555a69['isIconColorInherited'],'aliases':_0x555a69['aliases'],'isEnabled':()=>this['_proxyIsEnabled'](_0x555a69),'execute':()=>this['_proxyExecute'](_0x555a69)});this['_allowedCommands']=_0x5c39cf['sort'](E),async function(_0x32849b){const _0x554ed3='5goNZRxHzmBfrl0Fq6Cks1ahDGS2LUEWiby3wKvu4IVPdeT8jn9MOQJtcAY7Xp',_0x37cfa5=0x79728,_0x24a12d={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x2abb4a(_0x17ee2c){const _0x9d1f6b=new window['Promise'](_0x5ebc57=>{_0x17ee2c['once']('ready',_0x5ebc57);}),_0x3b0cd1=window['Date']['now'](),_0x3d5114=_0x17ee2c['config']['get']('licenseKey');async function _0x2302d7(){let _0xd28e2d,_0xcfe55e=null,_0x45df82=null;try{return'GPL'==_0x3d5114?'NotAllowed':(_0xd28e2d=_0x4053bc(),_0xd28e2d?(_0xd28e2d['usageEndpoint']&&(_0x45df82=_0x58eb96(_0xd28e2d['usageEndpoint'],_0xd28e2d['jti'])),await _0x2fc2f9()?_0x1fc238()?_0x5be11d()?'Expired':_0xd97904()?('evaluation'==_0xd28e2d['licenseType']&&(_0xcfe55e=_0x5d0e4f('EvaluationLimit')),await _0x13459f()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x5be11d(){const _0x2041f8=['evaluation','trial']['includes'](_0xd28e2d['licenseType'])?_0x3b0cd1/0x3e8:0xe10*_0x37cfa5;return _0xd28e2d['exp']<_0x2041f8;}function _0x1fc238(){const _0x31ab76=_0xd28e2d['features'];return!!_0x31ab76&&(!!_0x31ab76['includes']('*')||(!!_0x31ab76['includes']('SC')||(!!_0x31ab76['includes']('PP')||!(!_0x31ab76['includes']('TRILIUM')||!_0x2de64f()))));}function _0xd97904(){const _0x3b6152=_0xd28e2d['licensedHosts'];if(!_0x3b6152||0x0==_0x3b6152['length'])return!0x0;const {hostname:_0x43b6a0}=new URL(window['location']['href']);if(_0x3b6152['includes'](_0x43b6a0))return!0x0;const _0x551764=_0x43b6a0['split']('.');return _0x3b6152['filter'](_0x2b24f6=>_0x2b24f6['includes']('*'))['map'](_0x389991=>_0x389991['split']('.'))['filter'](_0x1c577e=>_0x1c577e['length']<=_0x551764['length'])['map'](_0x39acea=>Array(_0x551764['length']-_0x39acea['length'])['fill']('*'===_0x39acea[0x0]?'*':'')['concat'](_0x39acea))['some'](_0x3a9b7f=>_0x551764['every']((_0x3e800c,_0x3c4f3a)=>_0x3a9b7f[_0x3c4f3a]===_0x3e800c||'*'===_0x3a9b7f[_0x3c4f3a]));}function _0x13459f(){return _0xcfe55e&&_0x45df82?new window['Promise']((_0x5b835f,_0x42355c)=>{_0xcfe55e['then'](_0x5b835f,_0x42355c),_0x45df82['then'](_0xd95098=>{'Valid'!=_0xd95098&&_0x5b835f(_0xd95098);},_0x42355c);}):_0xcfe55e||_0x45df82||'Valid';}}function _0x58eb96(_0x2b0ce2,_0x1ae5a3){return new window['Promise'](_0x2f7852=>{if(_0xce908())return _0x2f7852('Valid');_0x1eae34(),_0x17ee2c['decorate']('_sendUsageRequest');let _0x2fc3bc=!0x1;const _0xe24b6a=_0xc4355f();function _0xf271e(_0x2df3b5){return!!_0x2df3b5&&('object'==typeof _0x2df3b5||'function'==typeof _0x2df3b5)&&'function'==typeof _0x2df3b5['then']&&'function'==typeof _0x2df3b5['catch'];}function _0x900400(_0x6b5b24){_0x287849(_0x6b5b24)['then'](_0x4cd862=>_0x4cd862&&'ok'==_0x4cd862['status']?_0x24d5fb(_0x2519d9(_0xe24b6a+_0x1ae5a3))!=_0x4cd862['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x1ca7c4=>(_0x5e6d2d(),_0x1ca7c4),()=>{const _0xf94960=_0x2ffb52();return null==_0xf94960?(_0x5e6d2d(),'Valid'):_0x3b0cd1-_0xf94960>0x240c8400?'UsageLimit':'Valid';})['then'](_0x2f7852)['catch'](()=>{_0x2f7852('UsageLimit');});const _0xb4642d=0x36ee80;function _0x5e6d2d(){const _0xb6128c='llct-'+_0x24d5fb(_0x2519d9(_0x2b0ce2)),_0x3f305a=_0x51df67(_0x24d5fb(window['Math']['ceil'](_0x3b0cd1/_0xb4642d)));window['localStorage']['setItem'](_0xb6128c,_0x3f305a);}function _0x2ffb52(){const _0x414ca3='llct-'+_0x24d5fb(_0x2519d9(_0x2b0ce2)),_0x1537f9=window['localStorage']['getItem'](_0x414ca3);return _0x1537f9?window['parseInt'](_0x51df67(_0x1537f9),0x10)*_0xb4642d:null;}function _0x287849(_0x5cc134){return new window['Promise']((_0x47f228,_0xc0359b)=>{_0x5cc134['then'](_0x47f228,_0xc0359b),window['setTimeout'](_0xc0359b,0x1d4c0);});}}_0x17ee2c['on']('_sendUsageRequest',(_0x1e04f9,_0x56748d)=>{if(_0x56748d[0x0]!=_0x2b0ce2)return _0x2f7852('UsageLimit');_0x56748d[0x1]={..._0x56748d[0x1],'requestId':_0xe24b6a};},{'priority':'high'}),_0x17ee2c['on']('_sendUsageRequest',_0x56f1a5=>{_0xf271e(_0x56f1a5['return'])&&(_0x2fc3bc=!0x0,_0x900400(_0x56f1a5['return']));},{'priority':'low'}),_0x9d1f6b['then'](()=>{_0x2fc3bc||_0x2f7852('UsageLimit');});});function _0xce908(){return'auto'==_0x17ee2c['editing']['view']['_overlayModeHint'];}function _0x1eae34(){_0x17ee2c['editing']['view']['_overlayModeHint']='auto';}}function _0x5d0e4f(_0x2db662){const _0xf4cfe6=[new window['Promise'](_0x2b9aec=>setTimeout(_0x2b9aec,0x93ecc)),_0x9d1f6b['then'](()=>new window['Promise'](_0x3a7f15=>{let _0x548d9b=0x0;_0x17ee2c['model']['on']('applyOperation',(_0x4ba726,_0x553cbe)=>{_0x553cbe[0x0]['isDocumentOperation']&&_0x548d9b++,0x5e8==_0x548d9b&&(_0x3a7f15(),_0x4ba726['off']());});}))];return window['Promise']['race'](_0xf4cfe6)['then'](()=>_0x2db662);}async function _0x4ee1c8(){await _0x9d1f6b,_0x17ee2c['model']['change']=_0x5227bf,_0x17ee2c['model']['enqueueChange']=_0x5227bf,_0x17ee2c['enableReadOnlyMode']('model');}function _0x2de64f(){return window['glob']&&window['glob']['triliumVersion'];}function _0x5575ed(_0x2624c2){const _0x320bdc=_0x4de333();_0x17ee2c[_0x320bdc]='slashCommandLicenseKey'+_0x2624c2,'Valid'!=_0x2624c2&&_0x4ee1c8();}function _0x4de333(){const _0x330b32=window['String'](window['performance']['now']())['replace']('.','');let _0x54ac0e='g';for(let _0x56984e=0x0;_0x56984e<_0x330b32['length'];_0x56984e+=0x2){let _0x36972c=window['parseInt'](_0x330b32['substring'](_0x56984e,_0x56984e+0x2));_0x36972c>=0x3e&&(_0x36972c-=0x3e),_0x54ac0e+=_0x554ed3[_0x36972c];}return _0x54ac0e;}function _0x4053bc(){const _0x193bde=_0x3d5114['split']('.');if(0x3!=_0x193bde['length'])return null;return _0x572528(_0x193bde[0x1]);function _0x572528(_0x12c038){const _0x257b8c=_0x155c16(_0x12c038);return _0x257b8c&&_0x321ff1()?_0x257b8c:null;function _0x321ff1(){const _0x335f96=_0x257b8c['jti'],_0x4b7226=window['parseInt'](_0x335f96['substring'](_0x335f96['length']-0x8),0x10),_0x5cbd93={..._0x257b8c,'jti':_0x335f96['substring'](0x0,_0x335f96['length']-0x8)};return delete _0x5cbd93['vc'],_0x2519d9(_0x5cbd93)==_0x4b7226;}}}async function _0x2fc2f9(){let _0x39745a=!0x0;try{const [_0x589509,_0x1b695b,_0x2f6d57]=_0x3d5114['split']('.');return _0x599bd7(_0x589509),await _0x3ac3a9(_0x589509,_0x1b695b,_0x2f6d57),_0x39745a;}catch{return!0x1;}function _0x599bd7(_0x3b19bf){const _0x48de4e=_0x155c16(_0x3b19bf);_0x48de4e&&'ES256'==_0x48de4e['alg']||(_0x39745a=!0x1);}async function _0x3ac3a9(_0x279e99,_0x110787,_0x4ce943){const _0x296561=window['Uint8Array']['from'](_0x16f8c6(_0x4ce943),_0x4f6682=>_0x4f6682['charCodeAt'](0x0)),_0x343914=new window['TextEncoder']()['encode'](_0x279e99+'.'+_0x110787),_0x23568c=window['crypto']['subtle'];if(!_0x23568c)return;const _0x57084f=await _0x23568c['importKey']('jwk',_0x24a12d,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x23568c['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x57084f,_0x296561,_0x343914)||(_0x39745a=!0x1);}}function _0x155c16(_0x317a51){return _0x317a51['startsWith']('ey')?JSON['parse'](_0x16f8c6(_0x317a51)):null;}function _0x16f8c6(_0x33f9cb){return window['atob'](_0x33f9cb['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x2519d9(_0x27d16b){let _0xf46665=0x1505;function _0x183adc(_0x14a8a9){for(let _0x408c72=0x0;_0x408c72<_0x14a8a9['length'];_0x408c72++){const _0x131cc5=_0x14a8a9['charCodeAt'](_0x408c72);_0xf46665=(_0xf46665<<0x5)+_0xf46665+_0x131cc5,_0xf46665&=_0xf46665;}}function _0x23673a(_0x4bc456){Array['isArray'](_0x4bc456)?_0x4bc456['forEach'](_0x23673a):_0x4bc456&&'object'==typeof _0x4bc456?Object['entries'](_0x4bc456)['sort']()['forEach'](([_0x1814c5,_0x1226d5])=>{_0x183adc(_0x1814c5),_0x23673a(_0x1226d5);}):_0x183adc(window['String'](_0x4bc456));}return _0x23673a(_0x27d16b),_0xf46665>>>0x0;}function _0x24d5fb(_0x4dda94){return _0x4dda94['toString'](0x10)['padStart'](0x8,'0');}function _0x51df67(_0x224efa){return _0x224efa['split']('')['reverse']()['join']('');}function _0x5227bf(){}_0x5575ed(await _0x2302d7());}_0x2abb4a(_0x32849b['editor']);}(this);}getAllowedCommands(){return this['_allowedCommands'];}getDefaultCommands(){const _0x1aa7a4=_0x313504=>function(_0x1242ba,_0x5b1572){const t=_0x1242ba['t'],_0x29c4d2=_0x1242ba['t'];switch(_0x5b1572){case'AI\x20Assistant':return _0x29c4d2('AI\x20Assistant');case'Block\x20quote':return _0x29c4d2('Block\x20quote');case'Bulleted\x20List':return _0x29c4d2('Bulleted\x20List');case'Insert\x20code\x20block':return _0x29c4d2('Insert\x20code\x20block');case'Open\x20file\x20manager':return _0x29c4d2('Open\x20file\x20manager');case'Insert\x20image':return _0x29c4d2('Insert\x20image');case'Heading\x201':return _0x29c4d2('Heading\x201');case'Heading\x202':return _0x29c4d2('Heading\x202');case'Heading\x203':return _0x29c4d2('Heading\x203');case'Heading\x204':return _0x29c4d2('Heading\x204');case'Heading\x205':return _0x29c4d2('Heading\x205');case'Heading\x206':return _0x29c4d2('Heading\x206');case'Horizontal\x20line':return _0x29c4d2('Horizontal\x20line');case'Insert\x20HTML':return _0x29c4d2('Insert\x20HTML');case'Increase\x20indent':return _0x29c4d2('Increase\x20indent');case'Insert\x20table':return _0x29c4d2('Insert\x20table');case'Table\x20of\x20contents':return _0x29c4d2('Table\x20of\x20contents');case'Numbered\x20List':return _0x29c4d2('Numbered\x20List');case'Decrease\x20indent':return _0x29c4d2('Decrease\x20indent');case'Paragraph':return _0x29c4d2('Paragraph');case'To-do\x20List':return _0x29c4d2('To-do\x20List');case'Create\x20a\x20block\x20quote':return t('Create\x20a\x20block\x20quote');case'Create\x20a\x20bulleted\x20list':return t('Create\x20a\x20bulleted\x20list');case'Create\x20a\x20code\x20block':return t('Create\x20a\x20code\x20block');case'Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file':return t('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file');case'Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file':return t('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file');case'Create\x20a\x20heading\x20level\x201':return t('Create\x20a\x20heading\x20level\x201');case'Create\x20a\x20heading\x20level\x202':return t('Create\x20a\x20heading\x20level\x202');case'Create\x20a\x20heading\x20level\x203':return t('Create\x20a\x20heading\x20level\x203');case'Create\x20a\x20heading\x20level\x204':return t('Create\x20a\x20heading\x20level\x204');case'Create\x20a\x20heading\x20level\x205':return t('Create\x20a\x20heading\x20level\x205');case'Create\x20a\x20heading\x20level\x206':return t('Create\x20a\x20heading\x20level\x206');case'Insert\x20a\x20horizontal\x20line':return t('Insert\x20a\x20horizontal\x20line');case'Insert\x20an\x20HTML\x20snippet':return t('Insert\x20an\x20HTML\x20snippet');case'Increase\x20the\x20indentation':return t('Increase\x20the\x20indentation');case'Insert\x20Mermaid\x20diagram':return t('Insert\x20Mermaid\x20diagram');case'Insert\x20the\x20Mermaid\x20diagram':return t('Insert\x20the\x20Mermaid\x20diagram');case'Create\x20a\x20table':return t('Create\x20a\x20table');case'Insert\x20table\x20of\x20contents':return t('Insert\x20table\x20of\x20contents');case'Create\x20a\x20numbered\x20list':return t('Create\x20a\x20numbered\x20list');case'Decrease\x20the\x20indentation':return t('Decrease\x20the\x20indentation');case'Insert\x20a\x20paragraph':return t('Insert\x20a\x20paragraph');case'Create\x20a\x20to-do\x20list':return t('Create\x20a\x20to-do\x20list');case'Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content':return t('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content');case'Insert\x20an\x20emoji':return t('Insert\x20an\x20emoji');case'Insert\x20a\x20footnote':return t('Insert\x20a\x20footnote');default:return _0x5b1572;}}(this['editor']['locale'],_0x313504);return[{'id':'aiAssistant','commandName':'showAIAssistant','icon':_0x811968,'title':_0x1aa7a4('AI\x20Assistant'),'description':_0x1aa7a4('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content'),'execute':_0x23e2e4=>{setTimeout(()=>_0x23e2e4['execute']('showAIAssistant'));}},{'id':'blockQuote','commandName':'blockQuote','icon':_0x326ad3,'title':_0x1aa7a4('Block\x20quote'),'description':_0x1aa7a4('Create\x20a\x20block\x20quote')},{'id':'bulletedList','commandName':'bulletedList','icon':_0x7061b3,'title':_0x1aa7a4('Bulleted\x20List'),'description':_0x1aa7a4('Create\x20a\x20bulleted\x20list')},{'id':'codeBlock','commandName':'codeBlock','icon':_0x3638f1,'title':_0x1aa7a4('Insert\x20code\x20block'),'description':_0x1aa7a4('Create\x20a\x20code\x20block')},{'id':'ckbox','commandName':'ckbox','icon':_0x4a38a4,'title':_0x1aa7a4('Open\x20file\x20manager'),'description':_0x1aa7a4('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckfinder','filemanager','upload']},{'id':'ckfinder','commandName':'ckfinder','icon':_0x4a38a4,'title':_0x1aa7a4('Insert\x20image'),'description':_0x1aa7a4('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckbox','filemanager','upload']},{'id':'emoji','commandName':'emoji','icon':_0xee149c,'title':_0x1aa7a4('Emoji'),'description':_0x1aa7a4('Insert\x20an\x20emoji'),'execute':_0x22cd0c=>{setTimeout(()=>_0x22cd0c['execute']('emoji'));}},{'id':'heading1','commandName':'heading','icon':_0x1d57ea,'title':_0x1aa7a4('Heading\x201'),'description':_0x1aa7a4('Create\x20a\x20heading\x20level\x201'),'execute':_0x2987f2=>{_0x2987f2['execute']('heading',{'value':'heading1'});}},{'id':'heading2','commandName':'heading','icon':_0x153c4f,'title':_0x1aa7a4('Heading\x202'),'description':_0x1aa7a4('Create\x20a\x20heading\x20level\x202'),'execute':_0x35ab3e=>{_0x35ab3e['execute']('heading',{'value':'heading2'});}},{'id':'heading3','commandName':'heading','icon':_0x4294b3,'title':_0x1aa7a4('Heading\x203'),'description':_0x1aa7a4('Create\x20a\x20heading\x20level\x203'),'execute':_0x1ead9f=>{_0x1ead9f['execute']('heading',{'value':'heading3'});}},{'id':'heading4','commandName':'heading','icon':_0x194755,'title':_0x1aa7a4('Heading\x204'),'description':_0x1aa7a4('Create\x20a\x20heading\x20level\x204'),'execute':_0x52c71e=>{_0x52c71e['execute']('heading',{'value':'heading4'});}},{'id':'heading5','commandName':'heading','icon':_0x1da646,'title':_0x1aa7a4('Heading\x205'),'description':_0x1aa7a4('Create\x20a\x20heading\x20level\x205'),'execute':_0x536bf0=>{_0x536bf0['execute']('heading',{'value':'heading5'});}},{'id':'heading6','commandName':'heading','icon':_0x48d30e,'title':_0x1aa7a4('Heading\x206'),'description':_0x1aa7a4('Create\x20a\x20heading\x20level\x206'),'execute':_0x4cbfb1=>{_0x4cbfb1['execute']('heading',{'value':'heading6'});}},{'id':'horizontalLine','commandName':'horizontalLine','icon':_0xae02dc,'title':_0x1aa7a4('Horizontal\x20line'),'description':_0x1aa7a4('Insert\x20a\x20horizontal\x20line')},{'id':'htmlEmbed','commandName':'htmlEmbed','icon':_0x1a762d,'title':_0x1aa7a4('Insert\x20HTML'),'description':_0x1aa7a4('Insert\x20an\x20HTML\x20snippet')},{'id':'indent','commandName':'indent','icon':_0x26e9d1,'title':_0x1aa7a4('Increase\x20indent'),'description':_0x1aa7a4('Increase\x20the\x20indentation')},{'id':'insertMermaidCommand','commandName':'insertMermaidCommand','title':_0x1aa7a4('Insert\x20Mermaid\x20diagram'),'description':_0x1aa7a4('Insert\x20the\x20Mermaid\x20diagram')},{'id':'insertTable','commandName':'insertTable','icon':_0x483f9e,'title':_0x1aa7a4('Insert\x20table'),'description':_0x1aa7a4('Create\x20a\x20table')},{'id':'insertTableOfContents','commandName':'insertTableOfContents','icon':_0x2023e9,'title':_0x1aa7a4('Table\x20of\x20contents'),'description':_0x1aa7a4('Insert\x20table\x20of\x20contents'),'aliases':['toc']},{'id':'numberedList','commandName':'numberedList','icon':_0x36bfb4,'title':_0x1aa7a4('Numbered\x20List'),'description':_0x1aa7a4('Create\x20a\x20numbered\x20list')},{'id':'outdent','commandName':'outdent','icon':_0x22dcd4,'title':_0x1aa7a4('Decrease\x20indent'),'description':_0x1aa7a4('Decrease\x20the\x20indentation')},{'id':'paragraph','commandName':'paragraph','icon':_0x4606d1,'title':_0x1aa7a4('Paragraph'),'description':_0x1aa7a4('Insert\x20a\x20paragraph')},{'id':'todoList','commandName':'todoList','icon':_0x841e23,'title':_0x1aa7a4('To-do\x20List'),'description':_0x1aa7a4('Create\x20a\x20to-do\x20list')},{'id':'footnote','commandName':'insertFootnote','icon':_0x2b222a,'title':_0x1aa7a4('Footnote'),'description':_0x1aa7a4('Insert\x20a\x20footnote')}];}['_proxyIsEnabled'](_0xae2d09){return _0xae2d09['isEnabled']?_0xae2d09['isEnabled'](this['editor']):!_0xae2d09['commandName']||this['editor']['commands']['get'](_0xae2d09['commandName'])['isEnabled'];}_proxyExecute(_0x5b2b0e){if(_0x5b2b0e['execute'])_0x5b2b0e['execute'](this['editor']);else{if(!_0x5b2b0e['commandName'])throw new _0x5292a2('slash-command-execute-missing',this['editor'],{'commandDefinition':_0x5b2b0e});this['editor']['execute'](_0x5b2b0e['commandName']);}}};function E(_0x1ac82a,_0xb9b879){return _0x1ac82a['title']<_0xb9b879['title']?-0x1:_0x1ac82a['title']>_0xb9b879['title']?0x1:0x0;}function P(_0x5d735c,_0x13dd41){return _0x13dd41+'-'+_0x5d735c['toLowerCase']()['split']('\x20')['join']('-');}var K=class extends _0x3e7553{static get['pluginName'](){return'SlashCommandEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[O];}getMatchingCommands(_0x3f4ed0){const _0x4168f=_0x3f4ed0&&_0x3f4ed0['toLowerCase']();let _0x6b774f=this['editor']['plugins']['get']('SlashCommandConfig')['getAllowedCommands']();if(_0x6b774f=_0x6b774f['filter'](_0x5154de=>_0x5154de['isEnabled']()),_0x4168f){const _0x3cbd92=[],_0x1a46c6=[],_0x4782c9=[],_0x2d8ea2=[];for(const _0x4a392a of _0x6b774f)_0x4a392a['id']['toLowerCase']()['includes'](_0x4168f)?_0x3cbd92['push'](_0x4a392a):_0x4a392a['title']['toLowerCase']()['includes'](_0x4168f)?_0x1a46c6['push'](_0x4a392a):_0x4a392a['aliases']&&_0x4a392a['aliases']['some'](_0x124d95=>_0x124d95['toLowerCase']()['includes'](_0x4168f))?_0x4782c9['push'](_0x4a392a):_0x4a392a['description']&&_0x4a392a['description']['toLowerCase']()['includes'](_0x4168f)&&_0x2d8ea2['push'](_0x4a392a);_0x6b774f=_0x3cbd92['concat'](_0x1a46c6,_0x4782c9,_0x2d8ea2);}return _0x6b774f;}},M=class extends _0x59bef5{constructor(_0x5dfe56,_0x4edc39){super(_0x5dfe56),this['textPartView']=this['_createTextPartView'](_0x5dfe56,_0x4edc39),void 0x0!==_0x4edc39['isIconColorInherited']&&(this['iconView']['isColorInherited']=_0x4edc39['isIconColorInherited']),this['set']({'icon':_0x4edc39['icon']||_0x4749a0,'withText':!0x0,'label':_0x4edc39['title'],'class':'ck-slash-command-button'});}['render'](){super['render'](),this['children']['add'](this['textPartView']);}_createTextPartView(_0x59d0e7,_0x31c4c3){const _0x8d4bfe=new _0x521d87(_0x59d0e7);return _0x8d4bfe['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-slash-command-button__text-part']},'children':_0x31c4c3['description']?[this['labelView'],{'tag':'span','attributes':{'class':['ck','ck-slash-command-button__description']},'children':[{'text':_0x31c4c3['description']}]}]:[this['labelView']]}),_0x8d4bfe;}},S=class extends _0x3e7553{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'SlashCommandUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5cf698){super(_0x5cf698),this['_setupMentionConfiguration']();}init(){this['editor']['once']('ready',this['_overrideMentionExecuteListener']['bind'](this)),this['licenseKey']=this['editor']['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0x588ef1=[this['editor']];for(const _0x59d18b of _0x588ef1){let _0x59502e;for(const _0x5bf1cb in _0x59d18b){const _0x2759cc=_0x5bf1cb,_0x243911=_0x59d18b[_0x2759cc];if('slashCommandLicenseKeyValid'==_0x243911||'slashCommandLicenseKeyInvalid'==_0x243911||'slashCommandLicenseKeyExpired'==_0x243911||'slashCommandLicenseKeyDomainLimit'==_0x243911||'slashCommandLicenseKeyNotAllowed'==_0x243911||'slashCommandLicenseKeyEvaluationLimit'==_0x243911||'slashCommandLicenseKeyUsageLimit'==_0x243911){delete _0x59d18b[_0x2759cc],_0x59502e=_0x243911,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'slashCommandLicenseKeyInvalid'==_0x59502e&&_0x59d18b['_showLicenseError']('invalid'),'slashCommandLicenseKeyExpired'==_0x59502e&&_0x59d18b['_showLicenseError']('expired'),'slashCommandLicenseKeyDomainLimit'==_0x59502e&&_0x59d18b['_showLicenseError']('domainLimit'),'slashCommandLicenseKeyNotAllowed'==_0x59502e&&_0x59d18b['_showLicenseError']('featureNotAllowed','SlashCommand'),'slashCommandLicenseKeyEvaluationLimit'==_0x59502e&&_0x59d18b['_showLicenseError']('evaluationLimit'),'slashCommandLicenseKeyUsageLimit'==_0x59502e&&_0x59d18b['_showLicenseError']('usageLimit');}},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}_setupMentionConfiguration(){const _0x278596=this['editor'],_0x56e548=this['editor']['plugins']['get']('SlashCommandEditing'),_0x4afef9=_0x278596['config']['get']('mention.feeds');_0x4afef9['push']({'marker':'/','feed':_0x3175b7=>_0x56e548['getMatchingCommands'](_0x3175b7),'itemRenderer':this['_customItemRenderer']['bind'](this),'dropdownLimit':_0x278596['config']['get']('slashCommand.dropdownLimit')||0x1/0x0}),_0x278596['config']['set']('mention.feeds',_0x4afef9);}_overrideMentionExecuteListener(){const _0x560c43=this['editor'];_0x560c43['commands']['get']('mention')['on']('execute',(_0x65c9a2,_0x251901)=>{const _0x7c03f0=_0x251901[0x0],_0x5a52ae=_0x560c43['model'];'/'===_0x7c03f0['marker']&&_0x5a52ae['change'](_0x1aa591=>{_0x1aa591['remove'](_0x7c03f0['range']),_0x7c03f0['mention']['execute'](),_0x65c9a2['stop']();});},{'priority':'high'});}_customItemRenderer(_0x4079e7){const _0x2c2717=this['editor']['locale'],_0x58de91=new M(_0x2c2717,_0x4079e7);return _0x58de91['render'](),_0x58de91['element'];}},D=class extends _0x3e7553{static get requires(){return[_0x4373cd,K,S];}static get['pluginName'](){return'SlashCommand';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}};export{D as SlashCommand,O as SlashCommandConfig,K as SlashCommandEditing,S as SlashCommandUI};
|
package/dist/legacyerrors.d.ts
CHANGED
package/dist/slashcommand.d.ts
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import { Plugin } from
|
|
10
|
-
import { Mention } from
|
|
11
|
-
import { SlashCommandEditing } from
|
|
12
|
-
import { SlashCommandUI } from
|
|
6
|
+
* @module slash-command/slashcommand
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Plugin, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
|
|
10
|
+
import { Mention } from "@ckeditor/ckeditor5-mention";
|
|
11
|
+
import { SlashCommandEditing } from "./slashcommandediting.js";
|
|
12
|
+
import { SlashCommandUI } from "./slashcommandui.js";
|
|
13
13
|
/**
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
* The slash command feature.
|
|
15
|
+
* It allows for an easy access to a predefined list of editor commands by typing `/` inside the editor.
|
|
16
|
+
*
|
|
17
|
+
* For a detailed overview, check the {@glink features/slash-commands Slash command} feature guide.
|
|
18
|
+
*
|
|
19
|
+
* @extends module:core/plugin~Plugin
|
|
20
|
+
*/
|
|
21
21
|
export declare class SlashCommand extends Plugin {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
22
|
+
/**
|
|
23
|
+
* @inheritDoc
|
|
24
|
+
*/
|
|
25
|
+
static get requires(): PluginDependenciesOf<[Mention, SlashCommandEditing, SlashCommandUI]>;
|
|
26
|
+
/**
|
|
27
|
+
* @inheritDoc
|
|
28
|
+
*/
|
|
29
|
+
static get pluginName(): "SlashCommand";
|
|
30
|
+
/**
|
|
31
|
+
* @inheritDoc
|
|
32
|
+
*/
|
|
33
|
+
static override get isOfficialPlugin(): true;
|
|
34
|
+
/**
|
|
35
|
+
* @inheritDoc
|
|
36
|
+
*/
|
|
37
|
+
static override get isPremiumPlugin(): true;
|
|
38
38
|
}
|