@seafile/seafile-editor 1.0.84-alpha2 → 1.0.84-alpha4

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.
@@ -30,11 +30,11 @@
30
30
  }
31
31
 
32
32
  .sf-long-text-inline-editor-container .sf-simple-slate-editor-container .sf-slate-editor-content {
33
- flex: 1;
33
+ flex: 1 !important;
34
34
  }
35
35
 
36
36
  .sf-long-text-inline-editor-container .sf-simple-slate-editor-container .sf-slate-editor-content .article {
37
- padding: 16px;
37
+ padding: 16px !important;
38
38
  }
39
39
 
40
40
  /* preview */
@@ -43,23 +43,27 @@
43
43
  background-color: #fff;
44
44
  }
45
45
 
46
- .sf-long-text-inline-editor-container .sf-simple-slate-editor-container .sf-slate-editor-content .article > div[role="textbox"] > :first-child {
47
- margin-top: 0;
46
+ .sf-long-text-inline-editor-container .sf-slate-editor-content .article > div[role="textbox"] > :first-child {
47
+ margin-top: 0 !important;
48
48
  }
49
49
 
50
- .sf-long-text-inline-editor-container .sf-simple-slate-editor-container .sf-slate-editor-toolbar .sf-menu-group,
50
+ .sf-long-text-inline-editor-container .sf-slate-editor-toolbar .sf-menu-group,
51
51
  .sf-editor-menu-popover .popover-inner .sf-menu-group {
52
- padding: 4px 0 4px 8px;
52
+ padding: 4px 0 4px 8px !important;
53
53
  }
54
54
 
55
- .sf-long-text-inline-editor-container .sf-simple-slate-editor-container .sf-slate-editor-toolbar .sf-menu-group:first-child {
56
- padding-left: 0px;
57
- flex: 1;
55
+ .sf-long-text-inline-editor-container .sf-slate-editor-toolbar .sf-menu-group:first-child {
56
+ padding-left: 0px !important;
57
+ flex: 1 !important;
58
58
  }
59
59
 
60
- .sf-long-text-inline-editor-container .sf-simple-slate-editor-container .sf-slate-editor-toolbar .sf-header-menu {
61
- padding: 4px 6px 4px 0;
62
- width: 100%;
60
+ .sf-long-text-inline-editor-container .sf-slate-editor-toolbar .sf-header-menu {
61
+ padding: 4px 6px 4px 0 !important;
62
+ width: 100% !important;
63
+ }
64
+
65
+ .sf-long-text-inline-editor-container .sf-slate-editor-toolbar .sf-header-toggle {
66
+ padding: 0 3px 0 6px !important;
63
67
  }
64
68
 
65
69
  .sf-editor-menu-popover .popover-inner {
@@ -107,6 +107,7 @@ const LongTextInlineEditor = _ref => {
107
107
  isInline: true,
108
108
  ref: editorRef,
109
109
  value: value.text,
110
+ onSave: handelAutoSave,
110
111
  editorApi: editorApi,
111
112
  onContentChanged: onContentChanged,
112
113
  onExpandEditorToggle: openEditorDialog
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/seafile-editor",
3
- "version": "1.0.84alpha2",
3
+ "version": "1.0.84alpha4",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {