@ckeditor/ckeditor5-format-painter 48.2.0 → 48.3.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 +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 _0x2792a4,Plugin as _0x18364b}from'@ckeditor/ckeditor5-core';import{RemoveFormatCommand as _0x1dc717}from'@ckeditor/ckeditor5-remove-format';import{SplitButtonView as _0x9b69e,UIModel as _0xdc840d,addListToDropdown as _0x45915c,createDropdown as _0x14c857}from'@ckeditor/ckeditor5-ui';import{Collection as _0x34717f,DomEmitterMixin as _0x39d806,global as _0x438bbd,uid as _0x1199e1}from'@ckeditor/ckeditor5-utils';import{ClickObserver as _0xc68b1f}from'@ckeditor/ckeditor5-engine';import{IconPaintRoller as _0x1d98df}from'@ckeditor/ckeditor5-icons';const w='copyFormat',g='pasteFormat',h='ck-format-painter-active';var p=class extends _0x2792a4{constructor(_0xca9f75){super(_0xca9f75),this['value']=void 0x0,this['on']('change:isEnabled',(_0x4518f4,_0x8cf4db,_0x4ebccd)=>{_0x4ebccd||this['reset']();}),this['on']('change:value',()=>_0xca9f75['commands']['get'](g)['refresh']());}['execute'](){this['value']=this['_getFormattingAttributes']();}['reset'](){this['value']=void 0x0;}['_getFormattingAttributes'](){const _0x92d9a4=this['editor']['model'],_0x19e5ef=_0x92d9a4['document']['selection'];return Object['fromEntries'](Array['from'](_0x19e5ef['getAttributes']())['filter'](([_0x3e0538])=>_0x92d9a4['schema']['getAttributeProperties'](_0x3e0538)['isFormatting']));}},y=class extends _0x2792a4{constructor(_0x1bcc09){super(_0x1bcc09),this['_removeFormatCommand']=new _0x1dc717(_0x1bcc09);}['execute'](_0x2f90df={}){const _0x20e697=this['editor']['model'],_0x11d204=_0x20e697['document']['selection'],_0x42f49b=Array['from'](_0x11d204['getRanges']()),_0x53ca91=_0x11d204['isCollapsed']?[this['_createRangeOnEntireWord'](_0x20e697,_0x11d204)]:_0x42f49b;_0x20e697['change'](_0x2fcdfa=>{_0x2fcdfa['setSelection'](_0x53ca91),this['_removeFormatCommand']['execute']();for(const _0x2ac70d in _0x2f90df)for(const _0x47629f of _0x20e697['schema']['getValidRanges'](_0x53ca91,_0x2ac70d))_0x2fcdfa['setAttribute'](_0x2ac70d,_0x2f90df[_0x2ac70d],_0x47629f);_0x2fcdfa['setSelection'](_0x42f49b);});}['_createRangeOnEntireWord'](_0x4bb092,_0x197f51){const _0xd2a6d4=_0x4bb092['createSelection'](_0x197f51);_0x4bb092['modifySelection'](_0xd2a6d4,{'unit':'word','direction':'backward'});const _0x540b5d=_0xd2a6d4['getFirstPosition']();_0x4bb092['modifySelection'](_0xd2a6d4,{'unit':'word','direction':'forward'});const _0x255493=_0xd2a6d4['getLastPosition']();return _0x4bb092['createRange'](_0x540b5d,_0x255493);}},P=class extends _0x18364b{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FormatPainterEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2bc894=this['editor'];_0x2bc894['commands']['add'](w,new p(_0x2bc894)),_0x2bc894['commands']['add'](g,new y(_0x2bc894)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x51e0ac=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3f03b8;for(const _0x1c217f in _0x51e0ac){const _0x8159ec=_0x1c217f,_0x2f22c6=_0x51e0ac[_0x8159ec];if('formatPainterLicenseKeyValid'==_0x2f22c6||'formatPainterLicenseKeyInvalid'==_0x2f22c6||'formatPainterLicenseKeyExpired'==_0x2f22c6||'formatPainterLicenseKeyDomainLimit'==_0x2f22c6||'formatPainterLicenseKeyNotAllowed'==_0x2f22c6||'formatPainterLicenseKeyEvaluationLimit'==_0x2f22c6||'formatPainterLicenseKeyUsageLimit'==_0x2f22c6){delete _0x51e0ac[_0x8159ec],_0x3f03b8=_0x2f22c6,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'formatPainterLicenseKeyInvalid'==_0x3f03b8&&_0x51e0ac['_showLicenseError']('invalid'),'formatPainterLicenseKeyExpired'==_0x3f03b8&&_0x51e0ac['_showLicenseError']('expired'),'formatPainterLicenseKeyDomainLimit'==_0x3f03b8&&_0x51e0ac['_showLicenseError']('domainLimit'),'formatPainterLicenseKeyNotAllowed'==_0x3f03b8&&_0x51e0ac['_showLicenseError']('featureNotAllowed','FormatPainter'),'formatPainterLicenseKeyEvaluationLimit'==_0x3f03b8&&_0x51e0ac['_showLicenseError']('evaluationLimit'),'formatPainterLicenseKeyUsageLimit'==_0x3f03b8&&_0x51e0ac['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};function L(_0x3d6fbe,_0x3cc7ab){const t=_0x3d6fbe['t'];switch(_0x3cc7ab){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 _0x3cc7ab;}}const v=/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x39d806(_0x18364b);var k=class extends v{static get['pluginName'](){return'FormatPainterUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0xe45e21=this['editor'];_0xe45e21['editing']['view']['addObserver'](_0xc68b1f),_0xe45e21['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':L(_0xe45e21['locale'],'Copy\x20text\x20formatting'),'keystroke':'Ctrl+Alt+C'},{'label':L(_0xe45e21['locale'],'Paste\x20text\x20formatting'),'keystroke':'Ctrl+Alt+V'}]}),_0xe45e21['ui']['componentFactory']['add']('formatPainter',_0x5c7d73=>{const _0x34d30c=_0x14c857(_0x5c7d73,_0x9b69e),_0x4351b7=_0xe45e21['commands']['get'](w);_0x34d30c['buttonView']['set']({'label':L(_0xe45e21['locale'],'Paint\x20formatting'),'icon':_0x1d98df,'keystroke':'Ctrl+Alt+C','tooltip':!0x0}),_0x34d30c['class']='ck-format-painter-dropdown',_0x4351b7&&(_0x34d30c['bind']('isEnabled')['to'](_0x4351b7,'isEnabled'),this['listenTo'](_0x4351b7,'change:isEnabled',(_0x4a41ab,_0x4248fd,_0x2e846e)=>{_0x2e846e||this['_finishPainting']();}),_0x34d30c['buttonView']['bind']('isOn')['to'](_0x4351b7,'value',_0x1ecf8d=>!!_0x1ecf8d),this['listenTo'](_0xe45e21,'destroy',()=>this['_toggleSpecialCursor'](!0x1)),this['listenTo'](_0x4351b7,'change:value',(_0x5440b8,_0x1c7552,_0x4cb091)=>{this['_toggleSpecialCursor'](!!_0x4cb091);}));const _0x594dc9=new _0xdc840d({'withText':!0x0,'label':L(_0xe45e21['locale'],'Continuous\x20painting'),'tooltip':L(_0xe45e21['locale'],'Keeps\x20the\x20painter\x20on\x20after\x20setting\x20the\x20formatting.'),'isOn':!0x1,'role':'menuitemcheckbox'});_0x45915c(_0x34d30c,new _0x34717f([{'type':'switchbutton','model':_0x594dc9}]),{'role':'menu'});const _0xc66b26=()=>{this['_copyFormatting'](),this['listenTo'](_0x438bbd['window']['document'],'mouseup',()=>{this['_pasteFormatting'](),_0x594dc9['isOn']||this['_finishPainting']();});};return this['listenTo'](_0x34d30c,'execute',()=>{_0x594dc9['isOn']=!_0x594dc9['isOn'];}),this['listenTo'](_0x34d30c['buttonView'],'execute',()=>{_0xe45e21['editing']['view']['focus'](),_0x34d30c['buttonView']['isOn']?this['_finishPainting']():_0xc66b26();}),_0xe45e21['keystrokes']['set']('Ctrl+Alt+C',(_0x57f1ff,_0x1a9c58)=>{_0xc66b26(),_0x594dc9['isOn']=!0x0,_0x1a9c58();},{'priority':'high'}),_0xe45e21['keystrokes']['set']('Ctrl+Alt+V',(_0x21d040,_0xba0a2e)=>{_0x34d30c['buttonView']['isOn']&&(this['_pasteFormatting'](),_0x594dc9['isOn']||this['_finishPainting'](),_0xba0a2e());},{'priority':'high'}),_0xe45e21['keystrokes']['set']('Esc',(_0x39921d,_0x2b855c)=>{_0x34d30c['buttonView']['isOn']&&(_0x594dc9['isOn']=!0x1,this['_finishPainting'](),_0xe45e21['ui']['ariaLiveAnnouncer']['announce'](L(_0xe45e21['locale'],'Painting\x20cancelled.')),_0x2b855c());}),_0x34d30c;});}['afterInit'](){!async function(_0x3d628f){const _0x36a603='QiLRCSOsZ8pAvDdaPJUE3oxjKlzM2uXgrtGfeyh5cNFkmBw9I6WH0qnb4T17YV',_0x4740cb=0x78df8,_0x24cee7=window['Date']['now'](),_0x66c7d8=_0x3d628f['editor'],_0x2fa4e2=new window['Promise'](_0x4b0222=>{_0x66c7d8['once']('ready',_0x4b0222);}),_0x5a5948={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x51fea3=_0x66c7d8['config']['get']('licenseKey');async function _0x54d63b(){let _0x517bcc,_0x1eb116=null,_0x17ba45=null;try{return'GPL'==_0x51fea3?'NotAllowed':(_0x517bcc=_0x363c1e(),_0x517bcc?(_0x517bcc['usageEndpoint']&&(_0x17ba45=_0x3f7bfd(_0x517bcc['usageEndpoint'],_0x517bcc['jti'])),await _0x5dcbb4()?_0x32b9c2()?_0x73ce7()?'Expired':_0x1edd3f()?('evaluation'==_0x517bcc['licenseType']&&(_0x1eb116=_0x3d643e('EvaluationLimit')),await _0x4431b2()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x73ce7(){const _0x242c0f=['evaluation','trial']['includes'](_0x517bcc['licenseType'])?_0x24cee7/0x3e8:0xe10*_0x4740cb;return _0x517bcc['exp']<_0x242c0f;}function _0x32b9c2(){const _0x3ee003=_0x517bcc['features'];return!!_0x3ee003&&(!!_0x3ee003['includes']('*')||(!!_0x3ee003['includes']('FP')||(!!_0x3ee003['includes']('PP')||!(!_0x3ee003['includes']('TRILIUM')||!_0x219385()))));}function _0x1edd3f(){const _0x4c36b5=_0x517bcc['licensedHosts'];if(!_0x4c36b5||0x0==_0x4c36b5['length'])return!0x0;const {hostname:_0x2fff43}=new URL(window['location']['href']);if(_0x4c36b5['includes'](_0x2fff43))return!0x0;const _0x4cca65=_0x2fff43['split']('.');return _0x4c36b5['filter'](_0xf3ce49=>_0xf3ce49['includes']('*'))['map'](_0xac72f0=>_0xac72f0['split']('.'))['filter'](_0x2b7760=>_0x2b7760['length']<=_0x4cca65['length'])['map'](_0x148820=>Array(_0x4cca65['length']-_0x148820['length'])['fill']('*'===_0x148820[0x0]?'*':'')['concat'](_0x148820))['some'](_0x46726b=>_0x4cca65['every']((_0x1ce17a,_0x4a4fcb)=>_0x46726b[_0x4a4fcb]===_0x1ce17a||'*'===_0x46726b[_0x4a4fcb]));}function _0x4431b2(){return _0x1eb116&&_0x17ba45?new window['Promise']((_0x573977,_0xd9ec7e)=>{_0x1eb116['then'](_0x573977,_0xd9ec7e),_0x17ba45['then'](_0x2d150c=>{'Valid'!=_0x2d150c&&_0x573977(_0x2d150c);},_0xd9ec7e);}):_0x1eb116||_0x17ba45||'Valid';}}function _0x3f7bfd(_0x16d97b,_0x29d41d){return new window['Promise'](_0x3a7612=>{if(_0x14a99a())return _0x3a7612('Valid');_0x5cdd8f(),_0x66c7d8['decorate']('_sendUsageRequest');let _0x4d0a8e=!0x1;const _0x27611a=_0x1199e1();function _0x203e6b(_0x2404fd){return!!_0x2404fd&&('object'==typeof _0x2404fd||'function'==typeof _0x2404fd)&&'function'==typeof _0x2404fd['then']&&'function'==typeof _0x2404fd['catch'];}function _0x3401ac(_0x50fda2){_0x14cb1f(_0x50fda2)['then'](_0x1b0ac4=>_0x1b0ac4&&'ok'==_0x1b0ac4['status']?_0x42a5a1(_0x937864(_0x27611a+_0x29d41d))!=_0x1b0ac4['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x2609f6=>(_0x34da4d(),_0x2609f6),()=>{const _0x48b7ba=_0x26e62e();return null==_0x48b7ba?(_0x34da4d(),'Valid'):_0x24cee7-_0x48b7ba>0x240c8400?'UsageLimit':'Valid';})['then'](_0x3a7612)['catch'](()=>{_0x3a7612('UsageLimit');});const _0x257c14=0x36ee80;function _0x34da4d(){const _0x4a971c='llct-'+_0x42a5a1(_0x937864(_0x16d97b)),_0x5831b3=_0x224c36(_0x42a5a1(window['Math']['ceil'](_0x24cee7/_0x257c14)));window['localStorage']['setItem'](_0x4a971c,_0x5831b3);}function _0x26e62e(){const _0x242d2f='llct-'+_0x42a5a1(_0x937864(_0x16d97b)),_0x2757d9=window['localStorage']['getItem'](_0x242d2f);return _0x2757d9?window['parseInt'](_0x224c36(_0x2757d9),0x10)*_0x257c14:null;}function _0x14cb1f(_0x182abe){return new window['Promise']((_0x203de9,_0xe062cc)=>{_0x182abe['then'](_0x203de9,_0xe062cc),window['setTimeout'](_0xe062cc,0x1d4c0);});}}_0x66c7d8['on']('_sendUsageRequest',(_0x55eae4,_0xc8a5eb)=>{if(_0xc8a5eb[0x0]!=_0x16d97b)return _0x3a7612('UsageLimit');_0xc8a5eb[0x1]={..._0xc8a5eb[0x1],'requestId':_0x27611a};},{'priority':'high'}),_0x66c7d8['on']('_sendUsageRequest',_0x30f03f=>{_0x203e6b(_0x30f03f['return'])&&(_0x4d0a8e=!0x0,_0x3401ac(_0x30f03f['return']));},{'priority':'low'}),_0x2fa4e2['then'](()=>{_0x4d0a8e||_0x3a7612('UsageLimit');});});function _0x14a99a(){return'auto'==_0x66c7d8['editing']['view']['_overlayModeHint'];}function _0x5cdd8f(){_0x66c7d8['editing']['view']['_overlayModeHint']='auto';}}function _0x3d643e(_0x16ee52){const _0x209912=[new window['Promise'](_0x2f89ed=>setTimeout(_0x2f89ed,0x93ecc)),_0x2fa4e2['then'](()=>new window['Promise'](_0xca2d09=>{let _0x1bb093=0x0;_0x66c7d8['model']['on']('applyOperation',(_0x53fa50,_0x22095f)=>{_0x22095f[0x0]['isDocumentOperation']&&_0x1bb093++,0x5e8==_0x1bb093&&(_0xca2d09(),_0x53fa50['off']());});}))];return window['Promise']['race'](_0x209912)['then'](()=>_0x16ee52);}async function _0x49210f(){await _0x2fa4e2,_0x66c7d8['model']['change']=_0x3db3ab,_0x66c7d8['model']['enqueueChange']=_0x3db3ab,_0x66c7d8['enableReadOnlyMode']('model');}function _0x219385(){return window['glob']&&window['glob']['triliumVersion'];}function _0x157f21(_0x5f44ad){const _0x57c7f1=_0x546426();_0x66c7d8[_0x57c7f1]='formatPainterLicenseKey'+_0x5f44ad,'Valid'!=_0x5f44ad&&_0x49210f();}function _0x546426(){const _0x3e9992=window['String'](window['performance']['now']())['replace']('.','');let _0x4275c0='Q';for(let _0x39293f=0x0;_0x39293f<_0x3e9992['length'];_0x39293f+=0x2){let _0x19353b=window['parseInt'](_0x3e9992['substring'](_0x39293f,_0x39293f+0x2));_0x19353b>=0x3e&&(_0x19353b-=0x3e),_0x4275c0+=_0x36a603[_0x19353b];}return _0x4275c0;}function _0x363c1e(){const _0x404040=_0x51fea3['split']('.');if(0x3!=_0x404040['length'])return null;return _0x4e5e28(_0x404040[0x1]);function _0x4e5e28(_0x248c2b){const _0x28ab8d=_0x57a9fc(_0x248c2b);return _0x28ab8d&&_0x406dc6()?_0x28ab8d:null;function _0x406dc6(){const _0x232cd1=_0x28ab8d['jti'],_0x20fbac=window['parseInt'](_0x232cd1['substring'](_0x232cd1['length']-0x8),0x10),_0xd14d79={..._0x28ab8d,'jti':_0x232cd1['substring'](0x0,_0x232cd1['length']-0x8)};return delete _0xd14d79['vc'],_0x937864(_0xd14d79)==_0x20fbac;}}}async function _0x5dcbb4(){let _0x4ba913=!0x0;try{const [_0x56e476,_0x709b7e,_0x25c8fc]=_0x51fea3['split']('.');return _0x295bcb(_0x56e476),await _0x2569b2(_0x56e476,_0x709b7e,_0x25c8fc),_0x4ba913;}catch{return!0x1;}function _0x295bcb(_0x11d1c9){const _0x5c464f=_0x57a9fc(_0x11d1c9);_0x5c464f&&'ES256'==_0x5c464f['alg']||(_0x4ba913=!0x1);}async function _0x2569b2(_0x315ba1,_0x93e823,_0x10ca9b){const _0x2172bb=window['Uint8Array']['from'](_0x2c094f(_0x10ca9b),_0x7cc187=>_0x7cc187['charCodeAt'](0x0)),_0x2759fe=new window['TextEncoder']()['encode'](_0x315ba1+'.'+_0x93e823),_0x640457=window['crypto']['subtle'];if(!_0x640457)return;const _0x58326b=await _0x640457['importKey']('jwk',_0x5a5948,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x640457['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x58326b,_0x2172bb,_0x2759fe)||(_0x4ba913=!0x1);}}function _0x57a9fc(_0x572ad6){return _0x572ad6['startsWith']('ey')?JSON['parse'](_0x2c094f(_0x572ad6)):null;}function _0x2c094f(_0x5e157e){return window['atob'](_0x5e157e['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x937864(_0xdf7f5a){let _0x3d8479=0x1505;function _0x37a65e(_0x5472f0){for(let _0x162966=0x0;_0x162966<_0x5472f0['length'];_0x162966++){const _0x3e15ff=_0x5472f0['charCodeAt'](_0x162966);_0x3d8479=(_0x3d8479<<0x5)+_0x3d8479+_0x3e15ff,_0x3d8479&=_0x3d8479;}}function _0x2ab015(_0x1d8917){Array['isArray'](_0x1d8917)?_0x1d8917['forEach'](_0x2ab015):_0x1d8917&&'object'==typeof _0x1d8917?Object['entries'](_0x1d8917)['sort']()['forEach'](([_0x8aaba8,_0x1cb5ba])=>{_0x37a65e(_0x8aaba8),_0x2ab015(_0x1cb5ba);}):_0x37a65e(window['String'](_0x1d8917));}return _0x2ab015(_0xdf7f5a),_0x3d8479>>>0x0;}function _0x42a5a1(_0x21be24){return _0x21be24['toString'](0x10)['padStart'](0x8,'0');}function _0x224c36(_0x5b7ae0){return _0x5b7ae0['split']('')['reverse']()['join']('');}function _0x3db3ab(){}_0x157f21(await _0x54d63b());}(this);}['_toggleSpecialCursor'](_0x10eb5f){this['editor']['editing']['view']['change'](_0x302f00=>{for(const _0xc6ea65 of this['editor']['editing']['view']['document']['roots'])_0x10eb5f?_0x302f00['addClass'](h,_0xc6ea65):_0x302f00['removeClass'](h,_0xc6ea65);});}['_copyFormatting'](){const {editor:_0x2ccd4c}=this;_0x2ccd4c['execute'](w),_0x2ccd4c['ui']['ariaLiveAnnouncer']['announce'](L(_0x2ccd4c['locale'],'Formatting\x20copied.'));}['_pasteFormatting'](){const {editor:_0x4dd298}=this,_0x17e525=_0x4dd298['commands']['get'](w)['value'];_0x4dd298['execute'](g,_0x17e525),_0x4dd298['ui']['ariaLiveAnnouncer']['announce'](L(_0x4dd298['locale'],'Pasted\x20formatting.'));}['_finishPainting'](){this['editor']['commands']['get'](w)['reset'](),this['stopListening'](_0x438bbd['window']['document'],'mouseup');}},x=class extends _0x18364b{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}};
|