Socket
Socket
Sign inDemoInstall

@ckeditor/ckeditor5-horizontal-line

Package Overview
Dependencies
Maintainers
1
Versions
626
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ckeditor/ckeditor5-horizontal-line - npm Package Compare versions

Comparing version 25.0.0 to 26.0.0

build/horizontal-line.js

34

package.json
{
"name": "@ckeditor/ckeditor5-horizontal-line",
"version": "25.0.0",
"version": "26.0.0",
"description": "Horizontal line feature for CKEditor 5.",

@@ -12,14 +12,20 @@ "keywords": [

],
"main": "src/index.js",
"dependencies": {
"@ckeditor/ckeditor5-core": "^25.0.0",
"@ckeditor/ckeditor5-ui": "^25.0.0",
"@ckeditor/ckeditor5-widget": "^25.0.0"
"ckeditor5": "^26.0.0"
},
"devDependencies": {
"@ckeditor/ckeditor5-cloud-services": "^25.0.0",
"@ckeditor/ckeditor5-engine": "^25.0.0",
"@ckeditor/ckeditor5-editor-classic": "^25.0.0",
"@ckeditor/ckeditor5-easy-image": "^25.0.0",
"@ckeditor/ckeditor5-image": "^25.0.0",
"@ckeditor/ckeditor5-paragraph": "^25.0.0"
"@ckeditor/ckeditor5-cloud-services": "^26.0.0",
"@ckeditor/ckeditor5-core": "^26.0.0",
"@ckeditor/ckeditor5-dev-utils": "^24.0.0",
"@ckeditor/ckeditor5-easy-image": "^26.0.0",
"@ckeditor/ckeditor5-editor-classic": "^26.0.0",
"@ckeditor/ckeditor5-engine": "^26.0.0",
"@ckeditor/ckeditor5-image": "^26.0.0",
"@ckeditor/ckeditor5-paragraph": "^26.0.0",
"@ckeditor/ckeditor5-theme-lark": "^26.0.0",
"@ckeditor/ckeditor5-ui": "^26.0.0",
"@ckeditor/ckeditor5-widget": "^26.0.0",
"webpack": "^4.43.0",
"webpack-cli": "^3.3.11"
},

@@ -42,4 +48,8 @@ "engines": {

"src",
"theme"
]
"theme",
"build"
],
"scripts": {
"dll:build": "webpack"
}
}

@@ -10,4 +10,4 @@ /**

import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
import Widget from '@ckeditor/ckeditor5-widget/src/widget';
import { Plugin } from 'ckeditor5/src/core';
import { Widget } from 'ckeditor5/src/widget';
import HorizontalLineEditing from './horizontallineediting';

@@ -14,0 +14,0 @@ import HorizontalLineUI from './horizontallineui';

@@ -10,4 +10,4 @@ /**

import Command from '@ckeditor/ckeditor5-core/src/command';
import { findOptimalInsertionPosition } from '@ckeditor/ckeditor5-widget/src/utils';
import { Command } from 'ckeditor5/src/core';
import { findOptimalInsertionPosition, checkSelectionOnObject } from 'ckeditor5/src/widget';

@@ -90,13 +90,2 @@ /**

// Checks if the selection is on object.
//
// @param {module:engine/model/selection~Selection|module:engine/model/documentselection~DocumentSelection} selection
// @param {module:engine/model/schema~Schema} schema
// @returns {Boolean}
function checkSelectionOnObject( selection, schema ) {
const selectedElement = selection.getSelectedElement();
return selectedElement && schema.isObject( selectedElement );
}
// Returns a node that will be used to insert a horizontal line with `model.insertContent` to check if the horizontal line can be

@@ -103,0 +92,0 @@ // placed there.

@@ -10,5 +10,6 @@ /**

import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
import { Plugin } from 'ckeditor5/src/core';
import { toWidget } from 'ckeditor5/src/widget';
import HorizontalLineCommand from './horizontallinecommand';
import { toWidget } from '@ckeditor/ckeditor5-widget/src/utils';

@@ -15,0 +16,0 @@ import '../theme/horizontalline.css';

@@ -10,4 +10,5 @@ /**

import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
import ButtonView from '@ckeditor/ckeditor5-ui/src/button/buttonview';
import { Plugin } from 'ckeditor5/src/core';
import { ButtonView } from 'ckeditor5/src/ui';
import horizontalLineIcon from '../theme/icons/horizontalline.svg';

@@ -21,2 +22,12 @@

export default class HorizontalLineUI extends Plugin {
/**
* @inheritDoc
*/
static get pluginName() {
return 'HorizontalLineUI';
}
/**
* @inheritDoc
*/
init() {

@@ -23,0 +34,0 @@ const editor = this.editor;

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