@seafile/seafile-editor 1.0.63 → 1.0.65

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.
@@ -70,6 +70,16 @@
70
70
  border: none;
71
71
  background-color: #fff;
72
72
  min-height: 100%;
73
+ color: #212529;
74
+ }
75
+
76
+ .sf-simple-slate-editor-container .sf-slate-editor-content .article h1,
77
+ .sf-simple-slate-editor-container .sf-slate-editor-content .article h2,
78
+ .sf-simple-slate-editor-container .sf-slate-editor-content .article h3,
79
+ .sf-simple-slate-editor-container .sf-slate-editor-content .article h4,
80
+ .sf-simple-slate-editor-container .sf-slate-editor-content .article h5,
81
+ .sf-simple-slate-editor-container .sf-slate-editor-content .article h6 {
82
+ color: #212529;
73
83
  }
74
84
 
75
85
  .sf-simple-slate-editor-container .sf-slate-editor-content .article div:first-child {
@@ -69,6 +69,15 @@
69
69
  color: #212529;
70
70
  }
71
71
 
72
+ .sf-slate-editor-container .sf-slate-editor-content .article h1,
73
+ .sf-slate-editor-container .sf-slate-editor-content .article h2,
74
+ .sf-slate-editor-container .sf-slate-editor-content .article h3,
75
+ .sf-slate-editor-container .sf-slate-editor-content .article h4,
76
+ .sf-slate-editor-container .sf-slate-editor-content .article h5,
77
+ .sf-slate-editor-container .sf-slate-editor-content .article h6 {
78
+ color: #212529;
79
+ }
80
+
72
81
  .sf-slate-editor-container .sf-slate-editor-content .article div:first-child {
73
82
  outline: none;
74
83
  }
@@ -55,6 +55,15 @@
55
55
  color: #212529;
56
56
  }
57
57
 
58
+ .sf-slate-viewer-scroll-container .article h1,
59
+ .sf-slate-viewer-scroll-container .article h2,
60
+ .sf-slate-viewer-scroll-container .article h3,
61
+ .sf-slate-viewer-scroll-container .article h4,
62
+ .sf-slate-viewer-scroll-container .article h5,
63
+ .sf-slate-viewer-scroll-container .article h6 {
64
+ color: #212529;
65
+ }
66
+
58
67
  @media (max-width: 991.98px) {
59
68
  .sf-slate-viewer-article-container {
60
69
  padding: 0 10px;
@@ -101,8 +101,9 @@ const withParagraph = editor => {
101
101
  if (fragment.length === 1 && firstChild.type === _elementTypes.TABLE) {
102
102
  const hasVoidNode = paragraphEntry[0].children.some(item => _slate.Editor.isVoid(newEditor, item));
103
103
  if (_slate.Node.string(paragraphEntry[0]).length === 0 && !hasVoidNode) {
104
- _slate.Transforms.removeNodes(newEditor);
105
- _slate.Transforms.insertNodes(newEditor, fragment);
104
+ _slate.Transforms.insertNodes(newEditor, fragment, {
105
+ at: paragraphEntry[1]
106
+ });
106
107
  return;
107
108
  }
108
109
  const nextPath = _slate.Path.next(paragraphEntry[1]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/seafile-editor",
3
- "version": "1.0.63",
3
+ "version": "1.0.65",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {