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

@ckeditor/ckeditor5-page-break

Package Overview
Dependencies
Maintainers
1
Versions
687
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ckeditor/ckeditor5-page-break - npm Package Compare versions

Comparing version 25.0.0 to 26.0.0

build/page-break.js

34

package.json
{
"name": "@ckeditor/ckeditor5-page-break",
"version": "25.0.0",
"version": "26.0.0",
"description": "Page break 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 PageBreakEditing from './pagebreakediting';

@@ -14,0 +14,0 @@ import PageBreakUI from './pagebreakui';

@@ -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 page break with `model.insertContent` to check if the page break can be placed there.

@@ -103,0 +92,0 @@ //

@@ -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 PageBreakCommand from './pagebreakcommand';
import { toWidget } from '@ckeditor/ckeditor5-widget/src/utils';

@@ -70,10 +71,7 @@ import '../theme/pagebreak.css';

const viewWrapper = writer.createContainerElement( 'div' );
const viewLabelElement = writer.createUIElement(
const viewLabelElement = writer.createRawElement(
'span',
{ class: 'page-break__label' },
function( domDocument ) {
const domElement = this.toDomElement( domDocument );
function( domElement ) {
domElement.innerText = t( 'Page break' );
return domElement;
}

@@ -80,0 +78,0 @@ );

@@ -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 pageBreakIcon from '../theme/icons/pagebreak.svg';

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

export default class PageBreakUI extends Plugin {
/**
* @inheritDoc
*/
static get pluginName() {
return 'PageBreakUI';
}
/**
* @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