@ckeditor/ckeditor5-restricted-editing 44.3.0-alpha.7 → 45.0.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.
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2025, 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
+
6
+ import type { Translations } from '@ckeditor/ckeditor5-utils';
7
+ declare const translations: Translations;
8
+ export default translations;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2025, 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
+ export default {"be":{"dictionary":{"Disable editing":"Адключыць рэдагаванне","Enable editing":"Уключыць рэдагаванне","Previous editable region":"Папярэдняя вобласць для рэдагавання","Next editable region":"Наступная вобласць для рэдагавання","Navigate editable regions":"Навігацыя па рэдагавальных абласцях"},getPluralForm(n){return (n % 10 == 1 && n % 100 != 11 ? 0 : n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2);}}}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2025, 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
+
6
+ ( e => {
7
+ const { [ 'be' ]: { dictionary, getPluralForm } } = {"be":{"dictionary":{"Disable editing":"Адключыць рэдагаванне","Enable editing":"Уключыць рэдагаванне","Previous editable region":"Папярэдняя вобласць для рэдагавання","Next editable region":"Наступная вобласць для рэдагавання","Navigate editable regions":"Навігацыя па рэдагавальных абласцях"},getPluralForm(n){return (n % 10 == 1 && n % 100 != 11 ? 0 : n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2);}}};
8
+ e[ 'be' ] ||= { dictionary: {}, getPluralForm: null };
9
+ e[ 'be' ].dictionary = Object.assign( e[ 'be' ].dictionary, dictionary );
10
+ e[ 'be' ].getPluralForm = getPluralForm;
11
+ } )( window.CKEDITOR_TRANSLATIONS ||= {} );
@@ -0,0 +1,32 @@
1
+ # Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ #
3
+ # Want to contribute to this file? Submit your changes via a GitHub Pull Request.
4
+ #
5
+ # Check out the official contributor's guide:
6
+ # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
7
+ #
8
+ msgid ""
9
+ msgstr ""
10
+ "Language: be\n"
11
+ "Plural-Forms: nplurals=3; plural=(n % 10 == 1 && n % 100 != 11 ? 0 : n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2);\n"
12
+ "Content-Type: text/plain; charset=UTF-8\n"
13
+
14
+ msgctxt "A label of the button indicating that using this button will make a selected text non–editable."
15
+ msgid "Disable editing"
16
+ msgstr "Адключыць рэдагаванне"
17
+
18
+ msgctxt "A label of the button indicating that using this button will make a selected text editable."
19
+ msgid "Enable editing"
20
+ msgstr "Уключыць рэдагаванне"
21
+
22
+ msgctxt "A label of the button that moves selection to the previous editable region in the content."
23
+ msgid "Previous editable region"
24
+ msgstr "Папярэдняя вобласць для рэдагавання"
25
+
26
+ msgctxt "A label of the button that moves selection to the next editable region in the content."
27
+ msgid "Next editable region"
28
+ msgstr "Наступная вобласць для рэдагавання"
29
+
30
+ msgctxt "A label of the dropdown that provides controls to navigate editable regions in the content."
31
+ msgid "Navigate editable regions"
32
+ msgstr "Навігацыя па рэдагавальных абласцях"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-restricted-editing",
3
- "version": "44.3.0-alpha.7",
3
+ "version": "45.0.0-alpha.0",
4
4
  "description": "Restricted editing feature for CKEditor 5 editors.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -12,11 +12,12 @@
12
12
  "type": "module",
13
13
  "main": "src/index.js",
14
14
  "dependencies": {
15
- "@ckeditor/ckeditor5-core": "44.3.0-alpha.7",
16
- "@ckeditor/ckeditor5-engine": "44.3.0-alpha.7",
17
- "@ckeditor/ckeditor5-ui": "44.3.0-alpha.7",
18
- "@ckeditor/ckeditor5-utils": "44.3.0-alpha.7",
19
- "ckeditor5": "44.3.0-alpha.7"
15
+ "@ckeditor/ckeditor5-core": "45.0.0-alpha.0",
16
+ "@ckeditor/ckeditor5-engine": "45.0.0-alpha.0",
17
+ "@ckeditor/ckeditor5-icons": "45.0.0-alpha.0",
18
+ "@ckeditor/ckeditor5-ui": "45.0.0-alpha.0",
19
+ "@ckeditor/ckeditor5-utils": "45.0.0-alpha.0",
20
+ "ckeditor5": "45.0.0-alpha.0"
20
21
  },
21
22
  "author": "CKSource (http://cksource.com/)",
22
23
  "license": "SEE LICENSE IN LICENSE.md",
@@ -18,6 +18,17 @@ const COMMAND_FORCE_DISABLE_ID = 'RestrictedEditingMode';
18
18
  * * It also enables highlighting exception markers that are selected.
19
19
  */
20
20
  export default class RestrictedEditingModeEditing extends Plugin {
21
+ /**
22
+ * Command names that are enabled outside the non-restricted regions.
23
+ */
24
+ _alwaysEnabled;
25
+ /**
26
+ * Commands allowed in non-restricted areas.
27
+ *
28
+ * Commands always enabled combine typing feature commands: `'input'`, `'insertText'`, `'delete'`, and `'deleteForward'` with
29
+ * commands defined in the feature configuration.
30
+ */
31
+ _allowedInException;
21
32
  /**
22
33
  * @inheritDoc
23
34
  */
@@ -7,6 +7,10 @@ import { Command } from 'ckeditor5/src/core.js';
7
7
  * The command that allows navigation across the exceptions in the edited document.
8
8
  */
9
9
  export default class RestrictedEditingModeNavigationCommand extends Command {
10
+ /**
11
+ * The direction of the command.
12
+ */
13
+ _direction;
10
14
  /**
11
15
  * Creates an instance of the command.
12
16
  *
@@ -6,9 +6,9 @@
6
6
  * @module restricted-editing/restrictededitingmodeui
7
7
  */
8
8
  import { Plugin } from 'ckeditor5/src/core.js';
9
+ import { IconContentLock } from 'ckeditor5/src/icons.js';
9
10
  import { ViewModel, createDropdown, addListToDropdown, MenuBarMenuListItemButtonView, MenuBarMenuView, MenuBarMenuListView, MenuBarMenuListItemView } from 'ckeditor5/src/ui.js';
10
11
  import { Collection } from 'ckeditor5/src/utils.js';
11
- import lockIcon from '../theme/icons/contentlock.svg';
12
12
  /**
13
13
  * The restricted editing mode UI feature.
14
14
  *
@@ -45,7 +45,7 @@ export default class RestrictedEditingModeUI extends Plugin {
45
45
  });
46
46
  dropdownView.buttonView.set({
47
47
  label: t('Navigate editable regions'),
48
- icon: lockIcon,
48
+ icon: IconContentLock,
49
49
  tooltip: true,
50
50
  isEnabled: true,
51
51
  isOn: false
@@ -66,7 +66,7 @@ export default class RestrictedEditingModeUI extends Plugin {
66
66
  });
67
67
  menuView.buttonView.set({
68
68
  label: t('Navigate editable regions'),
69
- icon: lockIcon
69
+ icon: IconContentLock
70
70
  });
71
71
  menuView.panelView.children.add(listView);
72
72
  this._getButtonDefinitions().forEach(({ commandName, label, keystroke }) => {
@@ -6,8 +6,8 @@
6
6
  * @module restricted-editing/standardeditingmodeui
7
7
  */
8
8
  import { Plugin } from 'ckeditor5/src/core.js';
9
+ import { IconContentUnlock } from 'ckeditor5/src/icons.js';
9
10
  import { ButtonView, MenuBarMenuListItemButtonView } from 'ckeditor5/src/ui.js';
10
- import unlockIcon from '../theme/icons/contentunlock.svg';
11
11
  /**
12
12
  * The standard editing mode UI feature.
13
13
  *
@@ -52,7 +52,7 @@ export default class StandardEditingModeUI extends Plugin {
52
52
  const command = this.editor.commands.get('restrictedEditingException');
53
53
  const view = new ButtonClass(locale);
54
54
  const t = locale.t;
55
- view.icon = unlockIcon;
55
+ view.icon = IconContentUnlock;
56
56
  view.bind('isOn', 'isEnabled').to(command, 'value', 'isEnabled');
57
57
  view.bind('label').to(command, 'value', value => {
58
58
  return value ? t('Disable editing') : t('Enable editing');
@@ -1 +0,0 @@
1
- <svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M15.5 6.5a3.5 3.5 0 0 1 3.495 3.308L19 10v2a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1h-7a1 1 0 0 1-1-1v-5a1 1 0 0 1 1-1v-2l.005-.192A3.5 3.5 0 0 1 15.5 6.5zm0 7.5a.5.5 0 0 0-.492.41L15 14.5v2a.5.5 0 0 0 .992.09L16 16.5v-2a.5.5 0 0 0-.5-.5zm0-6a2 2 0 0 0-2 2v2h4v-2a2 2 0 0 0-2-2zm-9.25 8a.75.75 0 1 1 0 1.5H.75a.75.75 0 1 1 0-1.5h5.5zm0-5a.75.75 0 1 1 0 1.5H.75a.75.75 0 1 1 0-1.5h5.5zm3-5a.75.75 0 0 1 0 1.5H.75a.75.75 0 0 1 0-1.5h8.5zm6-5a.75.75 0 1 1 0 1.5H.75a.75.75 0 0 1 0-1.5h14.5z"/></svg>
@@ -1 +0,0 @@
1
- <svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.25 16a.75.75 0 1 1 0 1.5H.75a.75.75 0 1 1 0-1.5h5.5zm0-5a.75.75 0 1 1 0 1.5H.75a.75.75 0 1 1 0-1.5h5.5zm3-5a.75.75 0 0 1 0 1.5H.75a.75.75 0 0 1 0-1.5h8.5zm6-5a.75.75 0 1 1 0 1.5H.75a.75.75 0 0 1 0-1.5h14.5zm.25 5.5a3.5 3.5 0 0 1 3.143 1.959.75.75 0 0 1-1.36.636A2 2 0 0 0 13.5 10v2H19a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1h-7a1 1 0 0 1-1-1v-5a1 1 0 0 1 1-1v-2l.005-.192A3.5 3.5 0 0 1 15.5 6.5zm0 7.5a.5.5 0 0 0-.492.41L15 14.5v2a.5.5 0 0 0 .992.09L16 16.5v-2a.5.5 0 0 0-.5-.5z"/></svg>