@ckeditor/ckeditor5-core 41.3.1 → 41.4.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/index-content.css +4 -0
- package/dist/index-editor.css +4 -0
- package/dist/index.css +4 -0
- package/dist/index.js +2132 -0
- package/dist/index.js.map +1 -0
- package/dist/translations/af.d.ts +8 -0
- package/dist/translations/af.js +5 -0
- package/dist/translations/af.umd.js +11 -0
- package/dist/translations/ar.d.ts +8 -0
- package/dist/translations/ar.js +5 -0
- package/dist/translations/ar.umd.js +11 -0
- package/dist/translations/ast.d.ts +8 -0
- package/dist/translations/ast.js +5 -0
- package/dist/translations/ast.umd.js +11 -0
- package/dist/translations/az.d.ts +8 -0
- package/dist/translations/az.js +5 -0
- package/dist/translations/az.umd.js +11 -0
- package/dist/translations/bg.d.ts +8 -0
- package/dist/translations/bg.js +5 -0
- package/dist/translations/bg.umd.js +11 -0
- package/dist/translations/bn.d.ts +8 -0
- package/dist/translations/bn.js +5 -0
- package/dist/translations/bn.umd.js +11 -0
- package/dist/translations/bs.d.ts +8 -0
- package/dist/translations/bs.js +5 -0
- package/dist/translations/bs.umd.js +11 -0
- package/dist/translations/ca.d.ts +8 -0
- package/dist/translations/ca.js +5 -0
- package/dist/translations/ca.umd.js +11 -0
- package/dist/translations/cs.d.ts +8 -0
- package/dist/translations/cs.js +5 -0
- package/dist/translations/cs.umd.js +11 -0
- package/dist/translations/da.d.ts +8 -0
- package/dist/translations/da.js +5 -0
- package/dist/translations/da.umd.js +11 -0
- package/dist/translations/de-ch.d.ts +8 -0
- package/dist/translations/de-ch.js +5 -0
- package/dist/translations/de-ch.umd.js +11 -0
- package/dist/translations/de.d.ts +8 -0
- package/dist/translations/de.js +5 -0
- package/dist/translations/de.umd.js +11 -0
- package/dist/translations/el.d.ts +8 -0
- package/dist/translations/el.js +5 -0
- package/dist/translations/el.umd.js +11 -0
- package/dist/translations/en-au.d.ts +8 -0
- package/dist/translations/en-au.js +5 -0
- package/dist/translations/en-au.umd.js +11 -0
- package/dist/translations/en-gb.d.ts +8 -0
- package/dist/translations/en-gb.js +5 -0
- package/dist/translations/en-gb.umd.js +11 -0
- package/dist/translations/en.d.ts +8 -0
- package/dist/translations/en.js +5 -0
- package/dist/translations/en.umd.js +11 -0
- package/dist/translations/eo.d.ts +8 -0
- package/dist/translations/eo.js +5 -0
- package/dist/translations/eo.umd.js +11 -0
- package/dist/translations/es-co.d.ts +8 -0
- package/dist/translations/es-co.js +5 -0
- package/dist/translations/es-co.umd.js +11 -0
- package/dist/translations/es.d.ts +8 -0
- package/dist/translations/es.js +5 -0
- package/dist/translations/es.umd.js +11 -0
- package/dist/translations/et.d.ts +8 -0
- package/dist/translations/et.js +5 -0
- package/dist/translations/et.umd.js +11 -0
- package/dist/translations/eu.d.ts +8 -0
- package/dist/translations/eu.js +5 -0
- package/dist/translations/eu.umd.js +11 -0
- package/dist/translations/fa.d.ts +8 -0
- package/dist/translations/fa.js +5 -0
- package/dist/translations/fa.umd.js +11 -0
- package/dist/translations/fi.d.ts +8 -0
- package/dist/translations/fi.js +5 -0
- package/dist/translations/fi.umd.js +11 -0
- package/dist/translations/fr.d.ts +8 -0
- package/dist/translations/fr.js +5 -0
- package/dist/translations/fr.umd.js +11 -0
- package/dist/translations/gl.d.ts +8 -0
- package/dist/translations/gl.js +5 -0
- package/dist/translations/gl.umd.js +11 -0
- package/dist/translations/gu.d.ts +8 -0
- package/dist/translations/gu.js +5 -0
- package/dist/translations/gu.umd.js +11 -0
- package/dist/translations/he.d.ts +8 -0
- package/dist/translations/he.js +5 -0
- package/dist/translations/he.umd.js +11 -0
- package/dist/translations/hi.d.ts +8 -0
- package/dist/translations/hi.js +5 -0
- package/dist/translations/hi.umd.js +11 -0
- package/dist/translations/hr.d.ts +8 -0
- package/dist/translations/hr.js +5 -0
- package/dist/translations/hr.umd.js +11 -0
- package/dist/translations/hu.d.ts +8 -0
- package/dist/translations/hu.js +5 -0
- package/dist/translations/hu.umd.js +11 -0
- package/dist/translations/hy.d.ts +8 -0
- package/dist/translations/hy.js +5 -0
- package/dist/translations/hy.umd.js +11 -0
- package/dist/translations/id.d.ts +8 -0
- package/dist/translations/id.js +5 -0
- package/dist/translations/id.umd.js +11 -0
- package/dist/translations/it.d.ts +8 -0
- package/dist/translations/it.js +5 -0
- package/dist/translations/it.umd.js +11 -0
- package/dist/translations/ja.d.ts +8 -0
- package/dist/translations/ja.js +5 -0
- package/dist/translations/ja.umd.js +11 -0
- package/dist/translations/jv.d.ts +8 -0
- package/dist/translations/jv.js +5 -0
- package/dist/translations/jv.umd.js +11 -0
- package/dist/translations/km.d.ts +8 -0
- package/dist/translations/km.js +5 -0
- package/dist/translations/km.umd.js +11 -0
- package/dist/translations/kn.d.ts +8 -0
- package/dist/translations/kn.js +5 -0
- package/dist/translations/kn.umd.js +11 -0
- package/dist/translations/ko.d.ts +8 -0
- package/dist/translations/ko.js +5 -0
- package/dist/translations/ko.umd.js +11 -0
- package/dist/translations/ku.d.ts +8 -0
- package/dist/translations/ku.js +5 -0
- package/dist/translations/ku.umd.js +11 -0
- package/dist/translations/lt.d.ts +8 -0
- package/dist/translations/lt.js +5 -0
- package/dist/translations/lt.umd.js +11 -0
- package/dist/translations/lv.d.ts +8 -0
- package/dist/translations/lv.js +5 -0
- package/dist/translations/lv.umd.js +11 -0
- package/dist/translations/ms.d.ts +8 -0
- package/dist/translations/ms.js +5 -0
- package/dist/translations/ms.umd.js +11 -0
- package/dist/translations/nb.d.ts +8 -0
- package/dist/translations/nb.js +5 -0
- package/dist/translations/nb.umd.js +11 -0
- package/dist/translations/ne.d.ts +8 -0
- package/dist/translations/ne.js +5 -0
- package/dist/translations/ne.umd.js +11 -0
- package/dist/translations/nl.d.ts +8 -0
- package/dist/translations/nl.js +5 -0
- package/dist/translations/nl.umd.js +11 -0
- package/dist/translations/no.d.ts +8 -0
- package/dist/translations/no.js +5 -0
- package/dist/translations/no.umd.js +11 -0
- package/dist/translations/oc.d.ts +8 -0
- package/dist/translations/oc.js +5 -0
- package/dist/translations/oc.umd.js +11 -0
- package/dist/translations/pl.d.ts +8 -0
- package/dist/translations/pl.js +5 -0
- package/dist/translations/pl.umd.js +11 -0
- package/dist/translations/pt-br.d.ts +8 -0
- package/dist/translations/pt-br.js +5 -0
- package/dist/translations/pt-br.umd.js +11 -0
- package/dist/translations/pt.d.ts +8 -0
- package/dist/translations/pt.js +5 -0
- package/dist/translations/pt.umd.js +11 -0
- package/dist/translations/ro.d.ts +8 -0
- package/dist/translations/ro.js +5 -0
- package/dist/translations/ro.umd.js +11 -0
- package/dist/translations/ru.d.ts +8 -0
- package/dist/translations/ru.js +5 -0
- package/dist/translations/ru.umd.js +11 -0
- package/dist/translations/si.d.ts +8 -0
- package/dist/translations/si.js +5 -0
- package/dist/translations/si.umd.js +11 -0
- package/dist/translations/sk.d.ts +8 -0
- package/dist/translations/sk.js +5 -0
- package/dist/translations/sk.umd.js +11 -0
- package/dist/translations/sl.d.ts +8 -0
- package/dist/translations/sl.js +5 -0
- package/dist/translations/sl.umd.js +11 -0
- package/dist/translations/sq.d.ts +8 -0
- package/dist/translations/sq.js +5 -0
- package/dist/translations/sq.umd.js +11 -0
- package/dist/translations/sr-latn.d.ts +8 -0
- package/dist/translations/sr-latn.js +5 -0
- package/dist/translations/sr-latn.umd.js +11 -0
- package/dist/translations/sr.d.ts +8 -0
- package/dist/translations/sr.js +5 -0
- package/dist/translations/sr.umd.js +11 -0
- package/dist/translations/sv.d.ts +8 -0
- package/dist/translations/sv.js +5 -0
- package/dist/translations/sv.umd.js +11 -0
- package/dist/translations/th.d.ts +8 -0
- package/dist/translations/th.js +5 -0
- package/dist/translations/th.umd.js +11 -0
- package/dist/translations/ti.d.ts +8 -0
- package/dist/translations/ti.js +5 -0
- package/dist/translations/ti.umd.js +11 -0
- package/dist/translations/tk.d.ts +8 -0
- package/dist/translations/tk.js +5 -0
- package/dist/translations/tk.umd.js +11 -0
- package/dist/translations/tr.d.ts +8 -0
- package/dist/translations/tr.js +5 -0
- package/dist/translations/tr.umd.js +11 -0
- package/dist/translations/tt.d.ts +8 -0
- package/dist/translations/tt.js +5 -0
- package/dist/translations/tt.umd.js +11 -0
- package/dist/translations/ug.d.ts +8 -0
- package/dist/translations/ug.js +5 -0
- package/dist/translations/ug.umd.js +11 -0
- package/dist/translations/uk.d.ts +8 -0
- package/dist/translations/uk.js +5 -0
- package/dist/translations/uk.umd.js +11 -0
- package/dist/translations/ur.d.ts +8 -0
- package/dist/translations/ur.js +5 -0
- package/dist/translations/ur.umd.js +11 -0
- package/dist/translations/uz.d.ts +8 -0
- package/dist/translations/uz.js +5 -0
- package/dist/translations/uz.umd.js +11 -0
- package/dist/translations/vi.d.ts +8 -0
- package/dist/translations/vi.js +5 -0
- package/dist/translations/vi.umd.js +11 -0
- package/dist/translations/zh-cn.d.ts +8 -0
- package/dist/translations/zh-cn.js +5 -0
- package/dist/translations/zh-cn.umd.js +11 -0
- package/dist/translations/zh.d.ts +8 -0
- package/dist/translations/zh.js +5 -0
- package/dist/translations/zh.umd.js +11 -0
- package/dist/types/accessibility.d.ts +365 -0
- package/dist/types/augmentation.d.ts +14 -0
- package/dist/types/command.d.ts +193 -0
- package/dist/types/commandcollection.d.ts +87 -0
- package/dist/types/context.d.ts +241 -0
- package/dist/types/contextplugin.d.ts +65 -0
- package/dist/types/editingkeystrokehandler.d.ts +60 -0
- package/dist/types/editor/editor.d.ts +482 -0
- package/dist/types/editor/editorconfig.d.ts +936 -0
- package/dist/types/editor/utils/attachtoform.d.ts +19 -0
- package/dist/types/editor/utils/dataapimixin.d.ts +83 -0
- package/dist/types/editor/utils/elementapimixin.d.ts +39 -0
- package/dist/types/editor/utils/securesourceelement.d.ts +21 -0
- package/dist/types/index.d.ts +94 -0
- package/dist/types/multicommand.d.ts +70 -0
- package/dist/types/pendingactions.d.ts +121 -0
- package/dist/types/plugin.d.ts +278 -0
- package/dist/types/plugincollection.d.ts +121 -0
- package/dist/types/typings.d.ts +16 -0
- package/lang/translations/ti.po +126 -0
- package/package.json +4 -3
- package/src/index.d.ts +2 -1
- package/src/index.js +2 -0
- package/src/typings.d.ts +1 -0
- package/theme/icons/object-size-custom.svg +1 -0
|
@@ -0,0 +1,278 @@
|
|
|
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 type Editor from './editor/editor.js';
|
|
10
|
+
declare const Plugin_base: {
|
|
11
|
+
new (): import("@ckeditor/ckeditor5-utils").Observable;
|
|
12
|
+
prototype: import("@ckeditor/ckeditor5-utils").Observable;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* The base class for CKEditor plugin classes.
|
|
16
|
+
*/
|
|
17
|
+
export default class Plugin extends Plugin_base implements PluginInterface {
|
|
18
|
+
/**
|
|
19
|
+
* The editor instance.
|
|
20
|
+
*
|
|
21
|
+
* Note that most editors implement the {@link module:core/editor/editor~Editor#ui} property.
|
|
22
|
+
* However, editors with an external UI (i.e. Bootstrap-based) or a headless editor may not have this property or
|
|
23
|
+
* throw an error when accessing it.
|
|
24
|
+
*
|
|
25
|
+
* Because of above, to make plugins more universal, it is recommended to split features into:
|
|
26
|
+
* - The "editing" part that uses the {@link module:core/editor/editor~Editor} class without `ui` property.
|
|
27
|
+
* - The "UI" part that uses the {@link module:core/editor/editor~Editor} class and accesses `ui` property.
|
|
28
|
+
*/
|
|
29
|
+
readonly editor: Editor;
|
|
30
|
+
/**
|
|
31
|
+
* Flag indicating whether a plugin is enabled or disabled.
|
|
32
|
+
* A disabled plugin will not transform text.
|
|
33
|
+
*
|
|
34
|
+
* Plugin can be simply disabled like that:
|
|
35
|
+
*
|
|
36
|
+
* ```ts
|
|
37
|
+
* // Disable the plugin so that no toolbars are visible.
|
|
38
|
+
* editor.plugins.get( 'TextTransformation' ).isEnabled = false;
|
|
39
|
+
* ```
|
|
40
|
+
*
|
|
41
|
+
* You can also use {@link #forceDisabled} method.
|
|
42
|
+
*
|
|
43
|
+
* @observable
|
|
44
|
+
* @readonly
|
|
45
|
+
*/
|
|
46
|
+
isEnabled: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Holds identifiers for {@link #forceDisabled} mechanism.
|
|
49
|
+
*/
|
|
50
|
+
private _disableStack;
|
|
51
|
+
/**
|
|
52
|
+
* @inheritDoc
|
|
53
|
+
*/
|
|
54
|
+
constructor(editor: Editor);
|
|
55
|
+
/**
|
|
56
|
+
* Disables the plugin.
|
|
57
|
+
*
|
|
58
|
+
* Plugin may be disabled by multiple features or algorithms (at once). When disabling a plugin, unique id should be passed
|
|
59
|
+
* (e.g. feature name). The same identifier should be used when {@link #clearForceDisabled enabling back} the plugin.
|
|
60
|
+
* The plugin becomes enabled only after all features {@link #clearForceDisabled enabled it back}.
|
|
61
|
+
*
|
|
62
|
+
* Disabling and enabling a plugin:
|
|
63
|
+
*
|
|
64
|
+
* ```ts
|
|
65
|
+
* plugin.isEnabled; // -> true
|
|
66
|
+
* plugin.forceDisabled( 'MyFeature' );
|
|
67
|
+
* plugin.isEnabled; // -> false
|
|
68
|
+
* plugin.clearForceDisabled( 'MyFeature' );
|
|
69
|
+
* plugin.isEnabled; // -> true
|
|
70
|
+
* ```
|
|
71
|
+
*
|
|
72
|
+
* Plugin disabled by multiple features:
|
|
73
|
+
*
|
|
74
|
+
* ```ts
|
|
75
|
+
* plugin.forceDisabled( 'MyFeature' );
|
|
76
|
+
* plugin.forceDisabled( 'OtherFeature' );
|
|
77
|
+
* plugin.clearForceDisabled( 'MyFeature' );
|
|
78
|
+
* plugin.isEnabled; // -> false
|
|
79
|
+
* plugin.clearForceDisabled( 'OtherFeature' );
|
|
80
|
+
* plugin.isEnabled; // -> true
|
|
81
|
+
* ```
|
|
82
|
+
*
|
|
83
|
+
* Multiple disabling with the same identifier is redundant:
|
|
84
|
+
*
|
|
85
|
+
* ```ts
|
|
86
|
+
* plugin.forceDisabled( 'MyFeature' );
|
|
87
|
+
* plugin.forceDisabled( 'MyFeature' );
|
|
88
|
+
* plugin.clearForceDisabled( 'MyFeature' );
|
|
89
|
+
* plugin.isEnabled; // -> true
|
|
90
|
+
* ```
|
|
91
|
+
*
|
|
92
|
+
* **Note:** some plugins or algorithms may have more complex logic when it comes to enabling or disabling certain plugins,
|
|
93
|
+
* so the plugin might be still disabled after {@link #clearForceDisabled} was used.
|
|
94
|
+
*
|
|
95
|
+
* @param id Unique identifier for disabling. Use the same id when {@link #clearForceDisabled enabling back} the plugin.
|
|
96
|
+
*/
|
|
97
|
+
forceDisabled(id: string): void;
|
|
98
|
+
/**
|
|
99
|
+
* Clears forced disable previously set through {@link #forceDisabled}. See {@link #forceDisabled}.
|
|
100
|
+
*
|
|
101
|
+
* @param id Unique identifier, equal to the one passed in {@link #forceDisabled} call.
|
|
102
|
+
*/
|
|
103
|
+
clearForceDisabled(id: string): void;
|
|
104
|
+
/**
|
|
105
|
+
* @inheritDoc
|
|
106
|
+
*/
|
|
107
|
+
destroy(): void;
|
|
108
|
+
/**
|
|
109
|
+
* @inheritDoc
|
|
110
|
+
*/
|
|
111
|
+
static get isContextPlugin(): false;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* The base interface for CKEditor plugins.
|
|
115
|
+
*
|
|
116
|
+
* In its minimal form a plugin can be a simple function that accepts {@link module:core/editor/editor~Editor the editor}
|
|
117
|
+
* as a parameter:
|
|
118
|
+
*
|
|
119
|
+
* ```ts
|
|
120
|
+
* // A simple plugin that enables a data processor.
|
|
121
|
+
* function MyPlugin( editor ) {
|
|
122
|
+
* editor.data.processor = new MyDataProcessor();
|
|
123
|
+
* }
|
|
124
|
+
* ```
|
|
125
|
+
*
|
|
126
|
+
* In most cases however, you will want to inherit from the {@link ~Plugin} class which implements the
|
|
127
|
+
* {@link module:utils/observablemixin~Observable} and is, therefore, more convenient:
|
|
128
|
+
*
|
|
129
|
+
* ```ts
|
|
130
|
+
* class MyPlugin extends Plugin {
|
|
131
|
+
* init() {
|
|
132
|
+
* // `listenTo()` and `editor` are available thanks to `Plugin`.
|
|
133
|
+
* // By using `listenTo()` you will ensure that the listener is removed when
|
|
134
|
+
* // the plugin is destroyed.
|
|
135
|
+
* this.listenTo( this.editor.data, 'ready', () => {
|
|
136
|
+
* // Do something when the data is ready.
|
|
137
|
+
* } );
|
|
138
|
+
* }
|
|
139
|
+
* }
|
|
140
|
+
* ```
|
|
141
|
+
*
|
|
142
|
+
* The plugin class can have `pluginName` and `requires` static members. See {@link ~PluginStaticMembers} for more details.
|
|
143
|
+
*
|
|
144
|
+
* The plugin can also implement methods (e.g. {@link ~PluginInterface#init `init()`} or
|
|
145
|
+
* {@link ~PluginInterface#destroy `destroy()`}) which, when present, will be used to properly
|
|
146
|
+
* initialize and destroy the plugin.
|
|
147
|
+
*
|
|
148
|
+
* **Note:** When defined as a plain function, the plugin acts as a constructor and will be
|
|
149
|
+
* called in parallel with other plugins' {@link ~PluginConstructor constructors}.
|
|
150
|
+
* This means the code of that plugin will be executed **before** {@link ~PluginInterface#init `init()`} and
|
|
151
|
+
* {@link ~PluginInterface#afterInit `afterInit()`} methods of other plugins and, for instance,
|
|
152
|
+
* you cannot use it to extend other plugins' {@glink framework/architecture/editing-engine#schema schema}
|
|
153
|
+
* rules as they are defined later on during the `init()` stage.
|
|
154
|
+
*/
|
|
155
|
+
export interface PluginInterface {
|
|
156
|
+
/**
|
|
157
|
+
* The second stage (after plugin constructor) of the plugin initialization.
|
|
158
|
+
* Unlike the plugin constructor this method can be asynchronous.
|
|
159
|
+
*
|
|
160
|
+
* A plugin's `init()` method is called after its {@link ~PluginStaticMembers#requires dependencies} are initialized,
|
|
161
|
+
* so in the same order as the constructors of these plugins.
|
|
162
|
+
*
|
|
163
|
+
* **Note:** This method is optional. A plugin instance does not need to have it defined.
|
|
164
|
+
*/
|
|
165
|
+
init?(): Promise<unknown> | null | undefined | void;
|
|
166
|
+
/**
|
|
167
|
+
* The third (and last) stage of the plugin initialization. See also {@link ~PluginConstructor} and {@link ~PluginInterface#init}.
|
|
168
|
+
*
|
|
169
|
+
* **Note:** This method is optional. A plugin instance does not need to have it defined.
|
|
170
|
+
*/
|
|
171
|
+
afterInit?(): Promise<unknown> | null | undefined | void;
|
|
172
|
+
/**
|
|
173
|
+
* Destroys the plugin.
|
|
174
|
+
*
|
|
175
|
+
* **Note:** This method is optional. A plugin instance does not need to have it defined.
|
|
176
|
+
*/
|
|
177
|
+
destroy?(): Promise<unknown> | null | undefined | void;
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* Creates a new plugin instance. This is the first step of the plugin initialization.
|
|
181
|
+
* See also {@link ~PluginInterface#init} and {@link ~PluginInterface#afterInit}.
|
|
182
|
+
*
|
|
183
|
+
* The plugin static properties should conform to {@link ~PluginStaticMembers `PluginStaticMembers` interface}.
|
|
184
|
+
*
|
|
185
|
+
* A plugin is always instantiated after its {@link ~PluginStaticMembers#requires dependencies} and the
|
|
186
|
+
* {@link ~PluginInterface#init} and {@link ~PluginInterface#afterInit} methods are called in the same order.
|
|
187
|
+
*
|
|
188
|
+
* Usually, you will want to put your plugin's initialization code in the {@link ~PluginInterface#init} method.
|
|
189
|
+
* The constructor can be understood as "before init" and used in special cases, just like
|
|
190
|
+
* {@link ~PluginInterface#afterInit} serves the special "after init" scenarios (e.g.the code which depends on other
|
|
191
|
+
* plugins, but which does not {@link ~PluginStaticMembers#requires explicitly require} them).
|
|
192
|
+
*/
|
|
193
|
+
export type PluginConstructor<TContext = Editor> = (PluginClassConstructor<TContext> | PluginFunctionConstructor<TContext>) & PluginStaticMembers<TContext>;
|
|
194
|
+
/**
|
|
195
|
+
* In most cases, you will want to inherit from the {@link ~Plugin} class which implements the
|
|
196
|
+
* {@link module:utils/observablemixin~Observable} and is, therefore, more convenient:
|
|
197
|
+
*
|
|
198
|
+
* ```ts
|
|
199
|
+
* class MyPlugin extends Plugin {
|
|
200
|
+
* init() {
|
|
201
|
+
* // `listenTo()` and `editor` are available thanks to `Plugin`.
|
|
202
|
+
* // By using `listenTo()` you will ensure that the listener is removed when
|
|
203
|
+
* // the plugin is destroyed.
|
|
204
|
+
* this.listenTo( this.editor.data, 'ready', () => {
|
|
205
|
+
* // Do something when the data is ready.
|
|
206
|
+
* } );
|
|
207
|
+
* }
|
|
208
|
+
* }
|
|
209
|
+
* ```
|
|
210
|
+
*/
|
|
211
|
+
export type PluginClassConstructor<TContext = Editor> = new (editor: TContext) => PluginInterface;
|
|
212
|
+
/**
|
|
213
|
+
* In its minimal form a plugin can be a simple function that accepts {@link module:core/editor/editor~Editor the editor}
|
|
214
|
+
* as a parameter:
|
|
215
|
+
*
|
|
216
|
+
* ```ts
|
|
217
|
+
* // A simple plugin that enables a data processor.
|
|
218
|
+
* function MyPlugin( editor ) {
|
|
219
|
+
* editor.data.processor = new MyDataProcessor();
|
|
220
|
+
* }
|
|
221
|
+
* ```
|
|
222
|
+
*/
|
|
223
|
+
export type PluginFunctionConstructor<TContext = Editor> = (editor: TContext) => void;
|
|
224
|
+
/**
|
|
225
|
+
* Static properties of a plugin.
|
|
226
|
+
*/
|
|
227
|
+
export interface PluginStaticMembers<TContext = Editor> {
|
|
228
|
+
/**
|
|
229
|
+
* An array of plugins required by this plugin.
|
|
230
|
+
*
|
|
231
|
+
* To keep the plugin class definition tight it is recommended to define this property as a static getter:
|
|
232
|
+
*
|
|
233
|
+
* ```ts
|
|
234
|
+
* import Image from './image.js';
|
|
235
|
+
*
|
|
236
|
+
* export default class ImageCaption {
|
|
237
|
+
* static get requires() {
|
|
238
|
+
* return [ Image ];
|
|
239
|
+
* }
|
|
240
|
+
* }
|
|
241
|
+
* ```
|
|
242
|
+
*/
|
|
243
|
+
readonly requires?: PluginDependencies<TContext>;
|
|
244
|
+
/**
|
|
245
|
+
* An optional name of the plugin. If set, the plugin will be available in
|
|
246
|
+
* {@link module:core/plugincollection~PluginCollection#get} by its
|
|
247
|
+
* name and its constructor. If not, then only by its constructor.
|
|
248
|
+
*
|
|
249
|
+
* The name should reflect the constructor name.
|
|
250
|
+
*
|
|
251
|
+
* To keep the plugin class definition tight, it is recommended to define this property as a static getter:
|
|
252
|
+
*
|
|
253
|
+
* ```ts
|
|
254
|
+
* export default class ImageCaption {
|
|
255
|
+
* static get pluginName() {
|
|
256
|
+
* return 'ImageCaption';
|
|
257
|
+
* }
|
|
258
|
+
* }
|
|
259
|
+
* ```
|
|
260
|
+
*
|
|
261
|
+
* Note: The native `Function.name` property could not be used to keep the plugin name because
|
|
262
|
+
* it will be mangled during code minification.
|
|
263
|
+
*
|
|
264
|
+
* Naming a plugin is necessary to enable removing it through the
|
|
265
|
+
* {@link module:core/editor/editorconfig~EditorConfig#removePlugins `config.removePlugins`} option.
|
|
266
|
+
*/
|
|
267
|
+
readonly pluginName?: string;
|
|
268
|
+
/**
|
|
269
|
+
* A flag which defines if a plugin is allowed or not allowed to be used directly by a {@link module:core/context~Context}.
|
|
270
|
+
*/
|
|
271
|
+
readonly isContextPlugin?: boolean;
|
|
272
|
+
}
|
|
273
|
+
export type PluginDependencies<TContext = Editor> = ReadonlyArray<PluginConstructor<TContext> | string>;
|
|
274
|
+
/**
|
|
275
|
+
* An array of loaded plugins.
|
|
276
|
+
*/
|
|
277
|
+
export type LoadedPlugins = Array<PluginInterface>;
|
|
278
|
+
export {};
|
|
@@ -0,0 +1,121 @@
|
|
|
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 type { LoadedPlugins, PluginClassConstructor, PluginConstructor, PluginInterface } from './plugin.js';
|
|
10
|
+
declare const PluginCollection_base: {
|
|
11
|
+
new (): import("@ckeditor/ckeditor5-utils").Emitter;
|
|
12
|
+
prototype: import("@ckeditor/ckeditor5-utils").Emitter;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Manages a list of CKEditor plugins, including loading, resolving dependencies and initialization.
|
|
16
|
+
*/
|
|
17
|
+
export default class PluginCollection<TContext extends object> extends PluginCollection_base implements Iterable<PluginEntry<TContext>> {
|
|
18
|
+
private _context;
|
|
19
|
+
private _plugins;
|
|
20
|
+
/**
|
|
21
|
+
* A map of plugin constructors that can be retrieved by their names.
|
|
22
|
+
*/
|
|
23
|
+
private _availablePlugins;
|
|
24
|
+
/**
|
|
25
|
+
* Map of {@link module:core/contextplugin~ContextPlugin context plugins} which can be retrieved by their constructors or instances.
|
|
26
|
+
*/
|
|
27
|
+
private _contextPlugins;
|
|
28
|
+
/**
|
|
29
|
+
* Creates an instance of the plugin collection class.
|
|
30
|
+
* Allows loading and initializing plugins and their dependencies.
|
|
31
|
+
* Allows providing a list of already loaded plugins. These plugins will not be destroyed along with this collection.
|
|
32
|
+
*
|
|
33
|
+
* @param availablePlugins Plugins (constructors) which the collection will be able to use
|
|
34
|
+
* when {@link module:core/plugincollection~PluginCollection#init} is used with the plugin names (strings, instead of constructors).
|
|
35
|
+
* Usually, the editor will pass its built-in plugins to the collection so they can later be
|
|
36
|
+
* used in `config.plugins` or `config.removePlugins` by names.
|
|
37
|
+
* @param contextPlugins A list of already initialized plugins represented by a `[ PluginConstructor, pluginInstance ]` pair.
|
|
38
|
+
*/
|
|
39
|
+
constructor(context: TContext, availablePlugins?: Iterable<PluginConstructor<TContext>>, contextPlugins?: Iterable<PluginEntry<TContext>>);
|
|
40
|
+
/**
|
|
41
|
+
* Iterable interface.
|
|
42
|
+
*
|
|
43
|
+
* Returns `[ PluginConstructor, pluginInstance ]` pairs.
|
|
44
|
+
*/
|
|
45
|
+
[Symbol.iterator](): IterableIterator<PluginEntry<TContext>>;
|
|
46
|
+
get<TConstructor extends PluginClassConstructor<TContext>>(key: TConstructor): InstanceType<TConstructor>;
|
|
47
|
+
get<TName extends string>(key: TName): PluginsMap[TName];
|
|
48
|
+
/**
|
|
49
|
+
* Checks if a plugin is loaded.
|
|
50
|
+
*
|
|
51
|
+
* ```ts
|
|
52
|
+
* // Check if the 'Clipboard' plugin was loaded.
|
|
53
|
+
* if ( editor.plugins.has( 'ClipboardPipeline' ) ) {
|
|
54
|
+
* // Now use the clipboard plugin instance:
|
|
55
|
+
* const clipboard = editor.plugins.get( 'ClipboardPipeline' );
|
|
56
|
+
*
|
|
57
|
+
* // ...
|
|
58
|
+
* }
|
|
59
|
+
* ```
|
|
60
|
+
*
|
|
61
|
+
* @param key The plugin constructor or {@link module:core/plugin~PluginStaticMembers#pluginName name}.
|
|
62
|
+
*/
|
|
63
|
+
has(key: PluginConstructor<TContext> | string): boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Initializes a set of plugins and adds them to the collection.
|
|
66
|
+
*
|
|
67
|
+
* @param plugins An array of {@link module:core/plugin~PluginInterface plugin constructors}
|
|
68
|
+
* or {@link module:core/plugin~PluginStaticMembers#pluginName plugin names}.
|
|
69
|
+
* @param pluginsToRemove Names of the plugins or plugin constructors
|
|
70
|
+
* that should not be loaded (despite being specified in the `plugins` array).
|
|
71
|
+
* @param pluginsSubstitutions An array of {@link module:core/plugin~PluginInterface plugin constructors}
|
|
72
|
+
* that will be used to replace plugins of the same names that were passed in `plugins` or that are in their dependency tree.
|
|
73
|
+
* A useful option for replacing built-in plugins while creating tests (for mocking their APIs). Plugins that will be replaced
|
|
74
|
+
* must follow these rules:
|
|
75
|
+
* * The new plugin must be a class.
|
|
76
|
+
* * The new plugin must be named.
|
|
77
|
+
* * Both plugins must not depend on other plugins.
|
|
78
|
+
* @returns A promise which gets resolved once all plugins are loaded and available in the collection.
|
|
79
|
+
*/
|
|
80
|
+
init(plugins: ReadonlyArray<PluginConstructor<TContext> | string>, pluginsToRemove?: ReadonlyArray<PluginConstructor<TContext> | string>, pluginsSubstitutions?: ReadonlyArray<PluginConstructor<TContext>>): Promise<LoadedPlugins>;
|
|
81
|
+
/**
|
|
82
|
+
* Destroys all loaded plugins.
|
|
83
|
+
*/
|
|
84
|
+
destroy(): Promise<unknown>;
|
|
85
|
+
/**
|
|
86
|
+
* Adds the plugin to the collection. Exposed mainly for testing purposes.
|
|
87
|
+
*
|
|
88
|
+
* @param PluginConstructor The plugin constructor.
|
|
89
|
+
* @param plugin The instance of the plugin.
|
|
90
|
+
*/
|
|
91
|
+
private _add;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* A `[ PluginConstructor, pluginInstance ]` pair.
|
|
95
|
+
*/
|
|
96
|
+
export type PluginEntry<TContext> = [PluginConstructor<TContext>, PluginInterface];
|
|
97
|
+
/**
|
|
98
|
+
* Helper type that maps plugin names to their types.
|
|
99
|
+
* It is meant to be extended with module augmentation.
|
|
100
|
+
*
|
|
101
|
+
* ```ts
|
|
102
|
+
* class MyPlugin extends Plugin {
|
|
103
|
+
* public static pluginName() {
|
|
104
|
+
* return 'MyPlugin' as const;
|
|
105
|
+
* }
|
|
106
|
+
* }
|
|
107
|
+
*
|
|
108
|
+
* declare module '@ckeditor/ckeditor5-core' {
|
|
109
|
+
* interface PluginsMap {
|
|
110
|
+
* [ MyPlugin.pluginName ]: MyPlugin;
|
|
111
|
+
* }
|
|
112
|
+
* }
|
|
113
|
+
*
|
|
114
|
+
* // Returns `MyPlugin`.
|
|
115
|
+
* const myPlugin = editor.plugins.get( 'MyPlugin' );
|
|
116
|
+
* ```
|
|
117
|
+
*/
|
|
118
|
+
export interface PluginsMap {
|
|
119
|
+
[name: string]: PluginInterface;
|
|
120
|
+
}
|
|
121
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
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 core/typings
|
|
11
|
+
*/
|
|
12
|
+
export type PartialBy<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
|
|
13
|
+
export type NonEmptyArray<A> = Array<A> & {
|
|
14
|
+
0: A;
|
|
15
|
+
};
|
|
16
|
+
export type HexColor<S extends string = string> = `#${S}`;
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
# Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
|
+
#
|
|
3
|
+
# !!! IMPORTANT !!!
|
|
4
|
+
#
|
|
5
|
+
# Before you edit this file, please keep in mind that contributing to the project
|
|
6
|
+
# translations is possible ONLY via the Transifex online service.
|
|
7
|
+
#
|
|
8
|
+
# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
|
|
9
|
+
#
|
|
10
|
+
# To learn more, check out the official contributor's guide:
|
|
11
|
+
# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
|
|
12
|
+
#
|
|
13
|
+
msgid ""
|
|
14
|
+
msgstr ""
|
|
15
|
+
"Language-Team: Tigrinya (https://app.transifex.com/ckeditor/teams/11143/ti/)\n"
|
|
16
|
+
"Language: ti\n"
|
|
17
|
+
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
|
18
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
|
19
|
+
|
|
20
|
+
msgctxt "Label for the Cancel button."
|
|
21
|
+
msgid "Cancel"
|
|
22
|
+
msgstr "ንጸግ"
|
|
23
|
+
|
|
24
|
+
msgctxt "Label for the Clear button."
|
|
25
|
+
msgid "Clear"
|
|
26
|
+
msgstr "ደምስስ"
|
|
27
|
+
|
|
28
|
+
msgctxt "The label used by a button next to the color palette in the color picker that removes the color (resets it to an empty value, example usages in font color or table properties)."
|
|
29
|
+
msgid "Remove color"
|
|
30
|
+
msgstr "ሕብሪ ኣወግድ"
|
|
31
|
+
|
|
32
|
+
msgctxt "The label used by a button next to the color palette in the color picker that restores the default value if the default table properties are specified."
|
|
33
|
+
msgid "Restore default"
|
|
34
|
+
msgstr ""
|
|
35
|
+
|
|
36
|
+
msgctxt "Label for the Save button."
|
|
37
|
+
msgid "Save"
|
|
38
|
+
msgstr "ጠቁብ"
|
|
39
|
+
|
|
40
|
+
msgctxt "Label of a toolbar button which reveals more toolbar items."
|
|
41
|
+
msgid "Show more items"
|
|
42
|
+
msgstr ""
|
|
43
|
+
|
|
44
|
+
msgctxt "Label for an ‘X of Y’ status of a typical next/previous navigation. For instance, ‘Page 5 of 20’ or 'Search result 5 of 20'."
|
|
45
|
+
msgid "%0 of %1"
|
|
46
|
+
msgstr ""
|
|
47
|
+
|
|
48
|
+
msgctxt "A generic error message displayed on upload failure. The file name is concatenated to this text."
|
|
49
|
+
msgid "Cannot upload file:"
|
|
50
|
+
msgstr "ፋይል ምድያብ ኣይተኸኣለን"
|
|
51
|
+
|
|
52
|
+
msgctxt "Accessible label of the specific editing area of the editor acting as a root of the entire application."
|
|
53
|
+
msgid "Rich Text Editor. Editing area: %0"
|
|
54
|
+
msgstr ""
|
|
55
|
+
|
|
56
|
+
msgctxt "The label for the insert image with the file manager toolbar button with visible label in insert image dropdown."
|
|
57
|
+
msgid "Insert with file manager"
|
|
58
|
+
msgstr ""
|
|
59
|
+
|
|
60
|
+
msgctxt "The label for the replace image with the file manager toolbar button with visible label in insert image dropdown."
|
|
61
|
+
msgid "Replace with file manager"
|
|
62
|
+
msgstr "ፋይል ማናጀር ብምጥቃም ተክእ"
|
|
63
|
+
|
|
64
|
+
msgctxt "The label for the insert image with the file manager toolbar button."
|
|
65
|
+
msgid "Insert image with file manager"
|
|
66
|
+
msgstr ""
|
|
67
|
+
|
|
68
|
+
msgctxt "The label for the replace image with the file manager toolbar button."
|
|
69
|
+
msgid "Replace image with file manager"
|
|
70
|
+
msgstr ""
|
|
71
|
+
|
|
72
|
+
msgctxt "The button label for the object (e.g. image, table) toolbar for hiding the attached caption."
|
|
73
|
+
msgid "Toggle caption off"
|
|
74
|
+
msgstr ""
|
|
75
|
+
|
|
76
|
+
msgctxt "The button label for the object (e.g. image, table) toolbar for showing the attached caption."
|
|
77
|
+
msgid "Toggle caption on"
|
|
78
|
+
msgstr ""
|
|
79
|
+
|
|
80
|
+
msgctxt "Accessibility help dialog category header text for keystrokes related to content creation."
|
|
81
|
+
msgid "Content editing keystrokes"
|
|
82
|
+
msgstr ""
|
|
83
|
+
|
|
84
|
+
msgctxt "Accessibility help dialog text further explaining the purpose of the \"Content editing keystrokes\" category."
|
|
85
|
+
msgid "These keyboard shortcuts allow for quick access to content editing features."
|
|
86
|
+
msgstr ""
|
|
87
|
+
|
|
88
|
+
msgctxt "Accessibility help dialog category header text for keystrokes related to navigation in the user interface."
|
|
89
|
+
msgid "User interface and content navigation keystrokes"
|
|
90
|
+
msgstr ""
|
|
91
|
+
|
|
92
|
+
msgctxt "Accessibility help dialog text further explaining the purpose of the \"User interface and content navigation keystrokes\" category."
|
|
93
|
+
msgid "Use the following keystrokes for more efficient navigation in the CKEditor 5 user interface."
|
|
94
|
+
msgstr ""
|
|
95
|
+
|
|
96
|
+
msgctxt "Keystroke description for assistive technologies: keystroke for closing contextual balloons, dropdowns, and dialogs."
|
|
97
|
+
msgid "Close contextual balloons, dropdowns, and dialogs"
|
|
98
|
+
msgstr ""
|
|
99
|
+
|
|
100
|
+
msgctxt "Keystroke description for assistive technologies: keystroke for opening the accessibility help dialog."
|
|
101
|
+
msgid "Open the accessibility help dialog"
|
|
102
|
+
msgstr ""
|
|
103
|
+
|
|
104
|
+
msgctxt "Keystroke description for assistive technologies: keystroke for moving between fields."
|
|
105
|
+
msgid "Move focus between form fields (inputs, buttons, etc.)"
|
|
106
|
+
msgstr ""
|
|
107
|
+
|
|
108
|
+
msgctxt "Keystroke description for assistive technologies: keystroke for moving focus to the menu bar."
|
|
109
|
+
msgid "Move focus to the menu bar, navigate between menu bars"
|
|
110
|
+
msgstr ""
|
|
111
|
+
|
|
112
|
+
msgctxt "Keystroke description for assistive technologies: keystroke for moving focus to the toolbar."
|
|
113
|
+
msgid "Move focus to the toolbar, navigate between toolbars"
|
|
114
|
+
msgstr ""
|
|
115
|
+
|
|
116
|
+
msgctxt "Keystroke description for assistive technologies: keystroke for navigating through the toolbar."
|
|
117
|
+
msgid "Navigate through the toolbar or menu bar"
|
|
118
|
+
msgstr ""
|
|
119
|
+
|
|
120
|
+
msgctxt "Keystroke description for assistive technologies: keystroke for executing currently focused button."
|
|
121
|
+
msgid "Execute the currently focused button. Executing buttons that interact with the editor content moves the focus back to the content."
|
|
122
|
+
msgstr ""
|
|
123
|
+
|
|
124
|
+
msgctxt "Label of the button confirming the changes done in the current interface."
|
|
125
|
+
msgid "Accept"
|
|
126
|
+
msgstr ""
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-core",
|
|
3
|
-
"version": "41.
|
|
3
|
+
"version": "41.4.0",
|
|
4
4
|
"description": "The core architecture of CKEditor 5 – the best browser-based rich text editor.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"wysiwyg",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"type": "module",
|
|
25
25
|
"main": "src/index.js",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@ckeditor/ckeditor5-engine": "41.
|
|
28
|
-
"@ckeditor/ckeditor5-utils": "41.
|
|
27
|
+
"@ckeditor/ckeditor5-engine": "41.4.0",
|
|
28
|
+
"@ckeditor/ckeditor5-utils": "41.4.0",
|
|
29
29
|
"lodash-es": "4.17.21"
|
|
30
30
|
},
|
|
31
31
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
"directory": "packages/ckeditor5-core"
|
|
39
39
|
},
|
|
40
40
|
"files": [
|
|
41
|
+
"dist",
|
|
41
42
|
"lang",
|
|
42
43
|
"src/**/*.js",
|
|
43
44
|
"src/**/*.d.ts",
|
package/src/index.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export type { PluginsMap, default as PluginCollection } from './plugincollection
|
|
|
13
13
|
export { default as Context, type ContextConfig } from './context.js';
|
|
14
14
|
export { default as ContextPlugin, type ContextPluginDependencies } from './contextplugin.js';
|
|
15
15
|
export { type EditingKeystrokeCallback } from './editingkeystrokehandler.js';
|
|
16
|
-
export type { PartialBy, NonEmptyArray } from './typings.js';
|
|
16
|
+
export type { PartialBy, NonEmptyArray, HexColor } from './typings.js';
|
|
17
17
|
export { default as Editor, type EditorReadyEvent, type EditorDestroyEvent } from './editor/editor.js';
|
|
18
18
|
export type { EditorConfig, LanguageConfig, ToolbarConfig, ToolbarConfigItem, UiConfig } from './editor/editorconfig.js';
|
|
19
19
|
export { default as attachToForm } from './editor/utils/attachtoform.js';
|
|
@@ -58,6 +58,7 @@ export declare const icons: {
|
|
|
58
58
|
objectInline: string;
|
|
59
59
|
objectBlockLeft: string;
|
|
60
60
|
objectBlockRight: string;
|
|
61
|
+
objectSizeCustom: string;
|
|
61
62
|
objectSizeFull: string;
|
|
62
63
|
objectSizeLarge: string;
|
|
63
64
|
objectSizeSmall: string;
|
package/src/index.js
CHANGED
|
@@ -47,6 +47,7 @@ import objectInline from './../theme/icons/object-inline.svg';
|
|
|
47
47
|
import objectLeft from './../theme/icons/object-inline-left.svg';
|
|
48
48
|
import objectRight from './../theme/icons/object-inline-right.svg';
|
|
49
49
|
import objectSizeFull from './../theme/icons/object-size-full.svg';
|
|
50
|
+
import objectSizeCustom from './../theme/icons/object-size-custom.svg';
|
|
50
51
|
import objectSizeLarge from './../theme/icons/object-size-large.svg';
|
|
51
52
|
import objectSizeSmall from './../theme/icons/object-size-small.svg';
|
|
52
53
|
import objectSizeMedium from './../theme/icons/object-size-medium.svg';
|
|
@@ -114,6 +115,7 @@ export const icons = {
|
|
|
114
115
|
objectInline,
|
|
115
116
|
objectBlockLeft,
|
|
116
117
|
objectBlockRight,
|
|
118
|
+
objectSizeCustom,
|
|
117
119
|
objectSizeFull,
|
|
118
120
|
objectSizeLarge,
|
|
119
121
|
objectSizeSmall,
|
package/src/typings.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:v="https://vecta.io/nano" viewBox="0 0 20 20"><path d="M.95 1.43a.95.95 0 0 0-.95.95v3.1a.95.95 0 0 0 .95.95h.75v6.3H.95a.95.95 0 0 0-.95.95v3.1a.95.95 0 0 0 .95.95h3.1a.95.95 0 0 0 .95-.95v-.65h1.932l1.539-1.5H5v-.95a.95.95 0 0 0-.95-.95H3.2v-6.3h.85A.95.95 0 0 0 5 5.48v-.55h10v.55a.95.95 0 0 0 .95.95h3.1a.95.95 0 0 0 .95-.95v-3.1a.95.95 0 0 0-.95-.95h-3.1a.95.95 0 0 0-.95.95v1.05H5V2.38a.95.95 0 0 0-.95-.95H.95zm.55 3.5v-2h2v2h-2zm0 9.3v2h2v-2h-2zm15-11.3v2h2v-2h-2z"/><path d="M8.139 20.004v-2.388l7.045-7.048 2.391 2.391-7.046 7.046h-2.39zm11.421-9.101a.64.64 0 0 1-.138.206l-1.165 1.168-2.391-2.391 1.167-1.163a.63.63 0 0 1 .206-.138.635.635 0 0 1 .243-.049.63.63 0 0 1 .449.187l1.491 1.488c.059.059.108.129.138.206s.049.16.049.243a.6.6 0 0 1-.049.243z"/></svg>
|