@ckeditor/ckeditor5-engine
Advanced tools
Comparing version 13.1.0 to 13.1.1
{ | ||
"name": "@ckeditor/ckeditor5-engine", | ||
"version": "13.1.0", | ||
"version": "13.1.1", | ||
"description": "The editing engine of CKEditor 5 – the best browser-based rich text editor.", | ||
@@ -24,19 +24,20 @@ "keywords": [ | ||
"dependencies": { | ||
"@ckeditor/ckeditor5-utils": "^12.1.0", | ||
"@ckeditor/ckeditor5-utils": "^12.1.1", | ||
"lodash-es": "^4.17.10" | ||
}, | ||
"devDependencies": { | ||
"@ckeditor/ckeditor5-basic-styles": "^11.1.0", | ||
"@ckeditor/ckeditor5-block-quote": "^11.0.1", | ||
"@ckeditor/ckeditor5-core": "^12.1.0", | ||
"@ckeditor/ckeditor5-editor-classic": "^12.1.0", | ||
"@ckeditor/ckeditor5-enter": "^11.0.1", | ||
"@ckeditor/ckeditor5-essentials": "^11.0.1", | ||
"@ckeditor/ckeditor5-heading": "^11.0.1", | ||
"@ckeditor/ckeditor5-link": "^11.0.1", | ||
"@ckeditor/ckeditor5-list": "^12.0.1", | ||
"@ckeditor/ckeditor5-paragraph": "^11.0.1", | ||
"@ckeditor/ckeditor5-typing": "^12.0.1", | ||
"@ckeditor/ckeditor5-undo": "^11.0.1", | ||
"@ckeditor/ckeditor5-widget": "^11.0.1", | ||
"@ckeditor/ckeditor5-basic-styles": "^11.1.1", | ||
"@ckeditor/ckeditor5-block-quote": "^11.1.0", | ||
"@ckeditor/ckeditor5-core": "^12.1.1", | ||
"@ckeditor/ckeditor5-editor-classic": "^12.1.1", | ||
"@ckeditor/ckeditor5-enter": "^11.0.2", | ||
"@ckeditor/ckeditor5-essentials": "^11.0.2", | ||
"@ckeditor/ckeditor5-heading": "^11.0.2", | ||
"@ckeditor/ckeditor5-link": "^11.0.2", | ||
"@ckeditor/ckeditor5-list": "^12.0.2", | ||
"@ckeditor/ckeditor5-paragraph": "^11.0.2", | ||
"@ckeditor/ckeditor5-theme-lark": "^14.0.0", | ||
"@ckeditor/ckeditor5-typing": "^12.0.2", | ||
"@ckeditor/ckeditor5-undo": "^11.0.2", | ||
"@ckeditor/ckeditor5-widget": "^11.0.2", | ||
"eslint": "^5.5.0", | ||
@@ -43,0 +44,0 @@ "eslint-config-ckeditor5": "^1.0.11", |
@@ -35,2 +35,2 @@ CKEditor 5 editing engine | ||
Licensed under the terms of [GNU General Public License Version 2 or later](http://www.gnu.org/licenses/gpl.html). For full details about the license, please check the `LICENSE.md` file. | ||
Licensed under the terms of [GNU General Public License Version 2 or later](http://www.gnu.org/licenses/gpl.html). For full details about the license, please check the `LICENSE.md` file or [https://ckeditor.com/legal/ckeditor-oss-license](https://ckeditor.com/legal/ckeditor-oss-license). |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -300,2 +300,3 @@ | ||
let newData = {}; | ||
if ( typeof data === 'string' ) { | ||
@@ -302,0 +303,0 @@ newData.main = data; // Default root is 'main'. To set data on a different root, object should be passed. |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -24,3 +24,6 @@ | ||
* | ||
* Mapper use bound elements to find corresponding elements and positions, so, to get proper results, | ||
* The instance of the Mapper used for the editing pipeline is available in | ||
* {@link module:engine/controller/editingcontroller~EditingController#mapper `editor.editing.mapper`}. | ||
* | ||
* Mapper uses bound elements to find corresponding elements and positions, so, to get proper results, | ||
* all model elements should be {@link module:engine/conversion/mapper~Mapper#bindElements bound}. | ||
@@ -27,0 +30,0 @@ * |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -44,3 +44,3 @@ | ||
* // Converter for links (<a>). | ||
* upcastDispatcher.on( 'element:a', ( evt, data, conversionApi ) => { | ||
* editor.data.upcastDispatcher.on( 'element:a', ( evt, data, conversionApi ) => { | ||
* if ( conversionApi.consumable.consume( data.viewItem, { name: true, attributes: [ 'href' ] } ) ) { | ||
@@ -60,3 +60,3 @@ * // <a> element is inline and is represented by an attribute in the model. | ||
* // Convert all elements which have no custom converter into paragraph (autoparagraphing). | ||
* data.viewToModel.on( 'element', ( evt, data, conversionApi ) => { | ||
* editor.data.upcastDispatcher.on( 'element', ( evt, data, conversionApi ) => { | ||
* // When element is already consumed by higher priority converters then do nothing. | ||
@@ -63,0 +63,0 @@ * if ( conversionApi.consumable.test( data.viewItem, { name: data.viewItem.name } ) ) { |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -310,2 +310,5 @@ | ||
// Refresh selection attributes according to the final position in the model after the change. | ||
this.selection.refresh(); | ||
if ( this.differ.hasDataChanges() ) { | ||
@@ -317,2 +320,6 @@ this.fire( 'change:data', writer.batch ); | ||
// Theoretically, it is not necessary to refresh selection after change event because | ||
// post-fixers are the last who should change the model, but just in case... | ||
this.selection.refresh(); | ||
this.differ.reset(); | ||
@@ -396,2 +403,10 @@ } | ||
for ( const callback of this._postFixers ) { | ||
// Ensure selection attributes are up to date before each post-fixer. | ||
// https://github.com/ckeditor/ckeditor5-engine/issues/1673. | ||
// | ||
// It might be good to refresh the selection after each operation but at the moment it leads | ||
// to losing attributes for composition or and spell checking | ||
// https://github.com/ckeditor/ckeditor5-typing/issues/188 | ||
this.selection.refresh(); | ||
wasFixed = callback( writer ); | ||
@@ -398,0 +413,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -363,2 +363,10 @@ | ||
/** | ||
* Refreshes selection attributes and markers according to the current position in the model. | ||
*/ | ||
refresh() { | ||
this._selection._updateMarkers(); | ||
this._selection._updateAttributes( false ); | ||
} | ||
/** | ||
* Checks whether object is of given type following the convention set by | ||
@@ -602,2 +610,22 @@ * {@link module:engine/model/node~Node#is `Node#is()`}. | ||
// Ensure selection is correct after each operation. | ||
this.listenTo( this._model, 'applyOperation', ( evt, args ) => { | ||
const operation = args[ 0 ]; | ||
if ( !operation.isDocumentOperation || operation.type == 'marker' || operation.type == 'rename' || operation.type == 'noop' ) { | ||
return; | ||
} | ||
while ( this._fixGraveyardRangesData.length ) { | ||
const { liveRange, sourcePosition } = this._fixGraveyardRangesData.shift(); | ||
this._fixGraveyardSelection( liveRange, sourcePosition ); | ||
} | ||
if ( this._hasChangedRange ) { | ||
this._hasChangedRange = false; | ||
this.fire( 'change:range', { directChange: false } ); | ||
} | ||
}, { priority: 'lowest' } ); | ||
// Ensure selection is correct and up to date after each range change. | ||
@@ -620,5 +648,2 @@ this.on( 'change:range', () => { | ||
} | ||
this._updateMarkers(); | ||
this._updateAttributes( false ); | ||
} ); | ||
@@ -629,26 +654,3 @@ | ||
// Ensure selection is correct and up to date after each operation. | ||
this.listenTo( this._model, 'applyOperation', ( evt, args ) => { | ||
const operation = args[ 0 ]; | ||
if ( !operation.isDocumentOperation || operation.type == 'marker' || operation.type == 'rename' || operation.type == 'noop' ) { | ||
return; | ||
} | ||
while ( this._fixGraveyardRangesData.length ) { | ||
const { liveRange, sourcePosition } = this._fixGraveyardRangesData.shift(); | ||
this._fixGraveyardSelection( liveRange, sourcePosition ); | ||
} | ||
if ( this._hasChangedRange ) { | ||
this._hasChangedRange = false; | ||
this.fire( 'change:range', { directChange: false } ); | ||
} | ||
this._updateMarkers(); | ||
this._updateAttributes( false ); | ||
}, { priority: 'lowest' } ); | ||
// Clear selection attributes from element if no longer empty. | ||
// Ensure selection is up to date after each change block. | ||
this.listenTo( this._document, 'change', ( evt, batch ) => { | ||
@@ -722,3 +724,3 @@ clearAttributesStoredInElement( this._model, batch ); | ||
super.setTo( selectable, optionsOrPlaceOrOffset, options ); | ||
this._refreshAttributes(); | ||
this._updateAttributes( true ); | ||
} | ||
@@ -728,3 +730,3 @@ | ||
super.setFocus( itemOrPosition, offset ); | ||
this._refreshAttributes(); | ||
this._updateAttributes( true ); | ||
} | ||
@@ -756,3 +758,3 @@ | ||
if ( this._overriddenGravityRegister.size === 1 ) { | ||
this._refreshAttributes(); | ||
this._updateAttributes( true ); | ||
} | ||
@@ -783,11 +785,6 @@ | ||
if ( !this.isGravityOverridden ) { | ||
this._refreshAttributes(); | ||
this._updateAttributes( true ); | ||
} | ||
} | ||
// Removes all attributes from the selection and sets attributes according to the surrounding nodes. | ||
_refreshAttributes() { | ||
this._updateAttributes( true ); | ||
} | ||
_popRange() { | ||
@@ -794,0 +791,0 @@ this._ranges.pop().detach(); |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -1352,6 +1352,27 @@ | ||
const affectedOnLeft = markerRange.start.parent == elementBefore && markerRange.start.isAtEnd; | ||
const affectedOnRight = markerRange.end.parent == elementAfter && markerRange.end.offset == 0; | ||
// Start: <p>Foo[</p><p>Bar]</p> | ||
// After merge: <p>Foo[Bar]</p> | ||
// After undoing split: <p>Foo</p><p>[Bar]</p> <-- incorrect, needs remembering for undo. | ||
// | ||
const affectedInLeftElement = markerRange.start.parent == elementBefore && markerRange.start.isAtEnd; | ||
isAffected = affectedOnLeft || affectedOnRight; | ||
// Start: <p>[Foo</p><p>]Bar</p> | ||
// After merge: <p>[Foo]Bar</p> | ||
// After undoing split: <p>[Foo]</p><p>Bar</p> <-- incorrect, needs remembering for undo. | ||
// | ||
const affectedInRightElement = markerRange.end.parent == elementAfter && markerRange.end.offset == 0; | ||
// Start: <p>[Foo</p>]<p>Bar</p> | ||
// After merge: <p>[Foo]Bar</p> | ||
// After undoing split: <p>[Foo]</p><p>Bar</p> <-- incorrect, needs remembering for undo. | ||
// | ||
const affectedAfterLeftElement = markerRange.end.nodeAfter == elementAfter; | ||
// Start: <p>Foo</p>[<p>Bar]</p> | ||
// After merge: <p>Foo[Bar]</p> | ||
// After undoing split: <p>Foo</p><p>[Bar]</p> <-- incorrect, needs remembering for undo. | ||
// | ||
const affectedBeforeRightElement = markerRange.start.nodeAfter == elementAfter; | ||
isAffected = affectedInLeftElement || affectedInRightElement || affectedAfterLeftElement || affectedBeforeRightElement; | ||
} | ||
@@ -1358,0 +1379,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -32,2 +32,4 @@ | ||
* | ||
* The instance of DOMConverter is available in {@link module:engine/view/view~View#domConverter `editor.editing.view.domConverter`}. | ||
* | ||
* DomConverter does not check which nodes should be rendered (use {@link module:engine/view/renderer~Renderer}), does not keep a | ||
@@ -34,0 +36,0 @@ * state of a tree nor keeps synchronization between tree view and DOM tree (use {@link module:engine/view/document~Document}). |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -6,0 +6,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -24,5 +24,5 @@ | ||
* | ||
* * {@module:engine/view/view~View} | ||
* * {@module:engine/view/downcastwriter~DowncastWriter} | ||
* * {@module:engine/view/upcastwriter~UpcastWriter} | ||
* * {@link module:engine/view/view~View} | ||
* * {@link module:engine/view/downcastwriter~DowncastWriter} | ||
* * {@link module:engine/view/upcastwriter~UpcastWriter} | ||
*/ | ||
@@ -29,0 +29,0 @@ export default class Position { |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -18,5 +18,5 @@ | ||
* | ||
* * {@module:engine/view/view~View} | ||
* * {@module:engine/view/downcastwriter~DowncastWriter} | ||
* * {@module:engine/view/upcastwriter~UpcastWriter} | ||
* * {@link module:engine/view/view~View} | ||
* * {@link module:engine/view/downcastwriter~DowncastWriter} | ||
* * {@link module:engine/view/upcastwriter~UpcastWriter} | ||
*/ | ||
@@ -23,0 +23,0 @@ export default class Range { |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
@@ -5,0 +5,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
1590543
35972
18