@ckeditor/ckeditor5-select-all 45.2.1 → 46.0.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/index.js CHANGED
@@ -15,7 +15,7 @@ import { ButtonView, MenuBarMenuListItemButtonView } from '@ckeditor/ckeditor5-u
15
15
  *
16
16
  * Executing this command changes the {@glink framework/architecture/editing-engine#model model}
17
17
  * selection so it contains the entire content of the editable root of the editor the selection is
18
- * {@link module:engine/model/selection~Selection#anchor anchored} in.
18
+ * {@link module:engine/model/selection~ModelSelection#anchor anchored} in.
19
19
  *
20
20
  * If the selection was anchored in a {@glink framework/tutorials/widgets/implementing-a-block-widget nested editable}
21
21
  * (e.g. a caption of an image), the new selection will contain its entire content. Successive executions of this command
@@ -52,7 +52,7 @@ import { ButtonView, MenuBarMenuListItemButtonView } from '@ckeditor/ckeditor5-u
52
52
  }
53
53
  /**
54
54
  * Checks whether the element is a valid select-all scope. Returns true, if the element is a
55
- * {@link module:engine/model/schema~Schema#isLimit limit}, and can contain any text or paragraph.
55
+ * {@link module:engine/model/schema~ModelSchema#isLimit limit}, and can contain any text or paragraph.
56
56
  *
57
57
  * @param schema Schema to check against.
58
58
  * @param element Model element.
@@ -186,5 +186,5 @@ const SELECT_ALL_KEYSTROKE = /* #__PURE__ */ parseKeystroke('Ctrl+A');
186
186
  }
187
187
  }
188
188
 
189
- export { SelectAll, SelectAllEditing, SelectAllUI };
189
+ export { SelectAll, SelectAllCommand, SelectAllEditing, SelectAllUI };
190
190
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["index.js","../src/selectallcommand.ts","../src/selectallediting.ts","../src/selectallui.ts","../src/selectall.ts"],"names":["SelectAllCommand","Command","editor","affectsData","execute","model","selection","document","scopeElement","schema","getLimitElement","containsEntireContent","isSelectAllScope","parent","change","writer","setSelection","element","isLimit","checkChild","SELECT_ALL_KEYSTROKE","parseKeystroke","SelectAllEditing","Plugin","pluginName","isOfficialPlugin","init","t","view","editing","viewDocument","commands","add","listenTo","eventInfo","domEventData","getCode","preventDefault","accessibility","addKeystrokeInfos","keystrokes","label","keystroke","SelectAllUI","ui","componentFactory","buttonView","_createButton","ButtonView","set","tooltip","MenuBarMenuListItemButtonView","ButtonClass","locale","command","get","icon","IconSelectAll","bind","to","focus","SelectAll","requires"],"mappings":";;;;AAAA,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;AACxE,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;AACjF,MAAM,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;AACvE,MAAM,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,6BAA6B,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;;ACShG,CAAA,CAAA;ADNA,CAAC,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,OAAO;AACzB,CAAC;AACD,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,OA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AC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CI5IL,MAAA,CAAO,IAAA;AACR,CAAA,CAAA,CAAA,CAAA;AACD;;AJ8IA,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,gBAAgB,CAAC,CAAC,WAAW,CAAC,CAAC;AACnD,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,KAAK,CAAC,EAAE,CAAC","file":"index.js.map","sourcesContent":["import { Command, Plugin } from '@ckeditor/ckeditor5-core/dist/index.js';\nimport { getCode, parseKeystroke } from '@ckeditor/ckeditor5-utils/dist/index.js';\nimport { IconSelectAll } from '@ckeditor/ckeditor5-icons/dist/index.js';\nimport { ButtonView, MenuBarMenuListItemButtonView } from '@ckeditor/ckeditor5-ui/dist/index.js';\n\n/**\n * The select all command.\n *\n * It is used by the {@link module:select-all/selectallediting~SelectAllEditing select all editing feature} to handle\n * the <kbd>Ctrl/⌘</kbd>+<kbd>A</kbd> keystroke.\n *\n * Executing this command changes the {@glink framework/architecture/editing-engine#model model}\n * selection so it contains the entire content of the editable root of the editor the selection is\n * {@link module:engine/model/selection~Selection#anchor anchored} in.\n *\n * If the selection was anchored in a {@glink framework/tutorials/widgets/implementing-a-block-widget nested editable}\n * (e.g. a caption of an image), the new selection will contain its entire content. Successive executions of this command\n * will expand the selection to encompass more and more content up to the entire editable root of the editor.\n */ class SelectAllCommand extends Command {\n /**\n\t * @inheritDoc\n\t */ constructor(editor){\n super(editor);\n // It does not affect data so should be enabled in read-only mode.\n this.affectsData = false;\n }\n /**\n\t * @inheritDoc\n\t */ execute() {\n const model = this.editor.model;\n const selection = model.document.selection;\n let scopeElement = model.schema.getLimitElement(selection);\n // If an entire scope is selected, or the selection's ancestor is not a scope yet,\n // browse through ancestors to find the enclosing parent scope.\n if (selection.containsEntireContent(scopeElement) || !isSelectAllScope(model.schema, scopeElement)) {\n do {\n scopeElement = scopeElement.parent;\n // Do nothing, if the entire `root` is already selected.\n if (!scopeElement) {\n return;\n }\n }while (!isSelectAllScope(model.schema, scopeElement))\n }\n model.change((writer)=>{\n writer.setSelection(scopeElement, 'in');\n });\n }\n}\n/**\n * Checks whether the element is a valid select-all scope. Returns true, if the element is a\n * {@link module:engine/model/schema~Schema#isLimit limit}, and can contain any text or paragraph.\n *\n * @param schema Schema to check against.\n * @param element Model element.\n */ function isSelectAllScope(schema, element) {\n return schema.isLimit(element) && (schema.checkChild(element, '$text') || schema.checkChild(element, 'paragraph'));\n}\n\nconst SELECT_ALL_KEYSTROKE = /* #__PURE__ */ parseKeystroke('Ctrl+A');\n/**\n * The select all editing feature.\n *\n * It registers the `'selectAll'` {@link module:select-all/selectallcommand~SelectAllCommand command}\n * and the <kbd>Ctrl/⌘</kbd>+<kbd>A</kbd> keystroke listener which executes it.\n */ class SelectAllEditing extends Plugin {\n /**\n\t * @inheritDoc\n\t */ static get pluginName() {\n return 'SelectAllEditing';\n }\n /**\n\t * @inheritDoc\n\t */ static get isOfficialPlugin() {\n return true;\n }\n /**\n\t * @inheritDoc\n\t */ init() {\n const editor = this.editor;\n const t = editor.t;\n const view = editor.editing.view;\n const viewDocument = view.document;\n editor.commands.add('selectAll', new SelectAllCommand(editor));\n this.listenTo(viewDocument, 'keydown', (eventInfo, domEventData)=>{\n if (getCode(domEventData) === SELECT_ALL_KEYSTROKE) {\n editor.execute('selectAll');\n domEventData.preventDefault();\n }\n });\n // Add the information about the keystroke to the accessibility database.\n editor.accessibility.addKeystrokeInfos({\n keystrokes: [\n {\n label: t('Select all'),\n keystroke: 'CTRL+A'\n }\n ]\n });\n }\n}\n\n/**\n * The select all UI feature.\n *\n * It registers the `'selectAll'` UI button in the editor's\n * {@link module:ui/componentfactory~ComponentFactory component factory}. When clicked, the button\n * executes the {@link module:select-all/selectallcommand~SelectAllCommand select all command}.\n */ class SelectAllUI extends Plugin {\n /**\n\t * @inheritDoc\n\t */ static get pluginName() {\n return 'SelectAllUI';\n }\n /**\n\t * @inheritDoc\n\t */ static get isOfficialPlugin() {\n return true;\n }\n /**\n\t * @inheritDoc\n\t */ init() {\n const editor = this.editor;\n editor.ui.componentFactory.add('selectAll', ()=>{\n const buttonView = this._createButton(ButtonView);\n buttonView.set({\n tooltip: true\n });\n return buttonView;\n });\n editor.ui.componentFactory.add('menuBar:selectAll', ()=>{\n return this._createButton(MenuBarMenuListItemButtonView);\n });\n }\n /**\n\t * Creates a button for select all command to use either in toolbar or in menu bar.\n\t */ _createButton(ButtonClass) {\n const editor = this.editor;\n const locale = editor.locale;\n const command = editor.commands.get('selectAll');\n const view = new ButtonClass(editor.locale);\n const t = locale.t;\n view.set({\n label: t('Select all'),\n icon: IconSelectAll,\n keystroke: 'Ctrl+A'\n });\n view.bind('isEnabled').to(command, 'isEnabled');\n // Execute the command.\n this.listenTo(view, 'execute', ()=>{\n editor.execute('selectAll');\n editor.editing.view.focus();\n });\n return view;\n }\n}\n\n/**\n * The select all feature.\n *\n * This is a \"glue\" plugin which loads the {@link module:select-all/selectallediting~SelectAllEditing select all editing feature}\n * and the {@link module:select-all/selectallui~SelectAllUI select all UI feature}.\n *\n * Please refer to the documentation of individual features to learn more.\n */ class SelectAll extends Plugin {\n /**\n\t * @inheritDoc\n\t */ static get requires() {\n return [\n SelectAllEditing,\n SelectAllUI\n ];\n }\n /**\n\t * @inheritDoc\n\t */ static get pluginName() {\n return 'SelectAll';\n }\n /**\n\t * @inheritDoc\n\t */ static get isOfficialPlugin() {\n return true;\n }\n}\n\nexport { SelectAll, SelectAllEditing, SelectAllUI };\n//# sourceMappingURL=index.js.map\n","/**\n * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options\n */\n\n/**\n * @module select-all/selectallcommand\n */\n\nimport { Command, type Editor } from '@ckeditor/ckeditor5-core';\nimport type { Element, Schema } from '@ckeditor/ckeditor5-engine';\n\n/**\n * The select all command.\n *\n * It is used by the {@link module:select-all/selectallediting~SelectAllEditing select all editing feature} to handle\n * the <kbd>Ctrl/⌘</kbd>+<kbd>A</kbd> keystroke.\n *\n * Executing this command changes the {@glink framework/architecture/editing-engine#model model}\n * selection so it contains the entire content of the editable root of the editor the selection is\n * {@link module:engine/model/selection~Selection#anchor anchored} in.\n *\n * If the selection was anchored in a {@glink framework/tutorials/widgets/implementing-a-block-widget nested editable}\n * (e.g. a caption of an image), the new selection will contain its entire content. Successive executions of this command\n * will expand the selection to encompass more and more content up to the entire editable root of the editor.\n */\nexport default class SelectAllCommand extends Command {\n\t/**\n\t * @inheritDoc\n\t */\n\tconstructor( editor: Editor ) {\n\t\tsuper( editor );\n\n\t\t// It does not affect data so should be enabled in read-only mode.\n\t\tthis.affectsData = false;\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic override execute(): void {\n\t\tconst model = this.editor.model;\n\t\tconst selection = model.document.selection;\n\t\tlet scopeElement: Element | null = model.schema.getLimitElement( selection );\n\n\t\t// If an entire scope is selected, or the selection's ancestor is not a scope yet,\n\t\t// browse through ancestors to find the enclosing parent scope.\n\t\tif ( selection.containsEntireContent( scopeElement ) || !isSelectAllScope( model.schema, scopeElement ) ) {\n\t\t\tdo {\n\t\t\t\tscopeElement = scopeElement.parent as Element | null;\n\n\t\t\t\t// Do nothing, if the entire `root` is already selected.\n\t\t\t\tif ( !scopeElement ) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t} while ( !isSelectAllScope( model.schema, scopeElement ) );\n\t\t}\n\n\t\tmodel.change( writer => {\n\t\t\twriter.setSelection( scopeElement!, 'in' );\n\t\t} );\n\t}\n}\n\n/**\n * Checks whether the element is a valid select-all scope. Returns true, if the element is a\n * {@link module:engine/model/schema~Schema#isLimit limit}, and can contain any text or paragraph.\n *\n * @param schema Schema to check against.\n * @param element Model element.\n */\nfunction isSelectAllScope( schema: Schema, element: Element ): boolean {\n\treturn schema.isLimit( element ) && ( schema.checkChild( element, '$text' ) || schema.checkChild( element, 'paragraph' ) );\n}\n","/**\n * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options\n */\n\n/**\n * @module select-all/selectallediting\n */\n\nimport { Plugin } from '@ckeditor/ckeditor5-core';\nimport { getCode, parseKeystroke } from '@ckeditor/ckeditor5-utils';\nimport SelectAllCommand from './selectallcommand.js';\nimport type { ViewDocumentKeyDownEvent } from '@ckeditor/ckeditor5-engine';\n\nconst SELECT_ALL_KEYSTROKE = /* #__PURE__ */ parseKeystroke( 'Ctrl+A' );\n\n/**\n * The select all editing feature.\n *\n * It registers the `'selectAll'` {@link module:select-all/selectallcommand~SelectAllCommand command}\n * and the <kbd>Ctrl/⌘</kbd>+<kbd>A</kbd> keystroke listener which executes it.\n */\nexport default class SelectAllEditing extends Plugin {\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic static get pluginName() {\n\t\treturn 'SelectAllEditing' as const;\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic static override get isOfficialPlugin(): true {\n\t\treturn true;\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic init(): void {\n\t\tconst editor = this.editor;\n\t\tconst t = editor.t;\n\t\tconst view = editor.editing.view;\n\t\tconst viewDocument = view.document;\n\n\t\teditor.commands.add( 'selectAll', new SelectAllCommand( editor ) );\n\n\t\tthis.listenTo<ViewDocumentKeyDownEvent>( viewDocument, 'keydown', ( eventInfo, domEventData ) => {\n\t\t\tif ( getCode( domEventData ) === SELECT_ALL_KEYSTROKE ) {\n\t\t\t\teditor.execute( 'selectAll' );\n\t\t\t\tdomEventData.preventDefault();\n\t\t\t}\n\t\t} );\n\n\t\t// Add the information about the keystroke to the accessibility database.\n\t\teditor.accessibility.addKeystrokeInfos( {\n\t\t\tkeystrokes: [\n\t\t\t\t{\n\t\t\t\t\tlabel: t( 'Select all' ),\n\t\t\t\t\tkeystroke: 'CTRL+A'\n\t\t\t\t}\n\t\t\t]\n\t\t} );\n\t}\n}\n","/**\n * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options\n */\n\n/**\n * @module select-all/selectallui\n */\n\nimport { Plugin } from '@ckeditor/ckeditor5-core';\nimport { IconSelectAll } from '@ckeditor/ckeditor5-icons';\nimport { ButtonView, MenuBarMenuListItemButtonView } from '@ckeditor/ckeditor5-ui';\n\n/**\n * The select all UI feature.\n *\n * It registers the `'selectAll'` UI button in the editor's\n * {@link module:ui/componentfactory~ComponentFactory component factory}. When clicked, the button\n * executes the {@link module:select-all/selectallcommand~SelectAllCommand select all command}.\n */\nexport default class SelectAllUI extends Plugin {\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic static get pluginName() {\n\t\treturn 'SelectAllUI' as const;\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic static override get isOfficialPlugin(): true {\n\t\treturn true;\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic init(): void {\n\t\tconst editor = this.editor;\n\n\t\teditor.ui.componentFactory.add( 'selectAll', () => {\n\t\t\tconst buttonView = this._createButton( ButtonView );\n\n\t\t\tbuttonView.set( {\n\t\t\t\ttooltip: true\n\t\t\t} );\n\n\t\t\treturn buttonView;\n\t\t} );\n\n\t\teditor.ui.componentFactory.add( 'menuBar:selectAll', () => {\n\t\t\treturn this._createButton( MenuBarMenuListItemButtonView );\n\t\t} );\n\t}\n\n\t/**\n\t * Creates a button for select all command to use either in toolbar or in menu bar.\n\t */\n\tprivate _createButton<T extends typeof ButtonView | typeof MenuBarMenuListItemButtonView>( ButtonClass: T ): InstanceType<T> {\n\t\tconst editor = this.editor;\n\t\tconst locale = editor.locale;\n\t\tconst command = editor.commands.get( 'selectAll' )!;\n\t\tconst view = new ButtonClass( editor.locale ) as InstanceType<T>;\n\t\tconst t = locale.t;\n\n\t\tview.set( {\n\t\t\tlabel: t( 'Select all' ),\n\t\t\ticon: IconSelectAll,\n\t\t\tkeystroke: 'Ctrl+A'\n\t\t} );\n\n\t\tview.bind( 'isEnabled' ).to( command, 'isEnabled' );\n\n\t\t// Execute the command.\n\t\tthis.listenTo( view, 'execute', () => {\n\t\t\teditor.execute( 'selectAll' );\n\t\t\teditor.editing.view.focus();\n\t\t} );\n\n\t\treturn view;\n\t}\n}\n","/**\n * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options\n */\n\n/**\n * @module select-all/selectall\n */\n\nimport { Plugin } from '@ckeditor/ckeditor5-core';\nimport SelectAllEditing from './selectallediting.js';\nimport SelectAllUI from './selectallui.js';\n\n/**\n * The select all feature.\n *\n * This is a \"glue\" plugin which loads the {@link module:select-all/selectallediting~SelectAllEditing select all editing feature}\n * and the {@link module:select-all/selectallui~SelectAllUI select all UI feature}.\n *\n * Please refer to the documentation of individual features to learn more.\n */\nexport default class SelectAll extends Plugin {\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic static get requires() {\n\t\treturn [ SelectAllEditing, SelectAllUI ] as const;\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic static get pluginName() {\n\t\treturn 'SelectAll' as const;\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic static override get isOfficialPlugin(): true {\n\t\treturn true;\n\t}\n}\n"]}
1
+ {"version":3,"sources":["index.js","../src/selectallcommand.ts","../src/selectallediting.ts","../src/selectallui.ts","../src/selectall.ts"],"names":["SelectAllCommand","Command","editor","affectsData","execute","model","selection","document","scopeElement","schema","getLimitElement","containsEntireContent","isSelectAllScope","parent","change","writer","setSelection","element","isLimit","checkChild","SELECT_ALL_KEYSTROKE","parseKeystroke","SelectAllEditing","Plugin","pluginName","isOfficialPlugin","init","t","view","editing","viewDocument","commands","add","listenTo","eventInfo","domEventData","getCode","preventDefault","accessibility","addKeystrokeInfos","keystrokes","label","keystroke","SelectAllUI","ui","componentFactory","buttonView","_createButton","ButtonView","set","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AgB,CAAC,CAAC,WAAW,CAAC,CAAC;AACrE,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,KAAK,CAAC,EAAE,CAAC","file":"index.js.map","sourcesContent":["import { Command, Plugin } from '@ckeditor/ckeditor5-core/dist/index.js';\nimport { getCode, parseKeystroke } from '@ckeditor/ckeditor5-utils/dist/index.js';\nimport { IconSelectAll } from '@ckeditor/ckeditor5-icons/dist/index.js';\nimport { ButtonView, MenuBarMenuListItemButtonView } from '@ckeditor/ckeditor5-ui/dist/index.js';\n\n/**\n * The select all command.\n *\n * It is used by the {@link module:select-all/selectallediting~SelectAllEditing select all editing feature} to handle\n * the <kbd>Ctrl/⌘</kbd>+<kbd>A</kbd> keystroke.\n *\n * Executing this command changes the {@glink framework/architecture/editing-engine#model model}\n * selection so it contains the entire content of the editable root of the editor the selection is\n * {@link module:engine/model/selection~ModelSelection#anchor anchored} in.\n *\n * If the selection was anchored in a {@glink framework/tutorials/widgets/implementing-a-block-widget nested editable}\n * (e.g. a caption of an image), the new selection will contain its entire content. Successive executions of this command\n * will expand the selection to encompass more and more content up to the entire editable root of the editor.\n */ class SelectAllCommand extends Command {\n /**\n\t * @inheritDoc\n\t */ constructor(editor){\n super(editor);\n // It does not affect data so should be enabled in read-only mode.\n this.affectsData = false;\n }\n /**\n\t * @inheritDoc\n\t */ execute() {\n const model = this.editor.model;\n const selection = model.document.selection;\n let scopeElement = model.schema.getLimitElement(selection);\n // If an entire scope is selected, or the selection's ancestor is not a scope yet,\n // browse through ancestors to find the enclosing parent scope.\n if (selection.containsEntireContent(scopeElement) || !isSelectAllScope(model.schema, scopeElement)) {\n do {\n scopeElement = scopeElement.parent;\n // Do nothing, if the entire `root` is already selected.\n if (!scopeElement) {\n return;\n }\n }while (!isSelectAllScope(model.schema, scopeElement))\n }\n model.change((writer)=>{\n writer.setSelection(scopeElement, 'in');\n });\n }\n}\n/**\n * Checks whether the element is a valid select-all scope. Returns true, if the element is a\n * {@link module:engine/model/schema~ModelSchema#isLimit limit}, and can contain any text or paragraph.\n *\n * @param schema Schema to check against.\n * @param element Model element.\n */ function isSelectAllScope(schema, element) {\n return schema.isLimit(element) && (schema.checkChild(element, '$text') || schema.checkChild(element, 'paragraph'));\n}\n\nconst SELECT_ALL_KEYSTROKE = /* #__PURE__ */ parseKeystroke('Ctrl+A');\n/**\n * The select all editing feature.\n *\n * It registers the `'selectAll'` {@link module:select-all/selectallcommand~SelectAllCommand command}\n * and the <kbd>Ctrl/⌘</kbd>+<kbd>A</kbd> keystroke listener which executes it.\n */ class SelectAllEditing extends Plugin {\n /**\n\t * @inheritDoc\n\t */ static get pluginName() {\n return 'SelectAllEditing';\n }\n /**\n\t * @inheritDoc\n\t */ static get isOfficialPlugin() {\n return true;\n }\n /**\n\t * @inheritDoc\n\t */ init() {\n const editor = this.editor;\n const t = editor.t;\n const view = editor.editing.view;\n const viewDocument = view.document;\n editor.commands.add('selectAll', new SelectAllCommand(editor));\n this.listenTo(viewDocument, 'keydown', (eventInfo, domEventData)=>{\n if (getCode(domEventData) === SELECT_ALL_KEYSTROKE) {\n editor.execute('selectAll');\n domEventData.preventDefault();\n }\n });\n // Add the information about the keystroke to the accessibility database.\n editor.accessibility.addKeystrokeInfos({\n keystrokes: [\n {\n label: t('Select all'),\n keystroke: 'CTRL+A'\n }\n ]\n });\n }\n}\n\n/**\n * The select all UI feature.\n *\n * It registers the `'selectAll'` UI button in the editor's\n * {@link module:ui/componentfactory~ComponentFactory component factory}. When clicked, the button\n * executes the {@link module:select-all/selectallcommand~SelectAllCommand select all command}.\n */ class SelectAllUI extends Plugin {\n /**\n\t * @inheritDoc\n\t */ static get pluginName() {\n return 'SelectAllUI';\n }\n /**\n\t * @inheritDoc\n\t */ static get isOfficialPlugin() {\n return true;\n }\n /**\n\t * @inheritDoc\n\t */ init() {\n const editor = this.editor;\n editor.ui.componentFactory.add('selectAll', ()=>{\n const buttonView = this._createButton(ButtonView);\n buttonView.set({\n tooltip: true\n });\n return buttonView;\n });\n editor.ui.componentFactory.add('menuBar:selectAll', ()=>{\n return this._createButton(MenuBarMenuListItemButtonView);\n });\n }\n /**\n\t * Creates a button for select all command to use either in toolbar or in menu bar.\n\t */ _createButton(ButtonClass) {\n const editor = this.editor;\n const locale = editor.locale;\n const command = editor.commands.get('selectAll');\n const view = new ButtonClass(editor.locale);\n const t = locale.t;\n view.set({\n label: t('Select all'),\n icon: IconSelectAll,\n keystroke: 'Ctrl+A'\n });\n view.bind('isEnabled').to(command, 'isEnabled');\n // Execute the command.\n this.listenTo(view, 'execute', ()=>{\n editor.execute('selectAll');\n editor.editing.view.focus();\n });\n return view;\n }\n}\n\n/**\n * The select all feature.\n *\n * This is a \"glue\" plugin which loads the {@link module:select-all/selectallediting~SelectAllEditing select all editing feature}\n * and the {@link module:select-all/selectallui~SelectAllUI select all UI feature}.\n *\n * Please refer to the documentation of individual features to learn more.\n */ class SelectAll extends Plugin {\n /**\n\t * @inheritDoc\n\t */ static get requires() {\n return [\n SelectAllEditing,\n SelectAllUI\n ];\n }\n /**\n\t * @inheritDoc\n\t */ static get pluginName() {\n return 'SelectAll';\n }\n /**\n\t * @inheritDoc\n\t */ static get isOfficialPlugin() {\n return true;\n }\n}\n\nexport { SelectAll, SelectAllCommand, SelectAllEditing, SelectAllUI };\n//# sourceMappingURL=index.js.map\n","/**\n * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options\n */\n\n/**\n * @module select-all/selectallcommand\n */\n\nimport { Command, type Editor } from '@ckeditor/ckeditor5-core';\nimport type { ModelElement, ModelSchema } from '@ckeditor/ckeditor5-engine';\n\n/**\n * The select all command.\n *\n * It is used by the {@link module:select-all/selectallediting~SelectAllEditing select all editing feature} to handle\n * the <kbd>Ctrl/⌘</kbd>+<kbd>A</kbd> keystroke.\n *\n * Executing this command changes the {@glink framework/architecture/editing-engine#model model}\n * selection so it contains the entire content of the editable root of the editor the selection is\n * {@link module:engine/model/selection~ModelSelection#anchor anchored} in.\n *\n * If the selection was anchored in a {@glink framework/tutorials/widgets/implementing-a-block-widget nested editable}\n * (e.g. a caption of an image), the new selection will contain its entire content. Successive executions of this command\n * will expand the selection to encompass more and more content up to the entire editable root of the editor.\n */\nexport class SelectAllCommand extends Command {\n\t/**\n\t * @inheritDoc\n\t */\n\tconstructor( editor: Editor ) {\n\t\tsuper( editor );\n\n\t\t// It does not affect data so should be enabled in read-only mode.\n\t\tthis.affectsData = false;\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic override execute(): void {\n\t\tconst model = this.editor.model;\n\t\tconst selection = model.document.selection;\n\t\tlet scopeElement: ModelElement | null = model.schema.getLimitElement( selection );\n\n\t\t// If an entire scope is selected, or the selection's ancestor is not a scope yet,\n\t\t// browse through ancestors to find the enclosing parent scope.\n\t\tif ( selection.containsEntireContent( scopeElement ) || !isSelectAllScope( model.schema, scopeElement ) ) {\n\t\t\tdo {\n\t\t\t\tscopeElement = scopeElement.parent as ModelElement | null;\n\n\t\t\t\t// Do nothing, if the entire `root` is already selected.\n\t\t\t\tif ( !scopeElement ) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t} while ( !isSelectAllScope( model.schema, scopeElement ) );\n\t\t}\n\n\t\tmodel.change( writer => {\n\t\t\twriter.setSelection( scopeElement!, 'in' );\n\t\t} );\n\t}\n}\n\n/**\n * Checks whether the element is a valid select-all scope. Returns true, if the element is a\n * {@link module:engine/model/schema~ModelSchema#isLimit limit}, and can contain any text or paragraph.\n *\n * @param schema Schema to check against.\n * @param element Model element.\n */\nfunction isSelectAllScope( schema: ModelSchema, element: ModelElement ): boolean {\n\treturn schema.isLimit( element ) && ( schema.checkChild( element, '$text' ) || schema.checkChild( element, 'paragraph' ) );\n}\n","/**\n * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options\n */\n\n/**\n * @module select-all/selectallediting\n */\n\nimport { Plugin } from '@ckeditor/ckeditor5-core';\nimport { getCode, parseKeystroke } from '@ckeditor/ckeditor5-utils';\nimport { SelectAllCommand } from './selectallcommand.js';\nimport type { ViewDocumentKeyDownEvent } from '@ckeditor/ckeditor5-engine';\n\nconst SELECT_ALL_KEYSTROKE = /* #__PURE__ */ parseKeystroke( 'Ctrl+A' );\n\n/**\n * The select all editing feature.\n *\n * It registers the `'selectAll'` {@link module:select-all/selectallcommand~SelectAllCommand command}\n * and the <kbd>Ctrl/⌘</kbd>+<kbd>A</kbd> keystroke listener which executes it.\n */\nexport class SelectAllEditing extends Plugin {\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic static get pluginName() {\n\t\treturn 'SelectAllEditing' as const;\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic static override get isOfficialPlugin(): true {\n\t\treturn true;\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic init(): void {\n\t\tconst editor = this.editor;\n\t\tconst t = editor.t;\n\t\tconst view = editor.editing.view;\n\t\tconst viewDocument = view.document;\n\n\t\teditor.commands.add( 'selectAll', new SelectAllCommand( editor ) );\n\n\t\tthis.listenTo<ViewDocumentKeyDownEvent>( viewDocument, 'keydown', ( eventInfo, domEventData ) => {\n\t\t\tif ( getCode( domEventData ) === SELECT_ALL_KEYSTROKE ) {\n\t\t\t\teditor.execute( 'selectAll' );\n\t\t\t\tdomEventData.preventDefault();\n\t\t\t}\n\t\t} );\n\n\t\t// Add the information about the keystroke to the accessibility database.\n\t\teditor.accessibility.addKeystrokeInfos( {\n\t\t\tkeystrokes: [\n\t\t\t\t{\n\t\t\t\t\tlabel: t( 'Select all' ),\n\t\t\t\t\tkeystroke: 'CTRL+A'\n\t\t\t\t}\n\t\t\t]\n\t\t} );\n\t}\n}\n","/**\n * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options\n */\n\n/**\n * @module select-all/selectallui\n */\n\nimport { Plugin } from '@ckeditor/ckeditor5-core';\nimport { IconSelectAll } from '@ckeditor/ckeditor5-icons';\nimport { ButtonView, MenuBarMenuListItemButtonView } from '@ckeditor/ckeditor5-ui';\n\n/**\n * The select all UI feature.\n *\n * It registers the `'selectAll'` UI button in the editor's\n * {@link module:ui/componentfactory~ComponentFactory component factory}. When clicked, the button\n * executes the {@link module:select-all/selectallcommand~SelectAllCommand select all command}.\n */\nexport class SelectAllUI extends Plugin {\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic static get pluginName() {\n\t\treturn 'SelectAllUI' as const;\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic static override get isOfficialPlugin(): true {\n\t\treturn true;\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic init(): void {\n\t\tconst editor = this.editor;\n\n\t\teditor.ui.componentFactory.add( 'selectAll', () => {\n\t\t\tconst buttonView = this._createButton( ButtonView );\n\n\t\t\tbuttonView.set( {\n\t\t\t\ttooltip: true\n\t\t\t} );\n\n\t\t\treturn buttonView;\n\t\t} );\n\n\t\teditor.ui.componentFactory.add( 'menuBar:selectAll', () => {\n\t\t\treturn this._createButton( MenuBarMenuListItemButtonView );\n\t\t} );\n\t}\n\n\t/**\n\t * Creates a button for select all command to use either in toolbar or in menu bar.\n\t */\n\tprivate _createButton<T extends typeof ButtonView | typeof MenuBarMenuListItemButtonView>( ButtonClass: T ): InstanceType<T> {\n\t\tconst editor = this.editor;\n\t\tconst locale = editor.locale;\n\t\tconst command = editor.commands.get( 'selectAll' )!;\n\t\tconst view = new ButtonClass( editor.locale ) as InstanceType<T>;\n\t\tconst t = locale.t;\n\n\t\tview.set( {\n\t\t\tlabel: t( 'Select all' ),\n\t\t\ticon: IconSelectAll,\n\t\t\tkeystroke: 'Ctrl+A'\n\t\t} );\n\n\t\tview.bind( 'isEnabled' ).to( command, 'isEnabled' );\n\n\t\t// Execute the command.\n\t\tthis.listenTo( view, 'execute', () => {\n\t\t\teditor.execute( 'selectAll' );\n\t\t\teditor.editing.view.focus();\n\t\t} );\n\n\t\treturn view;\n\t}\n}\n","/**\n * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options\n */\n\n/**\n * @module select-all/selectall\n */\n\nimport { Plugin } from '@ckeditor/ckeditor5-core';\nimport { SelectAllEditing } from './selectallediting.js';\nimport { SelectAllUI } from './selectallui.js';\n\n/**\n * The select all feature.\n *\n * This is a \"glue\" plugin which loads the {@link module:select-all/selectallediting~SelectAllEditing select all editing feature}\n * and the {@link module:select-all/selectallui~SelectAllUI select all UI feature}.\n *\n * Please refer to the documentation of individual features to learn more.\n */\nexport class SelectAll extends Plugin {\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic static get requires() {\n\t\treturn [ SelectAllEditing, SelectAllUI ] as const;\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic static get pluginName() {\n\t\treturn 'SelectAll' as const;\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic static override get isOfficialPlugin(): true {\n\t\treturn true;\n\t}\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-select-all",
3
- "version": "45.2.1",
3
+ "version": "46.0.0-alpha.1",
4
4
  "description": "Select all feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -13,11 +13,11 @@
13
13
  "type": "module",
14
14
  "main": "src/index.js",
15
15
  "dependencies": {
16
- "@ckeditor/ckeditor5-core": "45.2.1",
17
- "@ckeditor/ckeditor5-icons": "45.2.1",
18
- "@ckeditor/ckeditor5-engine": "45.2.1",
19
- "@ckeditor/ckeditor5-utils": "45.2.1",
20
- "@ckeditor/ckeditor5-ui": "45.2.1"
16
+ "@ckeditor/ckeditor5-core": "46.0.0-alpha.1",
17
+ "@ckeditor/ckeditor5-icons": "46.0.0-alpha.1",
18
+ "@ckeditor/ckeditor5-engine": "46.0.0-alpha.1",
19
+ "@ckeditor/ckeditor5-utils": "46.0.0-alpha.1",
20
+ "@ckeditor/ckeditor5-ui": "46.0.0-alpha.1"
21
21
  },
22
22
  "author": "CKSource (http://cksource.com/)",
23
23
  "license": "SEE LICENSE IN LICENSE.md",
package/src/index.d.ts CHANGED
@@ -5,8 +5,8 @@
5
5
  /**
6
6
  * @module select-all
7
7
  */
8
- export { default as SelectAll } from './selectall.js';
9
- export { default as SelectAllEditing } from './selectallediting.js';
10
- export { default as SelectAllUI } from './selectallui.js';
11
- export type { default as SelectAllCommand } from './selectallcommand.js';
8
+ export { SelectAll } from './selectall.js';
9
+ export { SelectAllEditing } from './selectallediting.js';
10
+ export { SelectAllUI } from './selectallui.js';
11
+ export { SelectAllCommand } from './selectallcommand.js';
12
12
  import './augmentation.js';
package/src/index.js CHANGED
@@ -5,7 +5,8 @@
5
5
  /**
6
6
  * @module select-all
7
7
  */
8
- export { default as SelectAll } from './selectall.js';
9
- export { default as SelectAllEditing } from './selectallediting.js';
10
- export { default as SelectAllUI } from './selectallui.js';
8
+ export { SelectAll } from './selectall.js';
9
+ export { SelectAllEditing } from './selectallediting.js';
10
+ export { SelectAllUI } from './selectallui.js';
11
+ export { SelectAllCommand } from './selectallcommand.js';
11
12
  import './augmentation.js';
@@ -6,8 +6,8 @@
6
6
  * @module select-all/selectall
7
7
  */
8
8
  import { Plugin } from '@ckeditor/ckeditor5-core';
9
- import SelectAllEditing from './selectallediting.js';
10
- import SelectAllUI from './selectallui.js';
9
+ import { SelectAllEditing } from './selectallediting.js';
10
+ import { SelectAllUI } from './selectallui.js';
11
11
  /**
12
12
  * The select all feature.
13
13
  *
@@ -16,7 +16,7 @@ import SelectAllUI from './selectallui.js';
16
16
  *
17
17
  * Please refer to the documentation of individual features to learn more.
18
18
  */
19
- export default class SelectAll extends Plugin {
19
+ export declare class SelectAll extends Plugin {
20
20
  /**
21
21
  * @inheritDoc
22
22
  */
package/src/selectall.js CHANGED
@@ -6,8 +6,8 @@
6
6
  * @module select-all/selectall
7
7
  */
8
8
  import { Plugin } from '@ckeditor/ckeditor5-core';
9
- import SelectAllEditing from './selectallediting.js';
10
- import SelectAllUI from './selectallui.js';
9
+ import { SelectAllEditing } from './selectallediting.js';
10
+ import { SelectAllUI } from './selectallui.js';
11
11
  /**
12
12
  * The select all feature.
13
13
  *
@@ -16,7 +16,7 @@ import SelectAllUI from './selectallui.js';
16
16
  *
17
17
  * Please refer to the documentation of individual features to learn more.
18
18
  */
19
- export default class SelectAll extends Plugin {
19
+ export class SelectAll extends Plugin {
20
20
  /**
21
21
  * @inheritDoc
22
22
  */
@@ -14,13 +14,13 @@ import { Command, type Editor } from '@ckeditor/ckeditor5-core';
14
14
  *
15
15
  * Executing this command changes the {@glink framework/architecture/editing-engine#model model}
16
16
  * selection so it contains the entire content of the editable root of the editor the selection is
17
- * {@link module:engine/model/selection~Selection#anchor anchored} in.
17
+ * {@link module:engine/model/selection~ModelSelection#anchor anchored} in.
18
18
  *
19
19
  * If the selection was anchored in a {@glink framework/tutorials/widgets/implementing-a-block-widget nested editable}
20
20
  * (e.g. a caption of an image), the new selection will contain its entire content. Successive executions of this command
21
21
  * will expand the selection to encompass more and more content up to the entire editable root of the editor.
22
22
  */
23
- export default class SelectAllCommand extends Command {
23
+ export declare class SelectAllCommand extends Command {
24
24
  /**
25
25
  * @inheritDoc
26
26
  */
@@ -14,13 +14,13 @@ import { Command } from '@ckeditor/ckeditor5-core';
14
14
  *
15
15
  * Executing this command changes the {@glink framework/architecture/editing-engine#model model}
16
16
  * selection so it contains the entire content of the editable root of the editor the selection is
17
- * {@link module:engine/model/selection~Selection#anchor anchored} in.
17
+ * {@link module:engine/model/selection~ModelSelection#anchor anchored} in.
18
18
  *
19
19
  * If the selection was anchored in a {@glink framework/tutorials/widgets/implementing-a-block-widget nested editable}
20
20
  * (e.g. a caption of an image), the new selection will contain its entire content. Successive executions of this command
21
21
  * will expand the selection to encompass more and more content up to the entire editable root of the editor.
22
22
  */
23
- export default class SelectAllCommand extends Command {
23
+ export class SelectAllCommand extends Command {
24
24
  /**
25
25
  * @inheritDoc
26
26
  */
@@ -54,7 +54,7 @@ export default class SelectAllCommand extends Command {
54
54
  }
55
55
  /**
56
56
  * Checks whether the element is a valid select-all scope. Returns true, if the element is a
57
- * {@link module:engine/model/schema~Schema#isLimit limit}, and can contain any text or paragraph.
57
+ * {@link module:engine/model/schema~ModelSchema#isLimit limit}, and can contain any text or paragraph.
58
58
  *
59
59
  * @param schema Schema to check against.
60
60
  * @param element Model element.
@@ -12,7 +12,7 @@ import { Plugin } from '@ckeditor/ckeditor5-core';
12
12
  * It registers the `'selectAll'` {@link module:select-all/selectallcommand~SelectAllCommand command}
13
13
  * and the <kbd>Ctrl/⌘</kbd>+<kbd>A</kbd> keystroke listener which executes it.
14
14
  */
15
- export default class SelectAllEditing extends Plugin {
15
+ export declare class SelectAllEditing extends Plugin {
16
16
  /**
17
17
  * @inheritDoc
18
18
  */
@@ -7,7 +7,7 @@
7
7
  */
8
8
  import { Plugin } from '@ckeditor/ckeditor5-core';
9
9
  import { getCode, parseKeystroke } from '@ckeditor/ckeditor5-utils';
10
- import SelectAllCommand from './selectallcommand.js';
10
+ import { SelectAllCommand } from './selectallcommand.js';
11
11
  const SELECT_ALL_KEYSTROKE = /* #__PURE__ */ parseKeystroke('Ctrl+A');
12
12
  /**
13
13
  * The select all editing feature.
@@ -15,7 +15,7 @@ const SELECT_ALL_KEYSTROKE = /* #__PURE__ */ parseKeystroke('Ctrl+A');
15
15
  * It registers the `'selectAll'` {@link module:select-all/selectallcommand~SelectAllCommand command}
16
16
  * and the <kbd>Ctrl/⌘</kbd>+<kbd>A</kbd> keystroke listener which executes it.
17
17
  */
18
- export default class SelectAllEditing extends Plugin {
18
+ export class SelectAllEditing extends Plugin {
19
19
  /**
20
20
  * @inheritDoc
21
21
  */
@@ -13,7 +13,7 @@ import { Plugin } from '@ckeditor/ckeditor5-core';
13
13
  * {@link module:ui/componentfactory~ComponentFactory component factory}. When clicked, the button
14
14
  * executes the {@link module:select-all/selectallcommand~SelectAllCommand select all command}.
15
15
  */
16
- export default class SelectAllUI extends Plugin {
16
+ export declare class SelectAllUI extends Plugin {
17
17
  /**
18
18
  * @inheritDoc
19
19
  */
@@ -15,7 +15,7 @@ import { ButtonView, MenuBarMenuListItemButtonView } from '@ckeditor/ckeditor5-u
15
15
  * {@link module:ui/componentfactory~ComponentFactory component factory}. When clicked, the button
16
16
  * executes the {@link module:select-all/selectallcommand~SelectAllCommand select all command}.
17
17
  */
18
- export default class SelectAllUI extends Plugin {
18
+ export class SelectAllUI extends Plugin {
19
19
  /**
20
20
  * @inheritDoc
21
21
  */