@ckeditor/ckeditor5-paste-from-office 47.7.1 → 47.7.2-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
- package/src/filters/list.js +2 -2
- package/src/filters/space.d.ts +3 -1
- package/src/filters/space.js +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-paste-from-office",
|
|
3
|
-
"version": "47.7.
|
|
3
|
+
"version": "47.7.2-alpha.0",
|
|
4
4
|
"description": "Paste from Office feature for CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
"type": "module",
|
|
14
14
|
"main": "src/index.js",
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@ckeditor/ckeditor5-clipboard": "47.7.
|
|
17
|
-
"@ckeditor/ckeditor5-core": "47.7.
|
|
18
|
-
"@ckeditor/ckeditor5-engine": "47.7.
|
|
19
|
-
"ckeditor5": "47.7.
|
|
16
|
+
"@ckeditor/ckeditor5-clipboard": "47.7.2-alpha.0",
|
|
17
|
+
"@ckeditor/ckeditor5-core": "47.7.2-alpha.0",
|
|
18
|
+
"@ckeditor/ckeditor5-engine": "47.7.2-alpha.0",
|
|
19
|
+
"ckeditor5": "47.7.2-alpha.0"
|
|
20
20
|
},
|
|
21
21
|
"author": "CKSource (http://cksource.com/)",
|
|
22
22
|
"license": "SEE LICENSE IN LICENSE.md",
|
package/src/filters/list.js
CHANGED
|
@@ -261,7 +261,7 @@ function isListContinuation(currentItem) {
|
|
|
261
261
|
// If the parent has previous sibling, which is not a list, then it is not a continuation.
|
|
262
262
|
return isList(parent) && (!parent.previousSibling || isList(parent.previousSibling));
|
|
263
263
|
}
|
|
264
|
-
// Even with the same id the list does not have to be continuous (
|
|
264
|
+
// Even with the same id the list does not have to be continuous (https://github.com/ckeditor/ckeditor5/issues/43).
|
|
265
265
|
return isList(previousSibling);
|
|
266
266
|
}
|
|
267
267
|
function isList(element) {
|
|
@@ -448,7 +448,7 @@ function createNewEmptyList(listStyle, writer, hasMultiLevelListPlugin) {
|
|
|
448
448
|
* where:
|
|
449
449
|
*
|
|
450
450
|
* ```
|
|
451
|
-
* * `l1` is a list id (however it does not mean this is a continuous list - see
|
|
451
|
+
* * `l1` is a list id (however it does not mean this is a continuous list - see https://github.com/ckeditor/ckeditor5/issues/43),
|
|
452
452
|
* * `level1` is a list item indentation level,
|
|
453
453
|
* * `lfo1` is a list insertion order in a document.
|
|
454
454
|
* ```
|
package/src/filters/space.d.ts
CHANGED
|
@@ -9,7 +9,9 @@
|
|
|
9
9
|
* Replaces last space preceding elements closing tag with ` `. Such operation prevents spaces from being removed
|
|
10
10
|
* during further DOM/View processing (see especially {@link module:engine/view/domconverter~ViewDomConverter#_processDomInlineNodes}).
|
|
11
11
|
* This method also takes into account Word specific `<o:p></o:p>` empty tags.
|
|
12
|
-
* Additionally multiline sequences of spaces and new lines between tags are removed (see
|
|
12
|
+
* Additionally multiline sequences of spaces and new lines between tags are removed (see
|
|
13
|
+
* https://github.com/ckeditor/ckeditor5-paste-from-office/issues/39
|
|
14
|
+
* and https://github.com/ckeditor/ckeditor5-paste-from-office/issues/40).
|
|
13
15
|
*
|
|
14
16
|
* @param htmlString HTML string in which spacing should be normalized.
|
|
15
17
|
* @returns Input HTML with spaces normalized.
|
package/src/filters/space.js
CHANGED
|
@@ -9,7 +9,9 @@
|
|
|
9
9
|
* Replaces last space preceding elements closing tag with ` `. Such operation prevents spaces from being removed
|
|
10
10
|
* during further DOM/View processing (see especially {@link module:engine/view/domconverter~ViewDomConverter#_processDomInlineNodes}).
|
|
11
11
|
* This method also takes into account Word specific `<o:p></o:p>` empty tags.
|
|
12
|
-
* Additionally multiline sequences of spaces and new lines between tags are removed (see
|
|
12
|
+
* Additionally multiline sequences of spaces and new lines between tags are removed (see
|
|
13
|
+
* https://github.com/ckeditor/ckeditor5-paste-from-office/issues/39
|
|
14
|
+
* and https://github.com/ckeditor/ckeditor5-paste-from-office/issues/40).
|
|
13
15
|
*
|
|
14
16
|
* @param htmlString HTML string in which spacing should be normalized.
|
|
15
17
|
* @returns Input HTML with spaces normalized.
|