Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ckeditor/ckeditor5-remove-format

Package Overview
Dependencies
Maintainers
0
Versions
786
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ckeditor/ckeditor5-remove-format - npm Package Compare versions

Comparing version 0.0.0-nightly-20241216.0 to 0.0.0-nightly-20241217.0

72

dist/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc