@ckeditor/ckeditor5-page-break
Advanced tools
Comparing version 25.0.0 to 26.0.0
{ | ||
"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; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
82467
1
48
351
13
+ Addedckeditor5@^26.0.0
+ Added@ckeditor/ckeditor5-clipboard@26.0.0(transitive)
+ Added@ckeditor/ckeditor5-core@26.0.0(transitive)
+ Added@ckeditor/ckeditor5-engine@26.0.0(transitive)
+ Added@ckeditor/ckeditor5-enter@26.0.0(transitive)
+ Added@ckeditor/ckeditor5-paragraph@26.0.0(transitive)
+ Added@ckeditor/ckeditor5-select-all@26.0.0(transitive)
+ Added@ckeditor/ckeditor5-typing@26.0.0(transitive)
+ Added@ckeditor/ckeditor5-ui@26.0.0(transitive)
+ Added@ckeditor/ckeditor5-undo@26.0.0(transitive)
+ Added@ckeditor/ckeditor5-upload@26.0.0(transitive)
+ Added@ckeditor/ckeditor5-utils@26.0.0(transitive)
+ Added@ckeditor/ckeditor5-widget@26.0.0(transitive)
+ Addedckeditor5@26.0.0(transitive)
- Removed@ckeditor/ckeditor5-core@^25.0.0
- Removed@ckeditor/ckeditor5-ui@^25.0.0
- Removed@ckeditor/ckeditor5-widget@^25.0.0
- Removed@ckeditor/ckeditor5-core@25.0.0(transitive)
- Removed@ckeditor/ckeditor5-engine@25.0.0(transitive)
- Removed@ckeditor/ckeditor5-typing@25.0.0(transitive)
- Removed@ckeditor/ckeditor5-ui@25.0.0(transitive)
- Removed@ckeditor/ckeditor5-utils@25.0.0(transitive)
- Removed@ckeditor/ckeditor5-widget@25.0.0(transitive)