@ckeditor/ckeditor5-format-painter 41.3.0 → 41.4.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/build/format-painter.js +1 -1
- package/build/format-painter.js.map +1 -0
- package/dist/index-content.css +4 -0
- package/dist/index-editor.css +7 -0
- package/dist/index.css +32 -0
- package/dist/index.js +23 -0
- package/dist/translations/ar.d.ts +8 -0
- package/dist/translations/ar.js +23 -0
- package/dist/translations/bg.d.ts +8 -0
- package/dist/translations/bg.js +23 -0
- package/dist/translations/bn.d.ts +8 -0
- package/dist/translations/bn.js +23 -0
- package/dist/translations/ca.d.ts +8 -0
- package/dist/translations/ca.js +23 -0
- package/dist/translations/cs.d.ts +8 -0
- package/dist/translations/cs.js +23 -0
- package/dist/translations/da.d.ts +8 -0
- package/dist/translations/da.js +23 -0
- package/dist/translations/de.d.ts +8 -0
- package/dist/translations/de.js +23 -0
- package/dist/translations/el.d.ts +8 -0
- package/dist/translations/el.js +23 -0
- package/dist/translations/en-au.d.ts +8 -0
- package/dist/translations/en-au.js +23 -0
- package/dist/translations/en.d.ts +8 -0
- package/dist/translations/en.js +23 -0
- package/dist/translations/es.d.ts +8 -0
- package/dist/translations/es.js +23 -0
- package/dist/translations/et.d.ts +8 -0
- package/dist/translations/et.js +23 -0
- package/dist/translations/fi.d.ts +8 -0
- package/dist/translations/fi.js +23 -0
- package/dist/translations/fr.d.ts +8 -0
- package/dist/translations/fr.js +23 -0
- package/dist/translations/gl.d.ts +8 -0
- package/dist/translations/gl.js +23 -0
- package/dist/translations/he.d.ts +8 -0
- package/dist/translations/he.js +23 -0
- package/dist/translations/hi.d.ts +8 -0
- package/dist/translations/hi.js +23 -0
- package/dist/translations/hr.d.ts +8 -0
- package/dist/translations/hr.js +23 -0
- package/dist/translations/hu.d.ts +8 -0
- package/dist/translations/hu.js +23 -0
- package/dist/translations/id.d.ts +8 -0
- package/dist/translations/id.js +23 -0
- package/dist/translations/it.d.ts +8 -0
- package/dist/translations/it.js +23 -0
- package/dist/translations/ja.d.ts +8 -0
- package/dist/translations/ja.js +23 -0
- package/dist/translations/ko.d.ts +8 -0
- package/dist/translations/ko.js +23 -0
- package/dist/translations/lt.d.ts +8 -0
- package/dist/translations/lt.js +23 -0
- package/dist/translations/lv.d.ts +8 -0
- package/dist/translations/lv.js +23 -0
- package/dist/translations/ms.d.ts +8 -0
- package/dist/translations/ms.js +23 -0
- package/dist/translations/nl.d.ts +8 -0
- package/dist/translations/nl.js +23 -0
- package/dist/translations/no.d.ts +8 -0
- package/dist/translations/no.js +23 -0
- package/dist/translations/pl.d.ts +8 -0
- package/dist/translations/pl.js +23 -0
- package/dist/translations/pt-br.d.ts +8 -0
- package/dist/translations/pt-br.js +23 -0
- package/dist/translations/pt.d.ts +8 -0
- package/dist/translations/pt.js +23 -0
- package/dist/translations/ro.d.ts +8 -0
- package/dist/translations/ro.js +23 -0
- package/dist/translations/ru.d.ts +8 -0
- package/dist/translations/ru.js +23 -0
- package/dist/translations/sk.d.ts +8 -0
- package/dist/translations/sk.js +23 -0
- package/dist/translations/sr-latn.d.ts +8 -0
- package/dist/translations/sr-latn.js +23 -0
- package/dist/translations/sr.d.ts +8 -0
- package/dist/translations/sr.js +23 -0
- package/dist/translations/sv.d.ts +8 -0
- package/dist/translations/sv.js +23 -0
- package/dist/translations/th.d.ts +8 -0
- package/dist/translations/th.js +23 -0
- package/dist/translations/tr.d.ts +8 -0
- package/dist/translations/tr.js +23 -0
- package/dist/translations/ug.d.ts +8 -0
- package/dist/translations/ug.js +23 -0
- package/dist/translations/uk.d.ts +8 -0
- package/dist/translations/uk.js +23 -0
- package/dist/translations/vi.d.ts +8 -0
- package/dist/translations/vi.js +23 -0
- package/dist/translations/zh-cn.d.ts +8 -0
- package/dist/translations/zh-cn.js +23 -0
- package/dist/translations/zh.d.ts +8 -0
- package/dist/translations/zh.js +23 -0
- package/dist/types/augmentation.d.ts +20 -0
- package/dist/types/copyformatcommand.d.ts +41 -0
- package/dist/types/formatpainter.d.ts +32 -0
- package/dist/types/formatpainterediting.d.ts +40 -0
- package/dist/types/formatpainterui.d.ts +36 -0
- package/dist/types/index.d.ts +18 -0
- package/dist/types/pasteformatcommand.d.ts +27 -0
- package/dist/types/utils.d.ts +29 -0
- package/lang/contexts.json +2 -0
- package/package.json +4 -3
- package/src/copyformatcommand.js +1 -1
- package/src/formatpainter.js +1 -1
- package/src/formatpainterediting.js +1 -1
- package/src/formatpainterui.js +1 -1
- package/src/index.js +1 -1
- package/src/pasteformatcommand.js +1 -1
- package/src/utils.js +1 -1
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* @module format-painter/formatpainter
|
|
11
|
+
* @publicApi
|
|
12
|
+
*/
|
|
13
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
14
|
+
import FormatPainterEditing from './formatpainterediting.js';
|
|
15
|
+
import FormatPainterUI from './formatpainterui.js';
|
|
16
|
+
/**
|
|
17
|
+
* The format painter feature.
|
|
18
|
+
*
|
|
19
|
+
* For a detailed overview, check the {@glink features/format-painter Format painter} feature documentation.
|
|
20
|
+
*
|
|
21
|
+
* @extends module:core/plugin~Plugin
|
|
22
|
+
*/
|
|
23
|
+
export default class FormatPainter extends Plugin {
|
|
24
|
+
/**
|
|
25
|
+
* @inheritDoc
|
|
26
|
+
*/
|
|
27
|
+
static get requires(): readonly [typeof FormatPainterEditing, typeof FormatPainterUI];
|
|
28
|
+
/**
|
|
29
|
+
* @inheritDoc
|
|
30
|
+
*/
|
|
31
|
+
static get pluginName(): "FormatPainter";
|
|
32
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* @module format-painter/formatpainterediting
|
|
11
|
+
*/
|
|
12
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core.js';
|
|
13
|
+
/**
|
|
14
|
+
* The format painter editing feature. It introduces two commands: `copyFormat` and `pasteFormat`.
|
|
15
|
+
*/
|
|
16
|
+
export default class FormatPainterEditing extends Plugin {
|
|
17
|
+
licenseKey: string;
|
|
18
|
+
/**
|
|
19
|
+
* @inheritDoc
|
|
20
|
+
*/
|
|
21
|
+
static get pluginName(): "FormatPainterEditing";
|
|
22
|
+
/**
|
|
23
|
+
* @inheritDoc
|
|
24
|
+
*/
|
|
25
|
+
constructor(editor: Editor);
|
|
26
|
+
/**
|
|
27
|
+
* @inheritDoc
|
|
28
|
+
*/
|
|
29
|
+
init(): void;
|
|
30
|
+
/**
|
|
31
|
+
* @inheritDoc
|
|
32
|
+
*/
|
|
33
|
+
destroy(): void;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* An object with key-value pairs describing formatting model attributes and their values.
|
|
37
|
+
*/
|
|
38
|
+
export type FormattingAttributesValues = {
|
|
39
|
+
[k: string]: unknown;
|
|
40
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* @module format-painter/formatpainterui
|
|
11
|
+
*/
|
|
12
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
13
|
+
import '../theme/formatpainter.css';
|
|
14
|
+
declare const FormatPainterUI_base: import("ckeditor5/src/utils.js").Mixed<typeof Plugin, import("ckeditor5/src/utils.js").DomEmitter>;
|
|
15
|
+
/**
|
|
16
|
+
* The format painter UI feature. It introduces the `formatPainter` dropdown with a "Continuous painting"
|
|
17
|
+
* switch button.
|
|
18
|
+
*
|
|
19
|
+
* The first click on the dropdown button copies the formatting of the selected text.
|
|
20
|
+
* Then the next click in the editor editable pastes the formatting.
|
|
21
|
+
*/
|
|
22
|
+
export default class FormatPainterUI extends FormatPainterUI_base {
|
|
23
|
+
/**
|
|
24
|
+
* @inheritDoc
|
|
25
|
+
*/
|
|
26
|
+
static get pluginName(): "FormatPainterUI";
|
|
27
|
+
/**
|
|
28
|
+
* @inheritDoc
|
|
29
|
+
*/
|
|
30
|
+
init(): void;
|
|
31
|
+
/**
|
|
32
|
+
* @inheritDoc
|
|
33
|
+
*/
|
|
34
|
+
afterInit(): void;
|
|
35
|
+
}
|
|
36
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* @module format-painter
|
|
11
|
+
*/
|
|
12
|
+
export { type COPY_FORMAT_COMMAND_NAME, type PASTE_FORMAT_COMMAND_NAME } from './utils.js';
|
|
13
|
+
export { default as FormatPainter } from './formatpainter.js';
|
|
14
|
+
export { default as FormatPainterEditing, type FormattingAttributesValues } from './formatpainterediting.js';
|
|
15
|
+
export { default as FormatPainterUI } from './formatpainterui.js';
|
|
16
|
+
export { default as PasteFormatCommand } from './pasteformatcommand.js';
|
|
17
|
+
export { default as CopyFormatCommand } from './copyformatcommand.js';
|
|
18
|
+
import './augmentation.js';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
import { Command, type Editor } from 'ckeditor5/src/core.js';
|
|
10
|
+
import type { FormattingAttributesValues } from './formatpainterediting.js';
|
|
11
|
+
/**
|
|
12
|
+
* The command allows to paste the formatting onto the current {@link module:engine/model/selection~Selection model selection}.
|
|
13
|
+
*
|
|
14
|
+
* @extends module:core/command~Command
|
|
15
|
+
*/
|
|
16
|
+
export default class PasteFormatCommand extends Command {
|
|
17
|
+
/**
|
|
18
|
+
* @inheritDoc
|
|
19
|
+
*/
|
|
20
|
+
constructor(editor: Editor);
|
|
21
|
+
/**
|
|
22
|
+
* Executes the command.
|
|
23
|
+
*
|
|
24
|
+
* @fires execute
|
|
25
|
+
*/
|
|
26
|
+
execute(formattingToSet?: FormattingAttributesValues | undefined): void;
|
|
27
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* @module format-painter/utils
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* The name of the {@link module:format-painter/copyformatcommand~CopyFormatCommand} registered in the editor's command collection.
|
|
14
|
+
*
|
|
15
|
+
* @protected
|
|
16
|
+
*/
|
|
17
|
+
export declare const COPY_FORMAT_COMMAND_NAME = "copyFormat";
|
|
18
|
+
/**
|
|
19
|
+
* The name of the {@link module:format-painter/pasteformatcommand~PasteFormatCommand} registered in the editor's command collection.
|
|
20
|
+
*
|
|
21
|
+
* @protected
|
|
22
|
+
*/
|
|
23
|
+
export declare const PASTE_FORMAT_COMMAND_NAME = "pasteFormat";
|
|
24
|
+
/**
|
|
25
|
+
* The CSS class set on the editing roots during format painting by the {@link module:format-painter/formatpainterui~FormatPainterUI}.
|
|
26
|
+
*
|
|
27
|
+
* @protected
|
|
28
|
+
*/
|
|
29
|
+
export declare const CURSOR_ACTIVE_CSS_CLASS = "ck-format-painter-active";
|
package/lang/contexts.json
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"Paint formatting": "A toolbar button tooltip for the format painter feature.",
|
|
3
|
+
"Copy text formatting": "Keystroke description for assistive technologies: keystroke for copying text formatting. Example: 'Copy text formatting'.",
|
|
4
|
+
"Paste text formatting": "Keystroke description for assistive technologies: keystroke for paste text formatting. Example: 'Paste text formatting'.",
|
|
3
5
|
"Continuous painting": "The label for the continuous painting checkbox in the format painter dropdown.",
|
|
4
6
|
"Keeps the painter on after setting the formatting.": "The tooltip displayed for the continuous painting button explaining what it does.",
|
|
5
7
|
"Formatting copied.": "A message read out by assistive technologies the moment the formatting is copied by the user.",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-format-painter",
|
|
3
|
-
"version": "41.
|
|
3
|
+
"version": "41.4.0-alpha.0",
|
|
4
4
|
"description": "Format painter feature for CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -12,14 +12,15 @@
|
|
|
12
12
|
"type": "module",
|
|
13
13
|
"main": "src/index.js",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"ckeditor5": "41.
|
|
16
|
-
"ckeditor5-collaboration": "41.
|
|
15
|
+
"ckeditor5": "41.4.0-alpha.0",
|
|
16
|
+
"ckeditor5-collaboration": "41.4.0-alpha.0"
|
|
17
17
|
},
|
|
18
18
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
19
19
|
"author": "CKSource (http://cksource.com/)",
|
|
20
20
|
"homepage": "https://ckeditor.com/ckeditor-5",
|
|
21
21
|
"bugs": "https://support.ckeditor.com/hc/en-us/requests/new",
|
|
22
22
|
"files": [
|
|
23
|
+
"dist",
|
|
23
24
|
"lang",
|
|
24
25
|
"src/**/*.js",
|
|
25
26
|
"src/**/*.d.ts",
|
package/src/copyformatcommand.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4578d0=_0x249c;(function(_0x5470d1,_0x12b797){const _0x55913d=_0x249c,_0x3c80bf=_0x5470d1();while(!![]){try{const _0xbbfdfc=-parseInt(_0x55913d(0x90))/0x1*(parseInt(_0x55913d(0x94))/0x2)+-parseInt(_0x55913d(0x87))/0x3*(-parseInt(_0x55913d(0x98))/0x4)+parseInt(_0x55913d(0x8b))/0x5*(-parseInt(_0x55913d(0x86))/0x6)+parseInt(_0x55913d(0x84))/0x7+parseInt(_0x55913d(0x99))/0x8*(-parseInt(_0x55913d(0x81))/0x9)+parseInt(_0x55913d(0x89))/0xa+parseInt(_0x55913d(0x8a))/0xb;if(_0xbbfdfc===_0x12b797)break;else _0x3c80bf['push'](_0x3c80bf['shift']());}catch(_0x1fbf1b){_0x3c80bf['push'](_0x3c80bf['shift']());}}}(_0x5c59,0x5be3a));function _0x5c59(){const _0x14f4d8=['5xZLwRu','fromEntries','reset','change:isEnabled','from','1TtaOAM','document','schema','filter','1445546cpSTOy','editor','get','value','696PJlzyu','48sOgHLD','isFormatting','getAttributes','getAttributeProperties','commands','model','refresh','300033ERYFpj','_getFormattingAttributes','selection','3424393mCcHdp','change:value','1148088qXsTIe','5937KfStRl','execute','4539140JoqVQG','2233682uPPamh'];_0x5c59=function(){return _0x14f4d8;};return _0x5c59();}import{Command as _0x2d699e}from'ckeditor5/src/core.js';function _0x249c(_0x52c5dd,_0x1f6f48){const _0x5c59f1=_0x5c59();return _0x249c=function(_0x249cce,_0x41c911){_0x249cce=_0x249cce-0x7f;let _0x116347=_0x5c59f1[_0x249cce];return _0x116347;},_0x249c(_0x52c5dd,_0x1f6f48);}import{PASTE_FORMAT_COMMAND_NAME as _0x46f1aa}from'./utils.js';export default class r extends _0x2d699e{constructor(_0x41e565){const _0x455d39=_0x249c;super(_0x41e565),this[_0x455d39(0x97)]=void 0x0,this['on'](_0x455d39(0x8e),(_0x238e0c,_0x2fc325,_0x50a067)=>{const _0x2f230c=_0x455d39;_0x50a067||this[_0x2f230c(0x8d)]();}),this['on'](_0x455d39(0x85),()=>_0x41e565[_0x455d39(0x9d)][_0x455d39(0x96)](_0x46f1aa)[_0x455d39(0x80)]());}[_0x4578d0(0x88)](){const _0x1bc47d=_0x4578d0;this[_0x1bc47d(0x97)]=this[_0x1bc47d(0x82)]();}[_0x4578d0(0x8d)](){const _0x457658=_0x4578d0;this[_0x457658(0x97)]=void 0x0;}[_0x4578d0(0x82)](){const _0x1cbff0=_0x4578d0,_0x314828=this[_0x1cbff0(0x95)][_0x1cbff0(0x7f)],_0x3c5406=_0x314828[_0x1cbff0(0x91)][_0x1cbff0(0x83)];return Object[_0x1cbff0(0x8c)](Array[_0x1cbff0(0x8f)](_0x3c5406[_0x1cbff0(0x9b)]())[_0x1cbff0(0x93)](([_0x1b2c15])=>_0x314828[_0x1cbff0(0x92)][_0x1cbff0(0x9c)](_0x1b2c15)[_0x1cbff0(0x9a)]));}}
|
package/src/formatpainter.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x18db78=_0x17dd;function _0x17dd(_0x24c8fb,_0x2016ca){var _0x424fac=_0x424f();return _0x17dd=function(_0x17dde0,_0x2caa92){_0x17dde0=_0x17dde0-0x1bf;var _0x265de5=_0x424fac[_0x17dde0];return _0x265de5;},_0x17dd(_0x24c8fb,_0x2016ca);}(function(_0x4d39bf,_0x352665){var _0x6310df=_0x17dd,_0x59bcdb=_0x4d39bf();while(!![]){try{var _0x1e95cd=-parseInt(_0x6310df(0x1c4))/0x1+parseInt(_0x6310df(0x1c3))/0x2*(parseInt(_0x6310df(0x1cb))/0x3)+parseInt(_0x6310df(0x1c1))/0x4+-parseInt(_0x6310df(0x1c6))/0x5*(-parseInt(_0x6310df(0x1c0))/0x6)+parseInt(_0x6310df(0x1cc))/0x7*(-parseInt(_0x6310df(0x1bf))/0x8)+parseInt(_0x6310df(0x1ca))/0x9*(-parseInt(_0x6310df(0x1c2))/0xa)+-parseInt(_0x6310df(0x1c8))/0xb*(-parseInt(_0x6310df(0x1c7))/0xc);if(_0x1e95cd===_0x352665)break;else _0x59bcdb['push'](_0x59bcdb['shift']());}catch(_0x23f141){_0x59bcdb['push'](_0x59bcdb['shift']());}}}(_0x424f,0x2f344));import{Plugin as _0x16cded}from'ckeditor5/src/core.js';import _0x15d91c from'./formatpainterediting.js';import _0x337167 from'./formatpainterui.js';function _0x424f(){var _0x1eedb6=['FormatPainter','40KeCIbU','6gdssCL','1518988niWaBG','50tStEcR','604612WhywJK','243314GfXKBl','requires','720145nuSMXh','310740ASsNcs','88HrrkRo','pluginName','432369qyBKuA','3BFYsfs','498925sinZit'];_0x424f=function(){return _0x1eedb6;};return _0x424f();}export default class m extends _0x16cded{static get[_0x18db78(0x1c5)](){return[_0x15d91c,_0x337167];}static get[_0x18db78(0x1c9)](){var _0x26d945=_0x18db78;return _0x26d945(0x1cd);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x48d4bd=_0x3860;(function(_0x65e2e5,_0x1bea4d){const _0xce7335=_0x3860,_0x36f194=_0x65e2e5();while(!![]){try{const _0x4cb0ba=parseInt(_0xce7335(0x143))/0x1*(parseInt(_0xce7335(0x147))/0x2)+parseInt(_0xce7335(0x157))/0x3*(-parseInt(_0xce7335(0x153))/0x4)+-parseInt(_0xce7335(0x15a))/0x5*(-parseInt(_0xce7335(0x14b))/0x6)+parseInt(_0xce7335(0x141))/0x7*(-parseInt(_0xce7335(0x152))/0x8)+parseInt(_0xce7335(0x148))/0x9+parseInt(_0xce7335(0x156))/0xa+-parseInt(_0xce7335(0x13c))/0xb*(parseInt(_0xce7335(0x14e))/0xc);if(_0x4cb0ba===_0x1bea4d)break;else _0x36f194['push'](_0x36f194['shift']());}catch(_0x4ba268){_0x36f194['push'](_0x36f194['shift']());}}}(_0x38bc,0xa6e48));import{Plugin as _0x52fea9}from'ckeditor5/src/core.js';import{CKEditorError as _0x315274}from'ckeditor5/src/utils.js';import _0x55d32b from'./copyformatcommand.js';import _0x1bccf from'./pasteformatcommand.js';function _0x3860(_0x57f5f2,_0x41c204){const _0x38bc6a=_0x38bc();return _0x3860=function(_0x3860f9,_0x49d30b){_0x3860f9=_0x3860f9-0x13c;let _0x29381f=_0x38bc6a[_0x3860f9];return _0x29381f;},_0x3860(_0x57f5f2,_0x41c204);}import{COPY_FORMAT_COMMAND_NAME as _0x3fea06,PASTE_FORMAT_COMMAND_NAME as _0xffc308}from'./utils.js';function _0x38bc(){const _0x5bf55c=['3071724hTXuSh','_licenseKeyCheckInterval','destroy','config','8eCsoTW','4HjMRmt','editor','format-painter-invalid-license-key','13282370WgBXfD','1973883zSxKrY','commands','formatPainterLicenseKeyTrialLimit:operations','2989295ISHFmS','77pApebw','You\x20are\x20using\x20the\x20trial\x20version\x20of\x20CKEditor\x205\x20format\x20painter\x20plugin\x20with\x20limited\x20usage.\x20Make\x20sure\x20you\x20will\x20not\x20use\x20it\x20in\x20the\x20production\x20environment.','add','get','licenseKey','4899244xnVlil','formatPainterLicenseKeyValid','1012229QtrtJu','init','info','format-painter-trial-license-key-reached-limit-changes','2mdbJwK','8054631YVFmmx','FormatPainterEditing','formatPainterLicenseKeyInvalid','6BoKQrP','pluginName','formatPainterLicenseKeyTrial'];_0x38bc=function(){return _0x5bf55c;};return _0x38bc();}export default class o extends _0x52fea9{static get[_0x48d4bd(0x14c)](){const _0xd1b2b5=_0x48d4bd;return _0xd1b2b5(0x149);}constructor(_0x5ce64d){const _0x37e059=_0x48d4bd;super(_0x5ce64d),this[_0x37e059(0x14f)]=null;}[_0x48d4bd(0x144)](){const _0x36c3f4=_0x48d4bd,_0x2665e2=this[_0x36c3f4(0x154)];_0x2665e2[_0x36c3f4(0x158)][_0x36c3f4(0x13e)](_0x3fea06,new _0x55d32b(_0x2665e2)),_0x2665e2[_0x36c3f4(0x158)][_0x36c3f4(0x13e)](_0xffc308,new _0x1bccf(_0x2665e2)),this[_0x36c3f4(0x140)]=_0x2665e2[_0x36c3f4(0x151)][_0x36c3f4(0x13f)](_0x36c3f4(0x140));const _0x2033d3=this[_0x36c3f4(0x154)];this[_0x36c3f4(0x14f)]=setInterval(()=>{const _0x3c1b58=_0x36c3f4;let _0x236c0c;for(const _0x3b3162 in _0x2033d3){const _0x324041=_0x3b3162,_0x526373=_0x2033d3[_0x324041];if(_0x3c1b58(0x14d)===_0x526373||_0x3c1b58(0x14a)===_0x526373||_0x3c1b58(0x142)===_0x526373||_0x3c1b58(0x159)===_0x526373){delete _0x2033d3[_0x324041],_0x236c0c=_0x526373;break;}}if(_0x3c1b58(0x14a)===_0x236c0c)throw clearInterval(this[_0x3c1b58(0x14f)]),new _0x315274(_0x3c1b58(0x155),null);if(_0x3c1b58(0x14d)===_0x236c0c&&console[_0x3c1b58(0x145)](_0x3c1b58(0x13d)),_0x3c1b58(0x159)===_0x236c0c)throw clearInterval(this[_0x3c1b58(0x14f)]),new _0x315274(_0x3c1b58(0x146),null);_0x3c1b58(0x142)===_0x236c0c&&clearInterval(this[_0x3c1b58(0x14f)]);},0x3e8);}[_0x48d4bd(0x150)](){const _0x25e4eb=_0x48d4bd;this[_0x25e4eb(0x14f)]&&clearInterval(this[_0x25e4eb(0x14f)]);}}
|