@ckeditor/ckeditor5-format-painter 48.2.0 → 48.3.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/augmentation.d.ts +14 -14
- package/dist/copyformatcommand.d.ts +32 -32
- package/dist/formatpainter.d.ts +31 -31
- package/dist/formatpainterediting.d.ts +28 -28
- package/dist/formatpainterui.d.ts +36 -35
- package/dist/index.d.ts +12 -12
- package/dist/index.js +2 -2
- package/dist/legacyerrors.d.ts +0 -4
- package/dist/pasteformatcommand.d.ts +19 -19
- 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/utils/common-translations.d.ts +6 -6
- package/dist/utils.d.ts +17 -17
- package/package.json +7 -7
package/dist/augmentation.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import type { FormatPainter, FormatPainterEditing, FormatPainterUI, PasteFormatCommand, CopyFormatCommand, COPY_FORMAT_COMMAND_NAME, PASTE_FORMAT_COMMAND_NAME } from
|
|
6
|
-
declare module
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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 { FormatPainter, FormatPainterEditing, FormatPainterUI, PasteFormatCommand, CopyFormatCommand, COPY_FORMAT_COMMAND_NAME, PASTE_FORMAT_COMMAND_NAME } from "./index.js";
|
|
6
|
+
declare module "@ckeditor/ckeditor5-core" {
|
|
7
|
+
interface PluginsMap {
|
|
8
|
+
[FormatPainter.pluginName]: FormatPainter;
|
|
9
|
+
[FormatPainterEditing.pluginName]: FormatPainterEditing;
|
|
10
|
+
[FormatPainterUI.pluginName]: FormatPainterUI;
|
|
11
|
+
}
|
|
12
|
+
interface CommandsMap {
|
|
13
|
+
[COPY_FORMAT_COMMAND_NAME]: CopyFormatCommand;
|
|
14
|
+
[PASTE_FORMAT_COMMAND_NAME]: PasteFormatCommand;
|
|
15
|
+
}
|
|
16
16
|
}
|
|
@@ -1,37 +1,37 @@
|
|
|
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 { Command, type Editor } from
|
|
10
|
-
import type { FormattingAttributesValues } from
|
|
6
|
+
* @module format-painter/copyformatcommand
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Command, type Editor } from "@ckeditor/ckeditor5-core";
|
|
10
|
+
import type { FormattingAttributesValues } from "./formatpainterediting.js";
|
|
11
11
|
/**
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
12
|
+
* This command copies the formatting from the current {@link module:engine/model/selection~ModelSelection model selection}
|
|
13
|
+
* and stores it in its {@link module:format-painter/copyformatcommand~CopyFormatCommand#value} property.
|
|
14
|
+
*
|
|
15
|
+
* The formatting can then be pasted using the {@link module:format-painter/pasteformatcommand~PasteFormatCommand}.
|
|
16
|
+
*
|
|
17
|
+
* @extends module:core/command~Command
|
|
18
|
+
*/
|
|
19
19
|
export declare class CopyFormatCommand extends Command {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
20
|
+
value: FormattingAttributesValues | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Creates a new `CopyFormatCommand` instance.
|
|
23
|
+
*
|
|
24
|
+
* @param {module:core/editor/editor~Editor} editor The editor on which this command will be used.
|
|
25
|
+
*/
|
|
26
|
+
constructor(editor: Editor);
|
|
27
|
+
/**
|
|
28
|
+
* Executes the command. The formatting is then stored in the {@link #value} property.
|
|
29
|
+
*
|
|
30
|
+
* @fires execute
|
|
31
|
+
*/
|
|
32
|
+
override execute(): void;
|
|
33
|
+
/**
|
|
34
|
+
* Resets the stored formatting.
|
|
35
|
+
*/
|
|
36
|
+
reset(): void;
|
|
37
37
|
}
|
package/dist/formatpainter.d.ts
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
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 { FormatPainterEditing } from
|
|
11
|
-
import { FormatPainterUI } from
|
|
6
|
+
* @module format-painter/formatpainter
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Plugin, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
|
|
10
|
+
import { FormatPainterEditing } from "./formatpainterediting.js";
|
|
11
|
+
import { FormatPainterUI } from "./formatpainterui.js";
|
|
12
12
|
/**
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
* The format painter feature.
|
|
14
|
+
*
|
|
15
|
+
* For a detailed overview, check the {@glink features/format-painter Format painter} feature documentation.
|
|
16
|
+
*
|
|
17
|
+
* @extends module:core/plugin~Plugin
|
|
18
|
+
*/
|
|
19
19
|
export declare class FormatPainter extends Plugin {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
20
|
+
/**
|
|
21
|
+
* @inheritDoc
|
|
22
|
+
*/
|
|
23
|
+
static get requires(): PluginDependenciesOf<[FormatPainterEditing, FormatPainterUI]>;
|
|
24
|
+
/**
|
|
25
|
+
* @inheritDoc
|
|
26
|
+
*/
|
|
27
|
+
static get pluginName(): "FormatPainter";
|
|
28
|
+
/**
|
|
29
|
+
* @inheritDoc
|
|
30
|
+
*/
|
|
31
|
+
static override get isOfficialPlugin(): true;
|
|
32
|
+
/**
|
|
33
|
+
* @inheritDoc
|
|
34
|
+
*/
|
|
35
|
+
static override get isPremiumPlugin(): true;
|
|
36
36
|
}
|
|
@@ -1,36 +1,36 @@
|
|
|
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
|
-
import { Plugin } from
|
|
6
|
+
* @module format-painter/formatpainterediting
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from "@ckeditor/ckeditor5-core";
|
|
9
9
|
/**
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
* The format painter editing feature. It introduces two commands: `copyFormat` and `pasteFormat`.
|
|
11
|
+
*/
|
|
12
12
|
export declare class FormatPainterEditing extends Plugin {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
static get pluginName(): "FormatPainterEditing";
|
|
17
|
+
/**
|
|
18
|
+
* @inheritDoc
|
|
19
|
+
*/
|
|
20
|
+
static override get isOfficialPlugin(): true;
|
|
21
|
+
/**
|
|
22
|
+
* @inheritDoc
|
|
23
|
+
*/
|
|
24
|
+
static override get isPremiumPlugin(): true;
|
|
25
|
+
init(): void;
|
|
26
|
+
/**
|
|
27
|
+
* @inheritDoc
|
|
28
|
+
*/
|
|
29
|
+
override destroy(): void;
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
* An object with key-value pairs describing formatting model attributes and their values.
|
|
33
|
+
*/
|
|
34
34
|
export type FormattingAttributesValues = {
|
|
35
|
-
|
|
35
|
+
[k: string]: unknown;
|
|
36
36
|
};
|
|
@@ -1,40 +1,41 @@
|
|
|
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
|
-
import { Plugin } from
|
|
9
|
-
import
|
|
10
|
-
|
|
6
|
+
* @module format-painter/formatpainterui
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from "@ckeditor/ckeditor5-core";
|
|
9
|
+
import { type DomEmitterMixinConstructor } from "@ckeditor/ckeditor5-utils";
|
|
10
|
+
import "../theme/formatpainter.css";
|
|
11
|
+
declare const FormatPainterUIBase: DomEmitterMixinConstructor<typeof Plugin>;
|
|
11
12
|
/**
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
export declare class FormatPainterUI extends
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
13
|
+
* The format painter UI feature. It introduces the `formatPainter` dropdown with a "Continuous painting"
|
|
14
|
+
* switch button.
|
|
15
|
+
*
|
|
16
|
+
* The first click on the dropdown button copies the formatting of the selected text.
|
|
17
|
+
* Then the next click in the editor editable pastes the formatting.
|
|
18
|
+
*/
|
|
19
|
+
export declare class FormatPainterUI extends FormatPainterUIBase {
|
|
20
|
+
/**
|
|
21
|
+
* @inheritDoc
|
|
22
|
+
*/
|
|
23
|
+
static get pluginName(): "FormatPainterUI";
|
|
24
|
+
/**
|
|
25
|
+
* @inheritDoc
|
|
26
|
+
*/
|
|
27
|
+
static override get isOfficialPlugin(): true;
|
|
28
|
+
/**
|
|
29
|
+
* @inheritDoc
|
|
30
|
+
*/
|
|
31
|
+
static override get isPremiumPlugin(): true;
|
|
32
|
+
/**
|
|
33
|
+
* @inheritDoc
|
|
34
|
+
*/
|
|
35
|
+
init(): void;
|
|
36
|
+
/**
|
|
37
|
+
* @inheritDoc
|
|
38
|
+
*/
|
|
39
|
+
afterInit(): void;
|
|
39
40
|
}
|
|
40
41
|
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
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 { type COPY_FORMAT_COMMAND_NAME, type PASTE_FORMAT_COMMAND_NAME } from
|
|
9
|
-
export { FormatPainter } from
|
|
10
|
-
export { FormatPainterEditing, type FormattingAttributesValues } from
|
|
11
|
-
export { FormatPainterUI } from
|
|
12
|
-
export { PasteFormatCommand } from
|
|
13
|
-
export { CopyFormatCommand } from
|
|
14
|
-
import
|
|
6
|
+
* @module format-painter
|
|
7
|
+
*/
|
|
8
|
+
export { type COPY_FORMAT_COMMAND_NAME, type PASTE_FORMAT_COMMAND_NAME } from "./utils.js";
|
|
9
|
+
export { FormatPainter } from "./formatpainter.js";
|
|
10
|
+
export { FormatPainterEditing, type FormattingAttributesValues } from "./formatpainterediting.js";
|
|
11
|
+
export { FormatPainterUI } from "./formatpainterui.js";
|
|
12
|
+
export { PasteFormatCommand } from "./pasteformatcommand.js";
|
|
13
|
+
export { CopyFormatCommand } from "./copyformatcommand.js";
|
|
14
|
+
import "./augmentation.js";
|
package/dist/index.js
CHANGED
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
24
|
-
_0x4c1f03(_0x3cbcd0){static get['pluginName'](){return'FormatPainterUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x220ac6=this['editor'];_0x220ac6['editing']['view']['addObserver'](_0x358e41),_0x220ac6['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':p(_0x220ac6['locale'],'Copy\x20text\x20formatting'),'keystroke':'Ctrl+Alt+C'},{'label':p(_0x220ac6['locale'],'Paste\x20text\x20formatting'),'keystroke':'Ctrl+Alt+V'}]}),_0x220ac6['ui']['componentFactory']['add']('formatPainter',_0x3c4cc0=>{const _0x12767d=_0x30e780(_0x3c4cc0,_0x27c4cf),_0x142dca=_0x220ac6['commands']['get'](w);_0x12767d['buttonView']['set']({'label':p(_0x220ac6['locale'],'Paint\x20formatting'),'icon':_0x38f2f9,'keystroke':'Ctrl+Alt+C','tooltip':!0x0}),_0x12767d['class']='ck-format-painter-dropdown',_0x142dca&&(_0x12767d['bind']('isEnabled')['to'](_0x142dca,'isEnabled'),this['listenTo'](_0x142dca,'change:isEnabled',(_0x5890e5,_0x2db3ff,_0x20ff93)=>{_0x20ff93||this['_finishPainting']();}),_0x12767d['buttonView']['bind']('isOn')['to'](_0x142dca,'value',_0x502064=>!!_0x502064),this['listenTo'](_0x220ac6,'destroy',()=>this['_toggleSpecialCursor'](!0x1)),this['listenTo'](_0x142dca,'change:value',(_0x2f5719,_0x3ce0e6,_0x1ae331)=>{this['_toggleSpecialCursor'](!!_0x1ae331);}));const _0x5c5cf9=new _0x1019c1({'withText':!0x0,'label':p(_0x220ac6['locale'],'Continuous\x20painting'),'tooltip':p(_0x220ac6['locale'],'Keeps\x20the\x20painter\x20on\x20after\x20setting\x20the\x20formatting.'),'isOn':!0x1,'role':'menuitemcheckbox'});_0x59a0b8(_0x12767d,new _0x26979f([{'type':'switchbutton','model':_0x5c5cf9}]),{'role':'menu'});const _0x2ed99d=()=>{this['_copyFormatting'](),this['listenTo'](_0x17d235['window']['document'],'mouseup',()=>{this['_pasteFormatting'](),_0x5c5cf9['isOn']||this['_finishPainting']();});};return this['listenTo'](_0x12767d,'execute',()=>{_0x5c5cf9['isOn']=!_0x5c5cf9['isOn'];}),this['listenTo'](_0x12767d['buttonView'],'execute',()=>{_0x220ac6['editing']['view']['focus'](),_0x12767d['buttonView']['isOn']?this['_finishPainting']():_0x2ed99d();}),_0x220ac6['keystrokes']['set']('Ctrl+Alt+C',(_0x62b55a,_0x654ba6)=>{_0x2ed99d(),_0x5c5cf9['isOn']=!0x0,_0x654ba6();},{'priority':'high'}),_0x220ac6['keystrokes']['set']('Ctrl+Alt+V',(_0x126fb9,_0x393b2d)=>{_0x12767d['buttonView']['isOn']&&(this['_pasteFormatting'](),_0x5c5cf9['isOn']||this['_finishPainting'](),_0x393b2d());},{'priority':'high'}),_0x220ac6['keystrokes']['set']('Esc',(_0x486828,_0x74c957)=>{_0x12767d['buttonView']['isOn']&&(_0x5c5cf9['isOn']=!0x1,this['_finishPainting'](),_0x220ac6['ui']['ariaLiveAnnouncer']['announce'](p(_0x220ac6['locale'],'Painting\x20cancelled.')),_0x74c957());}),_0x12767d;});}['afterInit'](){!async function(_0x3e6539){const _0x4edb4a=_0x51f673([0x51,0x69,0x4c,0x52,0x43,0x53,0x4f,0x73,0x5a,0x38,0x70,0x41,0x76,0x44,0x64,0x61,0x50,0x4a,0x55,0x45,0x33,0x6f,0x78,0x6a,0x4b,0x6c,0x7a,0x4d,0x32,0x75,0x58,0x67,0x72,0x74,0x47,0x66,0x65,0x79,0x68,0x35,0x63,0x4e,0x46,0x6b,0x6d,0x42,0x77,0x39,0x49,0x36,0x57,0x48,0x30,0x71,0x6e,0x62,0x34,0x54,0x31,0x37,0x59,0x56]),_0x3a168c=0x4597e011,_0xe6fa8d=0x45906bc1^_0x3a168c,_0x2fcf49=window[_0x51f673([0x44,0x61,0x74,0x65])][_0x51f673([0x6e,0x6f,0x77])](),_0x1b701f=_0x3e6539[_0x51f673([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x401c3b=new window[(_0x51f673([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x38c0e3=>{_0x1b701f[_0x51f673([0x6f,0x6e,0x63,0x65])](_0x51f673([0x72,0x65,0x61,0x64,0x79]),_0x38c0e3);}),_0x2cb103={[_0x51f673([0x6b,0x74,0x79])]:_0x51f673([0x45,0x43]),[_0x51f673([0x75,0x73,0x65])]:_0x51f673([0x73,0x69,0x67]),[_0x51f673([0x63,0x72,0x76])]:_0x51f673([0x50,0x2d,0x32,0x35,0x36]),[_0x51f673([0x78])]:_0x51f673([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]),[_0x51f673([0x79])]:_0x51f673([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]),[_0x51f673([0x61,0x6c,0x67])]:_0x51f673([0x45,0x53,0x32,0x35,0x36])},_0x4c61b3=_0x1b701f[_0x51f673([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x51f673([0x67,0x65,0x74])](_0x51f673([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2a58af(){let _0x5e9d46,_0x200818=null,_0xab7029=null;try{if(_0x4c61b3==_0x51f673([0x47,0x50,0x4c]))return _0x51f673([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5e9d46=_0x1523c2(),!_0x5e9d46)return _0x51f673([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5e9d46[_0x51f673([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xab7029=_0x58f998(_0x5e9d46[_0x51f673([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5e9d46[_0x51f673([0x6a,0x74,0x69])])),await _0x5e6109()?_0x6e4a11()?_0x35c22a()?_0x51f673([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5b609a()?(_0x5e9d46[_0x51f673([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x51f673([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x200818=_0x192ef4(_0x51f673([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x38099e()):_0x51f673([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x51f673([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x51f673([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x51f673([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x35c22a(){const _0x3a2aae=[_0x51f673([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x51f673([0x74,0x72,0x69,0x61,0x6c])][_0x51f673([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e9d46[_0x51f673([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2fcf49/0x3e8:0xe10*_0xe6fa8d;return _0x5e9d46[_0x51f673([0x65,0x78,0x70])]<_0x3a2aae;}function _0x6e4a11(){const _0x3399a9=_0x5e9d46[_0x51f673([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3399a9&&(!!_0x3399a9[_0x51f673([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51f673([0x2a]))||(!!_0x3399a9[_0x51f673([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51f673([0x46,0x50]))||(!!_0x3399a9[_0x51f673([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51f673([0x50,0x50]))||!(!_0x3399a9[_0x51f673([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51f673([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x21bb34()))));}function _0x5b609a(){const _0x32d053=_0x5e9d46[_0x51f673([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x32d053||0x0==_0x32d053[_0x51f673([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2e3f51}=new URL(window[_0x51f673([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x32d053[_0x51f673([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e3f51))return!0x0;const _0x1af2a7=_0x2e3f51[_0x51f673([0x73,0x70,0x6c,0x69,0x74])](_0x51f673([0x2e]));return _0x32d053[_0x51f673([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xccb3ec=>_0xccb3ec[_0x51f673([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51f673([0x2a])))[_0x51f673([0x6d,0x61,0x70])](_0x5029a5=>_0x5029a5[_0x51f673([0x73,0x70,0x6c,0x69,0x74])](_0x51f673([0x2e])))[_0x51f673([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x39faec=>_0x39faec[_0x51f673([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1af2a7[_0x51f673([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x51f673([0x6d,0x61,0x70])](_0x40ed44=>Array(_0x1af2a7[_0x51f673([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x40ed44[_0x51f673([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x51f673([0x66,0x69,0x6c,0x6c])](_0x40ed44[0x0]===_0x51f673([0x2a])?_0x51f673([0x2a]):'')[_0x51f673([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x40ed44))[_0x51f673([0x73,0x6f,0x6d,0x65])](_0x8d27e2=>_0x1af2a7[_0x51f673([0x65,0x76,0x65,0x72,0x79])]((_0x262c41,_0x4dc431)=>_0x8d27e2[_0x4dc431]===_0x262c41||_0x8d27e2[_0x4dc431]===_0x51f673([0x2a])));}function _0x38099e(){return _0x200818&&_0xab7029?new window[(_0x51f673([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x114eec,_0x49c0a6)=>{_0x200818[_0x51f673([0x74,0x68,0x65,0x6e])](_0x114eec,_0x49c0a6),_0xab7029[_0x51f673([0x74,0x68,0x65,0x6e])](_0x481a80=>{_0x481a80!=_0x51f673([0x56,0x61,0x6c,0x69,0x64])&&_0x114eec(_0x481a80);},_0x49c0a6);}):_0x200818||_0xab7029||_0x51f673([0x56,0x61,0x6c,0x69,0x64]);}}function _0x58f998(_0x14741e,_0x1bf706){return new window[(_0x51f673([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a32dd=>{if(_0x3ca3e9())return _0x5a32dd(_0x51f673([0x56,0x61,0x6c,0x69,0x64]));_0x2ac904(),_0x1b701f[_0x51f673([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x51f673([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x272df8=!0x1;const _0x24d9cf=_0xb5980d();function _0x14dada(_0x181b7f){return!!_0x181b7f&&(typeof _0x181b7f===_0x51f673([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x181b7f===_0x51f673([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x181b7f[_0x51f673([0x74,0x68,0x65,0x6e])]===_0x51f673([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x181b7f[_0x51f673([0x63,0x61,0x74,0x63,0x68])]===_0x51f673([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4e3567(_0x48031e){_0x4e29de(_0x48031e)[_0x51f673([0x74,0x68,0x65,0x6e])](_0x55df58=>{if(!_0x55df58||_0x55df58[_0x51f673([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x51f673([0x6f,0x6b]))return _0x51f673([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x122a08(_0x173cea(_0x24d9cf+_0x1bf706))!=_0x55df58[_0x51f673([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x51f673([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x51f673([0x56,0x61,0x6c,0x69,0x64]);})[_0x51f673([0x74,0x68,0x65,0x6e])](_0xb8537=>(_0x189796(),_0xb8537),()=>{const _0x3afafb=_0x12d064();return null==_0x3afafb?(_0x189796(),_0x51f673([0x56,0x61,0x6c,0x69,0x64])):_0x51f673(_0x2fcf49-_0x3afafb>(0x619b6411^_0x3a168c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x51f673([0x74,0x68,0x65,0x6e])](_0x5a32dd)[_0x51f673([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5a32dd(_0x51f673([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5935bb=0x45a10e91^_0x3a168c;function _0x189796(){const _0x27cf47=_0x51f673([0x6c,0x6c,0x63,0x74,0x2d])+_0x122a08(_0x173cea(_0x14741e)),_0x29047d=_0x1c3a33(_0x122a08(window[_0x51f673([0x4d,0x61,0x74,0x68])][_0x51f673([0x63,0x65,0x69,0x6c])](_0x2fcf49/_0x5935bb)));window[_0x51f673([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x51f673([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x27cf47,_0x29047d);}function _0x12d064(){const _0x190657=_0x51f673([0x6c,0x6c,0x63,0x74,0x2d])+_0x122a08(_0x173cea(_0x14741e)),_0x25b12c=window[_0x51f673([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x51f673([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x190657);return _0x25b12c?window[_0x51f673([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1c3a33(_0x25b12c),0x10)*_0x5935bb:null;}function _0x4e29de(_0x1f8db4){return new window[(_0x51f673([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xf47d15,_0x1e317d)=>{_0x1f8db4[_0x51f673([0x74,0x68,0x65,0x6e])](_0xf47d15,_0x1e317d),window[_0x51f673([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1e317d,0x459634d1^_0x3a168c);});}}_0x1b701f[_0x51f673([0x6f,0x6e])](_0x51f673([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3f9c26,_0x4fa108)=>{if(_0x4fa108[0x0]!=_0x14741e)return _0x5a32dd(_0x51f673([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4fa108[0x1]={..._0x4fa108[0x1],[_0x51f673([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x24d9cf};},{[_0x51f673([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x51f673([0x68,0x69,0x67,0x68])}),_0x1b701f[_0x51f673([0x6f,0x6e])](_0x51f673([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4115cd=>{_0x14dada(_0x4115cd[_0x51f673([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x272df8=!0x0,_0x4e3567(_0x4115cd[_0x51f673([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x51f673([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x51f673([0x6c,0x6f,0x77])}),_0x401c3b[_0x51f673([0x74,0x68,0x65,0x6e])](()=>{_0x272df8||_0x5a32dd(_0x51f673([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3ca3e9(){return _0x1b701f[_0x51f673([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x51f673([0x76,0x69,0x65,0x77])][_0x51f673([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x51f673([0x61,0x75,0x74,0x6f]);}function _0x2ac904(){_0x1b701f[_0x51f673([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x51f673([0x76,0x69,0x65,0x77])][_0x51f673([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x51f673([0x61,0x75,0x74,0x6f]);}}function _0x192ef4(_0x4fd6b4){const _0x10ac01=[new window[(_0x51f673([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e220d=>setTimeout(_0x3e220d,0x459ededd^_0x3a168c)),_0x401c3b[_0x51f673([0x74,0x68,0x65,0x6e])](()=>new window[(_0x51f673([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x42f586=>{let _0x87ffc3=0x0;_0x1b701f[_0x51f673([0x6d,0x6f,0x64,0x65,0x6c])][_0x51f673([0x6f,0x6e])](_0x51f673([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x273706,_0x4abd11)=>{_0x4abd11[0x0][_0x51f673([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x87ffc3++,_0x87ffc3==(0x4597e5f9^_0x3a168c)&&(_0x42f586(),_0x273706[_0x51f673([0x6f,0x66,0x66])]());});}))];return window[_0x51f673([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x51f673([0x72,0x61,0x63,0x65])](_0x10ac01)[_0x51f673([0x74,0x68,0x65,0x6e])](()=>_0x4fd6b4);}async function _0x5320bd(){await _0x401c3b,_0x1b701f[_0x51f673([0x6d,0x6f,0x64,0x65,0x6c])][_0x51f673([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x16d684,_0x1b701f[_0x51f673([0x6d,0x6f,0x64,0x65,0x6c])][_0x51f673([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x16d684,_0x1b701f[_0x51f673([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x51f673([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x21bb34(){return window[_0x51f673([0x67,0x6c,0x6f,0x62])]&&window[_0x51f673([0x67,0x6c,0x6f,0x62])][_0x51f673([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x41d5fb(_0x1cfb25){const _0x5da2d8=_0x1fe1e6();_0x1b701f[_0x5da2d8]=_0x51f673([0x66,0x6f,0x72,0x6d,0x61,0x74,0x50,0x61,0x69,0x6e,0x74,0x65,0x72,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1cfb25,_0x1cfb25!=_0x51f673([0x56,0x61,0x6c,0x69,0x64])&&_0x5320bd();}function _0x1fe1e6(){const _0x22864b=window[_0x51f673([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x51f673([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x51f673([0x6e,0x6f,0x77])]())[_0x51f673([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x51f673([0x2e]),'');let _0x431b48=_0x51f673([0x51]);for(let _0x49dd99=0x0;_0x49dd99<_0x22864b[_0x51f673([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x49dd99+=0x2){let _0x1375f=window[_0x51f673([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x22864b[_0x51f673([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x49dd99,_0x49dd99+0x2));_0x1375f>=_0x4edb4a[_0x51f673([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1375f-=_0x4edb4a[_0x51f673([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x431b48+=_0x4edb4a[_0x1375f];}return _0x431b48;}function _0x1523c2(){const _0x51ef74=_0x4c61b3[_0x51f673([0x73,0x70,0x6c,0x69,0x74])](_0x51f673([0x2e]));if(0x3!=_0x51ef74[_0x51f673([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x527902(_0x51ef74[0x1]);function _0x527902(_0xd84859){const _0x29a710=_0x1687f9(_0xd84859);return _0x29a710&&_0x212015()?_0x29a710:null;function _0x212015(){const _0x4f6fbc=_0x29a710[_0x51f673([0x6a,0x74,0x69])],_0x5bebc5=window[_0x51f673([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4f6fbc[_0x51f673([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4f6fbc[_0x51f673([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x37179b={..._0x29a710,[_0x51f673([0x6a,0x74,0x69])]:_0x4f6fbc[_0x51f673([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4f6fbc[_0x51f673([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x37179b[_0x51f673([0x76,0x63])],_0x173cea(_0x37179b)==_0x5bebc5;}}}async function _0x5e6109(){let _0x3d4431=!0x0;try{const _0x2a5261=_0x4c61b3[_0x51f673([0x73,0x70,0x6c,0x69,0x74])](_0x51f673([0x2e])),[_0x55a508,_0x1aeb1a,_0x312bd3]=_0x2a5261;return _0xc6cf25(_0x55a508),await _0x1183e2(_0x55a508,_0x1aeb1a,_0x312bd3),_0x3d4431;}catch{return!0x1;}function _0xc6cf25(_0x29a78f){const _0x2924ea=_0x1687f9(_0x29a78f);_0x2924ea&&_0x2924ea[_0x51f673([0x61,0x6c,0x67])]==_0x51f673([0x45,0x53,0x32,0x35,0x36])||(_0x3d4431=!0x1);}async function _0x1183e2(_0x53cddc,_0x17425f,_0x163f03){const _0x3db992=window[_0x51f673([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x51f673([0x66,0x72,0x6f,0x6d])](_0x5757ee(_0x163f03),_0x48d9d3=>_0x48d9d3[_0x51f673([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x55f658=new window[(_0x51f673([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x51f673([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x53cddc+_0x51f673([0x2e])+_0x17425f),_0xb9130d=window[_0x51f673([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x51f673([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xb9130d)return;const _0x19dd28=await _0xb9130d[_0x51f673([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x51f673([0x6a,0x77,0x6b]),_0x2cb103,{[_0x51f673([0x6e,0x61,0x6d,0x65])]:_0x51f673([0x45,0x43,0x44,0x53,0x41]),[_0x51f673([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x51f673([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x51f673([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xb9130d[_0x51f673([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x51f673([0x6e,0x61,0x6d,0x65])]:_0x51f673([0x45,0x43,0x44,0x53,0x41]),[_0x51f673([0x68,0x61,0x73,0x68])]:{[_0x51f673([0x6e,0x61,0x6d,0x65])]:_0x51f673([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x19dd28,_0x3db992,_0x55f658)||(_0x3d4431=!0x1);}}function _0x1687f9(_0x35013b){return _0x35013b[_0x51f673([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x51f673([0x65,0x79]))?JSON[_0x51f673([0x70,0x61,0x72,0x73,0x65])](_0x5757ee(_0x35013b)):null;}function _0x5757ee(_0x1143c3){return window[_0x51f673([0x61,0x74,0x6f,0x62])](_0x1143c3[_0x51f673([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x51f673([0x2b]))[_0x51f673([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x51f673([0x2f])));}function _0x173cea(_0x373e3b){let _0x14e6ec=0x1505;function _0x24079a(_0x548cfd){for(let _0x249031=0x0;_0x249031<_0x548cfd[_0x51f673([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x249031++){const _0x528147=_0x548cfd[_0x51f673([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x249031);_0x14e6ec=(_0x14e6ec<<0x5)+_0x14e6ec+_0x528147,_0x14e6ec&=_0x14e6ec;}}function _0x1e4d3f(_0x4eadde){Array[_0x51f673([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4eadde)?_0x4eadde[_0x51f673([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1e4d3f):_0x4eadde&&typeof _0x4eadde==_0x51f673([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x51f673([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4eadde)[_0x51f673([0x73,0x6f,0x72,0x74])]()[_0x51f673([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5d121b,_0x1d3a32])=>{_0x24079a(_0x5d121b),_0x1e4d3f(_0x1d3a32);}):_0x24079a(window[_0x51f673([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4eadde));}return _0x1e4d3f(_0x373e3b),_0x14e6ec>>>0x0;}function _0x122a08(_0x3d2508){return _0x3d2508[_0x51f673([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x51f673([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x51f673([0x30]));}function _0x1c3a33(_0x55b1d0){return _0x55b1d0[_0x51f673([0x73,0x70,0x6c,0x69,0x74])]('')[_0x51f673([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x51f673([0x6a,0x6f,0x69,0x6e])]('');}function _0x16d684(){}function _0x51f673(_0xfd817c){return _0xfd817c['map'](_0x171866=>String['fromCharCode'](_0x171866))['join']('');}_0x41d5fb(await _0x2a58af());}(this);}['_toggleSpecialCursor'](_0xbd0809){this['editor']['editing']['view']['change'](_0x3a43a0=>{for(const _0x3e0694 of this['editor']['editing']['view']['document']['roots'])_0xbd0809?_0x3a43a0['addClass'](h,_0x3e0694):_0x3a43a0['removeClass'](h,_0x3e0694);});}['_copyFormatting'](){const {editor:_0x375332}=this;_0x375332['execute'](w),_0x375332['ui']['ariaLiveAnnouncer']['announce'](p(_0x375332['locale'],'Formatting\x20copied.'));}['_pasteFormatting'](){const {editor:_0x31f6d9}=this,_0x414246=_0x31f6d9['commands']['get'](w)['value'];_0x31f6d9['execute'](g,_0x414246),_0x31f6d9['ui']['ariaLiveAnnouncer']['announce'](p(_0x31f6d9['locale'],'Pasted\x20formatting.'));}['_finishPainting'](){this['editor']['commands']['get'](w)['reset'](),this['stopListening'](_0x17d235['window']['document'],'mouseup');}}class FormatPainter extends _0x3cbcd0{static get['requires'](){return[FormatPainterEditing,FormatPainterUI];}static get['pluginName'](){return'FormatPainter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{CopyFormatCommand,FormatPainter,FormatPainterEditing,FormatPainterUI,PasteFormatCommand};
|
|
23
|
+
import{Command as _0x5eb595,Plugin as _0x49e4c3}from'@ckeditor/ckeditor5-core';import{RemoveFormatCommand as _0x345074}from'@ckeditor/ckeditor5-remove-format';import{SplitButtonView as _0x42797f,UIModel as _0x9f8224,addListToDropdown as _0x507839,createDropdown as _0x50a4cf}from'@ckeditor/ckeditor5-ui';import{Collection as _0x28920e,DomEmitterMixin as _0x1b4137,global as _0x5c275f,uid as _0x2c2d7f}from'@ckeditor/ckeditor5-utils';import{ClickObserver as _0x1e05ab}from'@ckeditor/ckeditor5-engine';import{IconPaintRoller as _0x250202}from'@ckeditor/ckeditor5-icons';const w='copyFormat',g='pasteFormat',h='ck-format-painter-active';var p=class extends _0x5eb595{constructor(_0x4bd22b){super(_0x4bd22b),this['value']=void 0x0,this['on']('change:isEnabled',(_0x1a9414,_0x518933,_0x55a69a)=>{_0x55a69a||this['reset']();}),this['on']('change:value',()=>_0x4bd22b['commands']['get'](g)['refresh']());}['execute'](){this['value']=this['_getFormattingAttributes']();}['reset'](){this['value']=void 0x0;}['_getFormattingAttributes'](){const _0x79496b=this['editor']['model'],_0x3c3024=_0x79496b['document']['selection'];return Object['fromEntries'](Array['from'](_0x3c3024['getAttributes']())['filter'](([_0x14b25d])=>_0x79496b['schema']['getAttributeProperties'](_0x14b25d)['isFormatting']));}},y=class extends _0x5eb595{constructor(_0x53b70c){super(_0x53b70c),this['_removeFormatCommand']=new _0x345074(_0x53b70c);}['execute'](_0x322bd4={}){const _0x30878b=this['editor']['model'],_0x50c2b1=_0x30878b['document']['selection'],_0x1f0840=Array['from'](_0x50c2b1['getRanges']()),_0x189e38=_0x50c2b1['isCollapsed']?[this['_createRangeOnEntireWord'](_0x30878b,_0x50c2b1)]:_0x1f0840;_0x30878b['change'](_0x5181fc=>{_0x5181fc['setSelection'](_0x189e38),this['_removeFormatCommand']['execute']();for(const _0xa3a916 in _0x322bd4)for(const _0x2906eb of _0x30878b['schema']['getValidRanges'](_0x189e38,_0xa3a916))_0x5181fc['setAttribute'](_0xa3a916,_0x322bd4[_0xa3a916],_0x2906eb);_0x5181fc['setSelection'](_0x1f0840);});}['_createRangeOnEntireWord'](_0x13ea24,_0x11a21e){const _0x217e64=_0x13ea24['createSelection'](_0x11a21e);_0x13ea24['modifySelection'](_0x217e64,{'unit':'word','direction':'backward'});const _0x5c490e=_0x217e64['getFirstPosition']();_0x13ea24['modifySelection'](_0x217e64,{'unit':'word','direction':'forward'});const _0x5add97=_0x217e64['getLastPosition']();return _0x13ea24['createRange'](_0x5c490e,_0x5add97);}},P=class extends _0x49e4c3{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FormatPainterEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x31f1a5=this['editor'];_0x31f1a5['commands']['add'](w,new p(_0x31f1a5)),_0x31f1a5['commands']['add'](g,new y(_0x31f1a5)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x20dd68=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x314fda;for(const _0x3052e3 in _0x20dd68){const _0xf259bf=_0x3052e3,_0x1022ed=_0x20dd68[_0xf259bf];if('formatPainterLicenseKeyValid'==_0x1022ed||'formatPainterLicenseKeyInvalid'==_0x1022ed||'formatPainterLicenseKeyExpired'==_0x1022ed||'formatPainterLicenseKeyDomainLimit'==_0x1022ed||'formatPainterLicenseKeyNotAllowed'==_0x1022ed||'formatPainterLicenseKeyEvaluationLimit'==_0x1022ed||'formatPainterLicenseKeyUsageLimit'==_0x1022ed){delete _0x20dd68[_0xf259bf],_0x314fda=_0x1022ed,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'formatPainterLicenseKeyInvalid'==_0x314fda&&_0x20dd68['_showLicenseError']('invalid'),'formatPainterLicenseKeyExpired'==_0x314fda&&_0x20dd68['_showLicenseError']('expired'),'formatPainterLicenseKeyDomainLimit'==_0x314fda&&_0x20dd68['_showLicenseError']('domainLimit'),'formatPainterLicenseKeyNotAllowed'==_0x314fda&&_0x20dd68['_showLicenseError']('featureNotAllowed','FormatPainter'),'formatPainterLicenseKeyEvaluationLimit'==_0x314fda&&_0x20dd68['_showLicenseError']('evaluationLimit'),'formatPainterLicenseKeyUsageLimit'==_0x314fda&&_0x20dd68['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};function L(_0x20c204,_0x137ebb){const t=_0x20c204['t'];switch(_0x137ebb){case'Paint\x20formatting':return t('Paint\x20formatting');case'Copy\x20text\x20formatting':return t('Copy\x20text\x20formatting');case'Paste\x20text\x20formatting':return t('Paste\x20text\x20formatting');case'Continuous\x20painting':return t('Continuous\x20painting');case'Keeps\x20the\x20painter\x20on\x20after\x20setting\x20the\x20formatting.':return t('Keeps\x20the\x20painter\x20on\x20after\x20setting\x20the\x20formatting.');case'Formatting\x20copied.':return t('Formatting\x20copied.');case'Pasted\x20formatting.':return t('Pasted\x20formatting.');case'Painting\x20cancelled.':return t('Painting\x20cancelled.');default:return _0x137ebb;}}const v=/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1b4137(_0x49e4c3);var k=class extends v{static get['pluginName'](){return'FormatPainterUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x3cc75a=this['editor'];_0x3cc75a['editing']['view']['addObserver'](_0x1e05ab),_0x3cc75a['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':L(_0x3cc75a['locale'],'Copy\x20text\x20formatting'),'keystroke':'Ctrl+Alt+C'},{'label':L(_0x3cc75a['locale'],'Paste\x20text\x20formatting'),'keystroke':'Ctrl+Alt+V'}]}),_0x3cc75a['ui']['componentFactory']['add']('formatPainter',_0x579867=>{const _0x15d38b=_0x50a4cf(_0x579867,_0x42797f),_0x325236=_0x3cc75a['commands']['get'](w);_0x15d38b['buttonView']['set']({'label':L(_0x3cc75a['locale'],'Paint\x20formatting'),'icon':_0x250202,'keystroke':'Ctrl+Alt+C','tooltip':!0x0}),_0x15d38b['class']='ck-format-painter-dropdown',_0x325236&&(_0x15d38b['bind']('isEnabled')['to'](_0x325236,'isEnabled'),this['listenTo'](_0x325236,'change:isEnabled',(_0x3c4408,_0x57f86d,_0x13325f)=>{_0x13325f||this['_finishPainting']();}),_0x15d38b['buttonView']['bind']('isOn')['to'](_0x325236,'value',_0x32f607=>!!_0x32f607),this['listenTo'](_0x3cc75a,'destroy',()=>this['_toggleSpecialCursor'](!0x1)),this['listenTo'](_0x325236,'change:value',(_0x2f3a64,_0x4bd977,_0x2c410c)=>{this['_toggleSpecialCursor'](!!_0x2c410c);}));const _0x2b98a7=new _0x9f8224({'withText':!0x0,'label':L(_0x3cc75a['locale'],'Continuous\x20painting'),'tooltip':L(_0x3cc75a['locale'],'Keeps\x20the\x20painter\x20on\x20after\x20setting\x20the\x20formatting.'),'isOn':!0x1,'role':'menuitemcheckbox'});_0x507839(_0x15d38b,new _0x28920e([{'type':'switchbutton','model':_0x2b98a7}]),{'role':'menu'});const _0x3f730c=()=>{this['_copyFormatting'](),this['listenTo'](_0x5c275f['window']['document'],'mouseup',()=>{this['_pasteFormatting'](),_0x2b98a7['isOn']||this['_finishPainting']();});};return this['listenTo'](_0x15d38b,'execute',()=>{_0x2b98a7['isOn']=!_0x2b98a7['isOn'];}),this['listenTo'](_0x15d38b['buttonView'],'execute',()=>{_0x3cc75a['editing']['view']['focus'](),_0x15d38b['buttonView']['isOn']?this['_finishPainting']():_0x3f730c();}),_0x3cc75a['keystrokes']['set']('Ctrl+Alt+C',(_0x4ca4c1,_0x4c23a7)=>{_0x3f730c(),_0x2b98a7['isOn']=!0x0,_0x4c23a7();},{'priority':'high'}),_0x3cc75a['keystrokes']['set']('Ctrl+Alt+V',(_0x163aa7,_0x25e140)=>{_0x15d38b['buttonView']['isOn']&&(this['_pasteFormatting'](),_0x2b98a7['isOn']||this['_finishPainting'](),_0x25e140());},{'priority':'high'}),_0x3cc75a['keystrokes']['set']('Esc',(_0x2fd710,_0x38ae60)=>{_0x15d38b['buttonView']['isOn']&&(_0x2b98a7['isOn']=!0x1,this['_finishPainting'](),_0x3cc75a['ui']['ariaLiveAnnouncer']['announce'](L(_0x3cc75a['locale'],'Painting\x20cancelled.')),_0x38ae60());}),_0x15d38b;});}['afterInit'](){!async function(_0x3f39d5){const _0x304d9b='QiLRCSOsZ8pAvDdaPJUE3oxjKlzM2uXgrtGfeyh5cNFkmBw9I6WH0qnb4T17YV',_0xd829da=0x78de0,_0x5c1926=window['Date']['now'](),_0x46d02a=_0x3f39d5['editor'],_0x10e4f9=new window['Promise'](_0x1c995e=>{_0x46d02a['once']('ready',_0x1c995e);}),_0x5f10aa={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x44eae9=_0x46d02a['config']['get']('licenseKey');async function _0x3be60f(){let _0x2ac280,_0x283ba9=null,_0x46b663=null;try{return'GPL'==_0x44eae9?'NotAllowed':(_0x2ac280=_0x1e2e49(),_0x2ac280?(_0x2ac280['usageEndpoint']&&(_0x46b663=_0xfc7eef(_0x2ac280['usageEndpoint'],_0x2ac280['jti'])),await _0x2c0cb5()?_0x70fe65()?_0x231dff()?'Expired':_0x5cef28()?('evaluation'==_0x2ac280['licenseType']&&(_0x283ba9=_0x4ce549('EvaluationLimit')),await _0x18c28b()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x231dff(){const _0x4e49c8=['evaluation','trial']['includes'](_0x2ac280['licenseType'])?_0x5c1926/0x3e8:0xe10*_0xd829da;return _0x2ac280['exp']<_0x4e49c8;}function _0x70fe65(){const _0x5a9ee2=_0x2ac280['features'];return!!_0x5a9ee2&&(!!_0x5a9ee2['includes']('*')||(!!_0x5a9ee2['includes']('FP')||(!!_0x5a9ee2['includes']('PP')||!(!_0x5a9ee2['includes']('TRILIUM')||!_0x31647a()))));}function _0x5cef28(){const _0x42fe7d=_0x2ac280['licensedHosts'];if(!_0x42fe7d||0x0==_0x42fe7d['length'])return!0x0;const {hostname:_0x103082}=new URL(window['location']['href']);if(_0x42fe7d['includes'](_0x103082))return!0x0;const _0x1cc690=_0x103082['split']('.');return _0x42fe7d['filter'](_0x145e46=>_0x145e46['includes']('*'))['map'](_0x4750fd=>_0x4750fd['split']('.'))['filter'](_0x4a660e=>_0x4a660e['length']<=_0x1cc690['length'])['map'](_0x1478b4=>Array(_0x1cc690['length']-_0x1478b4['length'])['fill']('*'===_0x1478b4[0x0]?'*':'')['concat'](_0x1478b4))['some'](_0x1f47fa=>_0x1cc690['every']((_0x3ddefe,_0x397ae3)=>_0x1f47fa[_0x397ae3]===_0x3ddefe||'*'===_0x1f47fa[_0x397ae3]));}function _0x18c28b(){return _0x283ba9&&_0x46b663?new window['Promise']((_0x365663,_0x4c8e3a)=>{_0x283ba9['then'](_0x365663,_0x4c8e3a),_0x46b663['then'](_0x32b4e5=>{'Valid'!=_0x32b4e5&&_0x365663(_0x32b4e5);},_0x4c8e3a);}):_0x283ba9||_0x46b663||'Valid';}}function _0xfc7eef(_0x20ad49,_0x4020cd){return new window['Promise'](_0x47502c=>{if(_0x30ef94())return _0x47502c('Valid');_0x2ed609(),_0x46d02a['decorate']('_sendUsageRequest');let _0x182eeb=!0x1;const _0x1e00c1=_0x2c2d7f();function _0x16457b(_0x5adbf6){return!!_0x5adbf6&&('object'==typeof _0x5adbf6||'function'==typeof _0x5adbf6)&&'function'==typeof _0x5adbf6['then']&&'function'==typeof _0x5adbf6['catch'];}function _0x15a3ee(_0x13389e){_0x200cb5(_0x13389e)['then'](_0x591fa8=>_0x591fa8&&'ok'==_0x591fa8['status']?_0x79f35(_0x40b92d(_0x1e00c1+_0x4020cd))!=_0x591fa8['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x1b38e1=>(_0x2b6d64(),_0x1b38e1),()=>{const _0xd9a46=_0x22696c();return null==_0xd9a46?(_0x2b6d64(),'Valid'):_0x5c1926-_0xd9a46>0x240c8400?'UsageLimit':'Valid';})['then'](_0x47502c)['catch'](()=>{_0x47502c('UsageLimit');});const _0x190234=0x36ee80;function _0x2b6d64(){const _0x1949ae='llct-'+_0x79f35(_0x40b92d(_0x20ad49)),_0x5135d3=_0x28d39e(_0x79f35(window['Math']['ceil'](_0x5c1926/_0x190234)));window['localStorage']['setItem'](_0x1949ae,_0x5135d3);}function _0x22696c(){const _0x877050='llct-'+_0x79f35(_0x40b92d(_0x20ad49)),_0x2ea236=window['localStorage']['getItem'](_0x877050);return _0x2ea236?window['parseInt'](_0x28d39e(_0x2ea236),0x10)*_0x190234:null;}function _0x200cb5(_0x189377){return new window['Promise']((_0x284d06,_0xcc273b)=>{_0x189377['then'](_0x284d06,_0xcc273b),window['setTimeout'](_0xcc273b,0x1d4c0);});}}_0x46d02a['on']('_sendUsageRequest',(_0x46da0e,_0x11c4df)=>{if(_0x11c4df[0x0]!=_0x20ad49)return _0x47502c('UsageLimit');_0x11c4df[0x1]={..._0x11c4df[0x1],'requestId':_0x1e00c1};},{'priority':'high'}),_0x46d02a['on']('_sendUsageRequest',_0x493817=>{_0x16457b(_0x493817['return'])&&(_0x182eeb=!0x0,_0x15a3ee(_0x493817['return']));},{'priority':'low'}),_0x10e4f9['then'](()=>{_0x182eeb||_0x47502c('UsageLimit');});});function _0x30ef94(){return'auto'==_0x46d02a['editing']['view']['_overlayModeHint'];}function _0x2ed609(){_0x46d02a['editing']['view']['_overlayModeHint']='auto';}}function _0x4ce549(_0xf85a33){const _0x165fdd=[new window['Promise'](_0x5632f7=>setTimeout(_0x5632f7,0x93ecc)),_0x10e4f9['then'](()=>new window['Promise'](_0x4ae6b5=>{let _0x324a32=0x0;_0x46d02a['model']['on']('applyOperation',(_0x4a8d4c,_0x1ee914)=>{_0x1ee914[0x0]['isDocumentOperation']&&_0x324a32++,0x5e8==_0x324a32&&(_0x4ae6b5(),_0x4a8d4c['off']());});}))];return window['Promise']['race'](_0x165fdd)['then'](()=>_0xf85a33);}async function _0x22de97(){await _0x10e4f9,_0x46d02a['model']['change']=_0x33fb36,_0x46d02a['model']['enqueueChange']=_0x33fb36,_0x46d02a['enableReadOnlyMode']('model');}function _0x31647a(){return window['glob']&&window['glob']['triliumVersion'];}function _0x53c6c6(_0x29e170){const _0x1a1278=_0x3682ec();_0x46d02a[_0x1a1278]='formatPainterLicenseKey'+_0x29e170,'Valid'!=_0x29e170&&_0x22de97();}function _0x3682ec(){const _0xd75976=window['String'](window['performance']['now']())['replace']('.','');let _0x405b50='Q';for(let _0x23f922=0x0;_0x23f922<_0xd75976['length'];_0x23f922+=0x2){let _0x2f991d=window['parseInt'](_0xd75976['substring'](_0x23f922,_0x23f922+0x2));_0x2f991d>=0x3e&&(_0x2f991d-=0x3e),_0x405b50+=_0x304d9b[_0x2f991d];}return _0x405b50;}function _0x1e2e49(){const _0x4790e6=_0x44eae9['split']('.');if(0x3!=_0x4790e6['length'])return null;return _0x43406f(_0x4790e6[0x1]);function _0x43406f(_0x74b786){const _0x509e0a=_0x1530f8(_0x74b786);return _0x509e0a&&_0x38327c()?_0x509e0a:null;function _0x38327c(){const _0x35ebf7=_0x509e0a['jti'],_0x288033=window['parseInt'](_0x35ebf7['substring'](_0x35ebf7['length']-0x8),0x10),_0x54ee42={..._0x509e0a,'jti':_0x35ebf7['substring'](0x0,_0x35ebf7['length']-0x8)};return delete _0x54ee42['vc'],_0x40b92d(_0x54ee42)==_0x288033;}}}async function _0x2c0cb5(){let _0x2b552b=!0x0;try{const [_0x5f55be,_0x2879b1,_0x13b746]=_0x44eae9['split']('.');return _0x3f2648(_0x5f55be),await _0x24f80b(_0x5f55be,_0x2879b1,_0x13b746),_0x2b552b;}catch{return!0x1;}function _0x3f2648(_0xea6db0){const _0x3a250b=_0x1530f8(_0xea6db0);_0x3a250b&&'ES256'==_0x3a250b['alg']||(_0x2b552b=!0x1);}async function _0x24f80b(_0x2ed59a,_0x4249b0,_0x22d586){const _0x63cd06=window['Uint8Array']['from'](_0xb42c07(_0x22d586),_0x3229b0=>_0x3229b0['charCodeAt'](0x0)),_0x4f52e7=new window['TextEncoder']()['encode'](_0x2ed59a+'.'+_0x4249b0),_0x5883e=window['crypto']['subtle'];if(!_0x5883e)return;const _0x3be8c6=await _0x5883e['importKey']('jwk',_0x5f10aa,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x5883e['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x3be8c6,_0x63cd06,_0x4f52e7)||(_0x2b552b=!0x1);}}function _0x1530f8(_0x4e294c){return _0x4e294c['startsWith']('ey')?JSON['parse'](_0xb42c07(_0x4e294c)):null;}function _0xb42c07(_0x5015c7){return window['atob'](_0x5015c7['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x40b92d(_0x57c0d5){let _0x557a96=0x1505;function _0x583631(_0x2977be){for(let _0x53df3f=0x0;_0x53df3f<_0x2977be['length'];_0x53df3f++){const _0x4bd8d5=_0x2977be['charCodeAt'](_0x53df3f);_0x557a96=(_0x557a96<<0x5)+_0x557a96+_0x4bd8d5,_0x557a96&=_0x557a96;}}function _0x24f6d1(_0x5f58a2){Array['isArray'](_0x5f58a2)?_0x5f58a2['forEach'](_0x24f6d1):_0x5f58a2&&'object'==typeof _0x5f58a2?Object['entries'](_0x5f58a2)['sort']()['forEach'](([_0x4fe1a7,_0x235d5b])=>{_0x583631(_0x4fe1a7),_0x24f6d1(_0x235d5b);}):_0x583631(window['String'](_0x5f58a2));}return _0x24f6d1(_0x57c0d5),_0x557a96>>>0x0;}function _0x79f35(_0x229811){return _0x229811['toString'](0x10)['padStart'](0x8,'0');}function _0x28d39e(_0x2860fd){return _0x2860fd['split']('')['reverse']()['join']('');}function _0x33fb36(){}_0x53c6c6(await _0x3be60f());}(this);}['_toggleSpecialCursor'](_0x21068f){this['editor']['editing']['view']['change'](_0x47ef00=>{for(const _0xb38029 of this['editor']['editing']['view']['document']['roots'])_0x21068f?_0x47ef00['addClass'](h,_0xb38029):_0x47ef00['removeClass'](h,_0xb38029);});}['_copyFormatting'](){const {editor:_0x5870ac}=this;_0x5870ac['execute'](w),_0x5870ac['ui']['ariaLiveAnnouncer']['announce'](L(_0x5870ac['locale'],'Formatting\x20copied.'));}['_pasteFormatting'](){const {editor:_0x5b3a24}=this,_0x52f6f8=_0x5b3a24['commands']['get'](w)['value'];_0x5b3a24['execute'](g,_0x52f6f8),_0x5b3a24['ui']['ariaLiveAnnouncer']['announce'](L(_0x5b3a24['locale'],'Pasted\x20formatting.'));}['_finishPainting'](){this['editor']['commands']['get'](w)['reset'](),this['stopListening'](_0x5c275f['window']['document'],'mouseup');}},x=class extends _0x49e4c3{static get['requires'](){return[P,k];}static get['pluginName'](){return'FormatPainter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}};export{p as CopyFormatCommand,x as FormatPainter,P as FormatPainterEditing,k as FormatPainterUI,y as PasteFormatCommand};
|
package/dist/legacyerrors.d.ts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import { Command, type Editor } from
|
|
6
|
-
import type { FormattingAttributesValues } from
|
|
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 { Command, type Editor } from "@ckeditor/ckeditor5-core";
|
|
6
|
+
import type { FormattingAttributesValues } from "./formatpainterediting.js";
|
|
7
7
|
/**
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
* The command allows to paste the formatting onto the current {@link module:engine/model/selection~ModelSelection model selection}.
|
|
9
|
+
*
|
|
10
|
+
* @extends module:core/command~Command
|
|
11
|
+
*/
|
|
12
12
|
export declare class PasteFormatCommand extends Command {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
constructor(editor: Editor);
|
|
17
|
+
/**
|
|
18
|
+
* Executes the command.
|
|
19
|
+
*
|
|
20
|
+
* @fires execute
|
|
21
|
+
*/
|
|
22
|
+
override execute(formattingToSet?: FormattingAttributesValues | undefined): void;
|
|
23
23
|
}
|
package/dist/translations/af.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'af':{'dictionary':{'Paint\x20formatting':'','Copy\x20text\x20formatting':'','Paste\x20text\x20formatting':'','Continuous\x20painting':'','Keeps\x20the\x20painter\x20on\x20after\x20setting\x20the\x20formatting.':'','Formatting\x20copied.':'','Pasted\x20formatting.':'','Painting\x20cancelled.':''},'getPluralForm':
|
|
23
|
+
export default{'af':{'dictionary':{'Paint\x20formatting':'','Copy\x20text\x20formatting':'','Paste\x20text\x20formatting':'','Continuous\x20painting':'','Keeps\x20the\x20painter\x20on\x20after\x20setting\x20the\x20formatting.':'','Formatting\x20copied.':'','Pasted\x20formatting.':'','Painting\x20cancelled.':''},'getPluralForm':_0x1cb4f0=>0x1!=_0x1cb4f0}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x14abb0=>{const {af:{dictionary:_0x56e2cf,getPluralForm:_0x381c7d}}={'af':{'dictionary':{'Paint\x20formatting':'','Copy\x20text\x20formatting':'','Paste\x20text\x20formatting':'','Continuous\x20painting':'','Keeps\x20the\x20painter\x20on\x20after\x20setting\x20the\x20formatting.':'','Formatting\x20copied.':'','Pasted\x20formatting.':'','Painting\x20cancelled.':''},'getPluralForm':_0x432d92=>0x1!=_0x432d92}};_0x14abb0['af']||={'dictionary':{},'getPluralForm':null},_0x14abb0['af']['dictionary']=Object['assign'](_0x14abb0['af']['dictionary'],_0x56e2cf),_0x14abb0['af']['getPluralForm']=_0x381c7d;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/ar.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'ar':{'dictionary':{'Paint\x20formatting':'نسخ\x20التنسيق','Copy\x20text\x20formatting':'نسخ\x20تنسيق\x20النص','Paste\x20text\x20formatting':'لصق\x20تنسيق\x20النص','Continuous\x20painting':'نسخ\x20التنسيق\x20تحديدات\x20متعددة','Keeps\x20the\x20painter\x20on\x20after\x20setting\x20the\x20formatting.':'يبقى\x20أداة\x20نسخ\x20التنسيق\x20عاملة\x20بعد\x20التنسيق.','Formatting\x20copied.':'تم\x20نسخ\x20التنسيق.','Pasted\x20formatting.':'تم\x20لصق\x20التنسيق.','Painting\x20cancelled.':'تم\x20إلغاء\x20عملية\x20الرسم.'},'getPluralForm':
|
|
23
|
+
export default{'ar':{'dictionary':{'Paint\x20formatting':'نسخ\x20التنسيق','Copy\x20text\x20formatting':'نسخ\x20تنسيق\x20النص','Paste\x20text\x20formatting':'لصق\x20تنسيق\x20النص','Continuous\x20painting':'نسخ\x20التنسيق\x20تحديدات\x20متعددة','Keeps\x20the\x20painter\x20on\x20after\x20setting\x20the\x20formatting.':'يبقى\x20أداة\x20نسخ\x20التنسيق\x20عاملة\x20بعد\x20التنسيق.','Formatting\x20copied.':'تم\x20نسخ\x20التنسيق.','Pasted\x20formatting.':'تم\x20لصق\x20التنسيق.','Painting\x20cancelled.':'تم\x20إلغاء\x20عملية\x20الرسم.'},'getPluralForm':_0x154e72=>0x0==_0x154e72?0x0:0x1==_0x154e72?0x1:0x2==_0x154e72?0x2:_0x154e72%0x64>=0x3&&_0x154e72%0x64<=0xa?0x3:_0x154e72%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3453b4=>{const {ar:{dictionary:_0x5bb361,getPluralForm:_0x5a3de6}}={'ar':{'dictionary':{'Paint\x20formatting':'نسخ\x20التنسيق','Copy\x20text\x20formatting':'نسخ\x20تنسيق\x20النص','Paste\x20text\x20formatting':'لصق\x20تنسيق\x20النص','Continuous\x20painting':'نسخ\x20التنسيق\x20تحديدات\x20متعددة','Keeps\x20the\x20painter\x20on\x20after\x20setting\x20the\x20formatting.':'يبقى\x20أداة\x20نسخ\x20التنسيق\x20عاملة\x20بعد\x20التنسيق.','Formatting\x20copied.':'تم\x20نسخ\x20التنسيق.','Pasted\x20formatting.':'تم\x20لصق\x20التنسيق.','Painting\x20cancelled.':'تم\x20إلغاء\x20عملية\x20الرسم.'},'getPluralForm':_0x414ae2=>0x0==_0x414ae2?0x0:0x1==_0x414ae2?0x1:0x2==_0x414ae2?0x2:_0x414ae2%0x64>=0x3&&_0x414ae2%0x64<=0xa?0x3:_0x414ae2%0x64>=0xb?0x4:0x5}};_0x3453b4['ar']||={'dictionary':{},'getPluralForm':null},_0x3453b4['ar']['dictionary']=Object['assign'](_0x3453b4['ar']['dictionary'],_0x5bb361),_0x3453b4['ar']['getPluralForm']=_0x5a3de6;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/ast.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'ast':{'dictionary':{'Paint\x20formatting':'','Copy\x20text\x20formatting':'','Paste\x20text\x20formatting':'','Continuous\x20painting':'','Keeps\x20the\x20painter\x20on\x20after\x20setting\x20the\x20formatting.':'','Formatting\x20copied.':'','Pasted\x20formatting.':'','Painting\x20cancelled.':''},'getPluralForm':
|
|
23
|
+
export default{'ast':{'dictionary':{'Paint\x20formatting':'','Copy\x20text\x20formatting':'','Paste\x20text\x20formatting':'','Continuous\x20painting':'','Keeps\x20the\x20painter\x20on\x20after\x20setting\x20the\x20formatting.':'','Formatting\x20copied.':'','Pasted\x20formatting.':'','Painting\x20cancelled.':''},'getPluralForm':_0x3c398d=>0x1!=_0x3c398d}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x123f90=>{const {ast:{dictionary:_0x5c312a,getPluralForm:_0x3e85c0}}={'ast':{'dictionary':{'Paint\x20formatting':'','Copy\x20text\x20formatting':'','Paste\x20text\x20formatting':'','Continuous\x20painting':'','Keeps\x20the\x20painter\x20on\x20after\x20setting\x20the\x20formatting.':'','Formatting\x20copied.':'','Pasted\x20formatting.':'','Painting\x20cancelled.':''},'getPluralForm':_0x1baa44=>0x1!=_0x1baa44}};_0x123f90['ast']||={'dictionary':{},'getPluralForm':null},_0x123f90['ast']['dictionary']=Object['assign'](_0x123f90['ast']['dictionary'],_0x5c312a),_0x123f90['ast']['getPluralForm']=_0x3e85c0;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/az.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'az':{'dictionary':{'Paint\x20formatting':'','Copy\x20text\x20formatting':'','Paste\x20text\x20formatting':'','Continuous\x20painting':'','Keeps\x20the\x20painter\x20on\x20after\x20setting\x20the\x20formatting.':'','Formatting\x20copied.':'','Pasted\x20formatting.':'','Painting\x20cancelled.':''},'getPluralForm':
|
|
23
|
+
export default{'az':{'dictionary':{'Paint\x20formatting':'','Copy\x20text\x20formatting':'','Paste\x20text\x20formatting':'','Continuous\x20painting':'','Keeps\x20the\x20painter\x20on\x20after\x20setting\x20the\x20formatting.':'','Formatting\x20copied.':'','Pasted\x20formatting.':'','Painting\x20cancelled.':''},'getPluralForm':_0xb5eb36=>0x1!=_0xb5eb36}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x32712e=>{const {az:{dictionary:_0x2360fc,getPluralForm:_0x18d255}}={'az':{'dictionary':{'Paint\x20formatting':'','Copy\x20text\x20formatting':'','Paste\x20text\x20formatting':'','Continuous\x20painting':'','Keeps\x20the\x20painter\x20on\x20after\x20setting\x20the\x20formatting.':'','Formatting\x20copied.':'','Pasted\x20formatting.':'','Painting\x20cancelled.':''},'getPluralForm':_0x511d13=>0x1!=_0x511d13}};_0x32712e['az']||={'dictionary':{},'getPluralForm':null},_0x32712e['az']['dictionary']=Object['assign'](_0x32712e['az']['dictionary'],_0x2360fc),_0x32712e['az']['getPluralForm']=_0x18d255;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/be.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'be':{'dictionary':{'Paint\x20formatting':'','Copy\x20text\x20formatting':'','Paste\x20text\x20formatting':'','Continuous\x20painting':'','Keeps\x20the\x20painter\x20on\x20after\x20setting\x20the\x20formatting.':'','Formatting\x20copied.':'','Pasted\x20formatting.':'','Painting\x20cancelled.':''},'getPluralForm':
|
|
23
|
+
export default{'be':{'dictionary':{'Paint\x20formatting':'','Copy\x20text\x20formatting':'','Paste\x20text\x20formatting':'','Continuous\x20painting':'','Keeps\x20the\x20painter\x20on\x20after\x20setting\x20the\x20formatting.':'','Formatting\x20copied.':'','Pasted\x20formatting.':'','Painting\x20cancelled.':''},'getPluralForm':_0xec4ce4=>_0xec4ce4%0xa==0x1&&_0xec4ce4%0x64!=0xb?0x0:_0xec4ce4%0xa>=0x2&&_0xec4ce4%0xa<=0x4&&(_0xec4ce4%0x64<0xa||_0xec4ce4%0x64>=0x14)?0x1:0x2}};
|