@ckeditor/ckeditor5-remove-format
Advanced tools
Comparing version 0.0.0-nightly-20241216.0 to 0.0.0-nightly-20241217.0
@@ -17,14 +17,14 @@ /** | ||
/** | ||
* @inheritDoc | ||
*/ static get pluginName() { | ||
* @inheritDoc | ||
*/ static get pluginName() { | ||
return 'RemoveFormatUI'; | ||
} | ||
/** | ||
* @inheritDoc | ||
*/ static get isOfficialPlugin() { | ||
* @inheritDoc | ||
*/ static get isOfficialPlugin() { | ||
return true; | ||
} | ||
/** | ||
* @inheritDoc | ||
*/ init() { | ||
* @inheritDoc | ||
*/ init() { | ||
const editor = this.editor; | ||
@@ -41,4 +41,4 @@ editor.ui.componentFactory.add(REMOVE_FORMAT, ()=>{ | ||
/** | ||
* Creates a button for remove format command to use either in toolbar or in menu bar. | ||
*/ _createButton(ButtonClass) { | ||
* Creates a button for remove format command to use either in toolbar or in menu bar. | ||
*/ _createButton(ButtonClass) { | ||
const editor = this.editor; | ||
@@ -74,4 +74,4 @@ const locale = editor.locale; | ||
/** | ||
* @inheritDoc | ||
*/ refresh() { | ||
* @inheritDoc | ||
*/ refresh() { | ||
const model = this.editor.model; | ||
@@ -81,4 +81,4 @@ this.isEnabled = !!first(this._getFormattingItems(model.document.selection, model.schema)); | ||
/** | ||
* @inheritDoc | ||
*/ execute() { | ||
* @inheritDoc | ||
*/ execute() { | ||
const model = this.editor.model; | ||
@@ -104,7 +104,7 @@ const schema = model.schema; | ||
/** | ||
* Returns an iterable of items in a selection (including the selection itself) that have formatting model | ||
* attributes to be removed by the feature. | ||
* | ||
* @param schema The schema describing the item. | ||
*/ *_getFormattingItems(selection, schema) { | ||
* Returns an iterable of items in a selection (including the selection itself) that have formatting model | ||
* attributes to be removed by the feature. | ||
* | ||
* @param schema The schema describing the item. | ||
*/ *_getFormattingItems(selection, schema) { | ||
const itemHasRemovableFormatting = (item)=>{ | ||
@@ -133,9 +133,9 @@ return !!first(this._getFormattingAttributes(item, schema)); | ||
/** | ||
* Returns an iterable of formatting attributes of a given model item. | ||
* | ||
* **Note:** Formatting items have the `isFormatting` property set to `true`. | ||
* | ||
* @param schema The schema describing the item. | ||
* @returns The names of formatting attributes found in a given item. | ||
*/ *_getFormattingAttributes(item, schema) { | ||
* Returns an iterable of formatting attributes of a given model item. | ||
* | ||
* **Note:** Formatting items have the `isFormatting` property set to `true`. | ||
* | ||
* @param schema The schema describing the item. | ||
* @returns The names of formatting attributes found in a given item. | ||
*/ *_getFormattingAttributes(item, schema) { | ||
for (const [attributeName] of item.getAttributes()){ | ||
@@ -156,14 +156,14 @@ const attributeProperties = schema.getAttributeProperties(attributeName); | ||
/** | ||
* @inheritDoc | ||
*/ static get pluginName() { | ||
* @inheritDoc | ||
*/ static get pluginName() { | ||
return 'RemoveFormatEditing'; | ||
} | ||
/** | ||
* @inheritDoc | ||
*/ static get isOfficialPlugin() { | ||
* @inheritDoc | ||
*/ static get isOfficialPlugin() { | ||
return true; | ||
} | ||
/** | ||
* @inheritDoc | ||
*/ init() { | ||
* @inheritDoc | ||
*/ init() { | ||
const editor = this.editor; | ||
@@ -183,4 +183,4 @@ editor.commands.add('removeFormat', new RemoveFormatCommand(editor)); | ||
/** | ||
* @inheritDoc | ||
*/ static get requires() { | ||
* @inheritDoc | ||
*/ static get requires() { | ||
return [ | ||
@@ -192,9 +192,9 @@ RemoveFormatEditing, | ||
/** | ||
* @inheritDoc | ||
*/ static get pluginName() { | ||
* @inheritDoc | ||
*/ static get pluginName() { | ||
return 'RemoveFormat'; | ||
} | ||
/** | ||
* @inheritDoc | ||
*/ static get isOfficialPlugin() { | ||
* @inheritDoc | ||
*/ static get isOfficialPlugin() { | ||
return true; | ||
@@ -201,0 +201,0 @@ } |
{ | ||
"name": "@ckeditor/ckeditor5-remove-format", | ||
"version": "0.0.0-nightly-20241216.0", | ||
"version": "0.0.0-nightly-20241217.0", | ||
"description": "Remove format feature for CKEditor 5.", | ||
@@ -16,6 +16,6 @@ "keywords": [ | ||
"dependencies": { | ||
"@ckeditor/ckeditor5-core": "0.0.0-nightly-20241216.0", | ||
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20241216.0", | ||
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20241216.0", | ||
"ckeditor5": "0.0.0-nightly-20241216.0" | ||
"@ckeditor/ckeditor5-core": "0.0.0-nightly-20241217.0", | ||
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20241217.0", | ||
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20241217.0", | ||
"ckeditor5": "0.0.0-nightly-20241217.0" | ||
}, | ||
@@ -41,3 +41,22 @@ "author": "CKSource (http://cksource.com/)", | ||
], | ||
"types": "src/index.d.ts" | ||
"types": "src/index.d.ts", | ||
"exports": { | ||
".": { | ||
"types": "./src/index.d.ts", | ||
"import": "./src/index.js" | ||
}, | ||
"./dist/*": { | ||
"types": "./src/index.d.ts", | ||
"import": "./dist/*" | ||
}, | ||
"./src/*": { | ||
"types": "./src/index.d.ts", | ||
"import": "./src/*" | ||
}, | ||
"./build/*": "./build/*", | ||
"./lang/*": "./lang/*", | ||
"./theme/*": "./theme/*", | ||
"./ckeditor5-metadata.json": "./ckeditor5-metadata.json", | ||
"./package.json": "./package.json" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
203583
384
2147
+ Added@ckeditor/ckeditor5-adapter-ckfinder@0.0.0-nightly-20241217.0(transitive)
+ Added@ckeditor/ckeditor5-alignment@0.0.0-nightly-20241217.0(transitive)
+ Added@ckeditor/ckeditor5-autoformat@0.0.0-nightly-20241217.0(transitive)
+ Added@ckeditor/ckeditor5-autosave@0.0.0-nightly-20241217.0(transitive)
+ Added@ckeditor/ckeditor5-basic-styles@0.0.0-nightly-20241217.0(transitive)
+ Added@ckeditor/ckeditor5-block-quote@0.0.0-nightly-20241217.0(transitive)
+ Added@ckeditor/ckeditor5-bookmark@0.0.0-nightly-20241217.0(transitive)
+ Added@ckeditor/ckeditor5-ckbox@0.0.0-nightly-20241217.0(transitive)
+ Added@ckeditor/ckeditor5-ckfinder@0.0.0-nightly-20241217.0(transitive)
+ Added@ckeditor/ckeditor5-clipboard@0.0.0-nightly-20241217.0(transitive)
+ Added@ckeditor/ckeditor5-cloud-services@0.0.0-nightly-20241217.0(transitive)
+ Added@ckeditor/ckeditor5-code-block@0.0.0-nightly-20241217.0(transitive)
+ Added@ckeditor/ckeditor5-core@0.0.0-nightly-20241217.0(transitive)
+ Added@ckeditor/ckeditor5-easy-image@0.0.0-nightly-20241217.0(transitive)
+ Added@ckeditor/ckeditor5-editor-balloon@0.0.0-nightly-20241217.0(transitive)
+ Added@ckeditor/ckeditor5-editor-classic@0.0.0-nightly-20241217.0(transitive)
+ Added@ckeditor/ckeditor5-editor-decoupled@0.0.0-nightly-20241217.0(transitive)
+ Added@ckeditor/ckeditor5-editor-inline@0.0.0-nightly-20241217.0(transitive)
+ Added@ckeditor/ckeditor5-editor-multi-root@0.0.0-nightly-20241217.0(transitive)
+ Added@ckeditor/ckeditor5-engine@0.0.0-nightly-20241217.0(transitive)
+ Added@ckeditor/ckeditor5-enter@0.0.0-nightly-20241217.0(transitive)
+ Added@ckeditor/ckeditor5-essentials@0.0.0-nightly-20241217.0(transitive)
+ Added@ckeditor/ckeditor5-find-and-replace@0.0.0-nightly-20241217.0(transitive)
+ Added@ckeditor/ckeditor5-font@0.0.0-nightly-20241217.0(transitive)
+ Added@ckeditor/ckeditor5-heading@0.0.0-nightly-20241217.0(transitive)
+ Added@ckeditor/ckeditor5-highlight@0.0.0-nightly-20241217.0(transitive)
+ Added@ckeditor/ckeditor5-horizontal-line@0.0.0-nightly-20241217.0(transitive)
+ Added@ckeditor/ckeditor5-html-embed@0.0.0-nightly-20241217.0(transitive)
+ Added@ckeditor/ckeditor5-html-support@0.0.0-nightly-20241217.0(transitive)
+ Added@ckeditor/ckeditor5-image@0.0.0-nightly-20241217.0(transitive)
+ Added@ckeditor/ckeditor5-indent@0.0.0-nightly-20241217.0(transitive)
+ Added@ckeditor/ckeditor5-language@0.0.0-nightly-20241217.0(transitive)
+ Added@ckeditor/ckeditor5-link@0.0.0-nightly-20241217.0(transitive)
+ Added@ckeditor/ckeditor5-list@0.0.0-nightly-20241217.0(transitive)
+ Added@ckeditor/ckeditor5-markdown-gfm@0.0.0-nightly-20241217.0(transitive)
+ Added@ckeditor/ckeditor5-media-embed@0.0.0-nightly-20241217.0(transitive)
+ Added@ckeditor/ckeditor5-mention@0.0.0-nightly-20241217.0(transitive)
+ Added@ckeditor/ckeditor5-minimap@0.0.0-nightly-20241217.0(transitive)
+ Added@ckeditor/ckeditor5-page-break@0.0.0-nightly-20241217.0(transitive)
+ Added@ckeditor/ckeditor5-paragraph@0.0.0-nightly-20241217.0(transitive)
+ Added@ckeditor/ckeditor5-paste-from-office@0.0.0-nightly-20241217.0(transitive)
+ Added@ckeditor/ckeditor5-restricted-editing@0.0.0-nightly-20241217.0(transitive)
+ Added@ckeditor/ckeditor5-select-all@0.0.0-nightly-20241217.0(transitive)
+ Added@ckeditor/ckeditor5-show-blocks@0.0.0-nightly-20241217.0(transitive)
+ Added@ckeditor/ckeditor5-source-editing@0.0.0-nightly-20241217.0(transitive)
+ Added@ckeditor/ckeditor5-special-characters@0.0.0-nightly-20241217.0(transitive)
+ Added@ckeditor/ckeditor5-style@0.0.0-nightly-20241217.0(transitive)
+ Added@ckeditor/ckeditor5-table@0.0.0-nightly-20241217.0(transitive)
+ Added@ckeditor/ckeditor5-theme-lark@0.0.0-nightly-20241217.0(transitive)
+ Added@ckeditor/ckeditor5-typing@0.0.0-nightly-20241217.0(transitive)
+ Added@ckeditor/ckeditor5-ui@0.0.0-nightly-20241217.0(transitive)
+ Added@ckeditor/ckeditor5-undo@0.0.0-nightly-20241217.0(transitive)
+ Added@ckeditor/ckeditor5-upload@0.0.0-nightly-20241217.0(transitive)
+ Added@ckeditor/ckeditor5-utils@0.0.0-nightly-20241217.0(transitive)
+ Added@ckeditor/ckeditor5-watchdog@0.0.0-nightly-20241217.0(transitive)
+ Added@ckeditor/ckeditor5-widget@0.0.0-nightly-20241217.0(transitive)
+ Added@ckeditor/ckeditor5-word-count@0.0.0-nightly-20241217.0(transitive)
+ Addedckeditor5@0.0.0-nightly-20241217.0(transitive)
- Removed@ckeditor/ckeditor5-adapter-ckfinder@0.0.0-nightly-20241216.0(transitive)
- Removed@ckeditor/ckeditor5-alignment@0.0.0-nightly-20241216.0(transitive)
- Removed@ckeditor/ckeditor5-autoformat@0.0.0-nightly-20241216.0(transitive)
- Removed@ckeditor/ckeditor5-autosave@0.0.0-nightly-20241216.0(transitive)
- Removed@ckeditor/ckeditor5-basic-styles@0.0.0-nightly-20241216.0(transitive)
- Removed@ckeditor/ckeditor5-block-quote@0.0.0-nightly-20241216.0(transitive)
- Removed@ckeditor/ckeditor5-bookmark@0.0.0-nightly-20241216.0(transitive)
- Removed@ckeditor/ckeditor5-ckbox@0.0.0-nightly-20241216.0(transitive)
- Removed@ckeditor/ckeditor5-ckfinder@0.0.0-nightly-20241216.0(transitive)
- Removed@ckeditor/ckeditor5-clipboard@0.0.0-nightly-20241216.0(transitive)
- Removed@ckeditor/ckeditor5-cloud-services@0.0.0-nightly-20241216.0(transitive)
- Removed@ckeditor/ckeditor5-code-block@0.0.0-nightly-20241216.0(transitive)
- Removed@ckeditor/ckeditor5-core@0.0.0-nightly-20241216.0(transitive)
- Removed@ckeditor/ckeditor5-easy-image@0.0.0-nightly-20241216.0(transitive)
- Removed@ckeditor/ckeditor5-editor-balloon@0.0.0-nightly-20241216.0(transitive)
- Removed@ckeditor/ckeditor5-editor-classic@0.0.0-nightly-20241216.0(transitive)
- Removed@ckeditor/ckeditor5-editor-decoupled@0.0.0-nightly-20241216.0(transitive)
- Removed@ckeditor/ckeditor5-editor-inline@0.0.0-nightly-20241216.0(transitive)
- Removed@ckeditor/ckeditor5-editor-multi-root@0.0.0-nightly-20241216.0(transitive)
- Removed@ckeditor/ckeditor5-engine@0.0.0-nightly-20241216.0(transitive)
- Removed@ckeditor/ckeditor5-enter@0.0.0-nightly-20241216.0(transitive)
- Removed@ckeditor/ckeditor5-essentials@0.0.0-nightly-20241216.0(transitive)
- Removed@ckeditor/ckeditor5-find-and-replace@0.0.0-nightly-20241216.0(transitive)
- Removed@ckeditor/ckeditor5-font@0.0.0-nightly-20241216.0(transitive)
- Removed@ckeditor/ckeditor5-heading@0.0.0-nightly-20241216.0(transitive)
- Removed@ckeditor/ckeditor5-highlight@0.0.0-nightly-20241216.0(transitive)
- Removed@ckeditor/ckeditor5-horizontal-line@0.0.0-nightly-20241216.0(transitive)
- Removed@ckeditor/ckeditor5-html-embed@0.0.0-nightly-20241216.0(transitive)
- Removed@ckeditor/ckeditor5-html-support@0.0.0-nightly-20241216.0(transitive)
- Removed@ckeditor/ckeditor5-image@0.0.0-nightly-20241216.0(transitive)
- Removed@ckeditor/ckeditor5-indent@0.0.0-nightly-20241216.0(transitive)
- Removed@ckeditor/ckeditor5-language@0.0.0-nightly-20241216.0(transitive)
- Removed@ckeditor/ckeditor5-link@0.0.0-nightly-20241216.0(transitive)
- Removed@ckeditor/ckeditor5-list@0.0.0-nightly-20241216.0(transitive)
- Removed@ckeditor/ckeditor5-markdown-gfm@0.0.0-nightly-20241216.0(transitive)
- Removed@ckeditor/ckeditor5-media-embed@0.0.0-nightly-20241216.0(transitive)
- Removed@ckeditor/ckeditor5-mention@0.0.0-nightly-20241216.0(transitive)
- Removed@ckeditor/ckeditor5-minimap@0.0.0-nightly-20241216.0(transitive)
- Removed@ckeditor/ckeditor5-page-break@0.0.0-nightly-20241216.0(transitive)
- Removed@ckeditor/ckeditor5-paragraph@0.0.0-nightly-20241216.0(transitive)
- Removed@ckeditor/ckeditor5-paste-from-office@0.0.0-nightly-20241216.0(transitive)
- Removed@ckeditor/ckeditor5-restricted-editing@0.0.0-nightly-20241216.0(transitive)
- Removed@ckeditor/ckeditor5-select-all@0.0.0-nightly-20241216.0(transitive)
- Removed@ckeditor/ckeditor5-show-blocks@0.0.0-nightly-20241216.0(transitive)
- Removed@ckeditor/ckeditor5-source-editing@0.0.0-nightly-20241216.0(transitive)
- Removed@ckeditor/ckeditor5-special-characters@0.0.0-nightly-20241216.0(transitive)
- Removed@ckeditor/ckeditor5-style@0.0.0-nightly-20241216.0(transitive)
- Removed@ckeditor/ckeditor5-table@0.0.0-nightly-20241216.0(transitive)
- Removed@ckeditor/ckeditor5-theme-lark@0.0.0-nightly-20241216.0(transitive)
- Removed@ckeditor/ckeditor5-typing@0.0.0-nightly-20241216.0(transitive)
- Removed@ckeditor/ckeditor5-ui@0.0.0-nightly-20241216.0(transitive)
- Removed@ckeditor/ckeditor5-undo@0.0.0-nightly-20241216.0(transitive)
- Removed@ckeditor/ckeditor5-upload@0.0.0-nightly-20241216.0(transitive)
- Removed@ckeditor/ckeditor5-utils@0.0.0-nightly-20241216.0(transitive)
- Removed@ckeditor/ckeditor5-watchdog@0.0.0-nightly-20241216.0(transitive)
- Removed@ckeditor/ckeditor5-widget@0.0.0-nightly-20241216.0(transitive)
- Removed@ckeditor/ckeditor5-word-count@0.0.0-nightly-20241216.0(transitive)
- Removedckeditor5@0.0.0-nightly-20241216.0(transitive)