@seafile/sdoc-editor 2.0.195 → 2.0.196
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.
|
@@ -110,6 +110,7 @@ var withBlockquote = function withBlockquote(editor) {
|
|
|
110
110
|
var elements = (0, _helpers.getFormattedElements)(data.slice(0, lastIndex + 1));
|
|
111
111
|
var restElements = (0, _helpers.getFormattedRestElements)(data.slice(lastIndex + 1));
|
|
112
112
|
var path = _slate.Editor.path(newEditor, newEditor.selection);
|
|
113
|
+
console.log(elements);
|
|
113
114
|
|
|
114
115
|
// Insert elements of quote block
|
|
115
116
|
if (restElements.length !== 0) {
|
|
@@ -143,6 +144,7 @@ var withBlockquote = function withBlockquote(editor) {
|
|
|
143
144
|
|
|
144
145
|
// Insert elements above the quoted block
|
|
145
146
|
if (elements.length !== 0) {
|
|
147
|
+
console.log(elements);
|
|
146
148
|
_slate.Transforms.insertNodes(newEditor, elements, {
|
|
147
149
|
at: [path[0]]
|
|
148
150
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seafile/sdoc-editor",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.196",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "jest",
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
"publishConfig": {
|
|
72
72
|
"access": "public"
|
|
73
73
|
},
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "d2a4f9a77cc821ace730e164a4c34024972a8fe1"
|
|
75
75
|
}
|