@seafile/seafile-editor 0.3.117 → 0.3.118
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/components/add-image-dialog.js +2 -1
- package/dist/components/add-link-dialog.js +2 -1
- package/dist/components/context-menu.js +1 -1
- package/dist/components/shortcut-dialog.js +2 -1
- package/dist/editor/controller/inline-element-controller.js +1 -0
- package/dist/editor/editor-builder.js +5 -3
- package/dist/editor/editor-component/image.js +1 -1
- package/dist/editor/editor-component/textlink-hovermenu.js +1 -1
- package/dist/utils/seafile-markdown2html.js +1 -1
- package/dist/viewer/viewer-image.js +1 -1
- package/package.json +1 -1
|
@@ -53,7 +53,8 @@ var AddImageDialog = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
53
53
|
return /*#__PURE__*/React.createElement(Modal, {
|
|
54
54
|
isOpen: true,
|
|
55
55
|
toggle: this.props.onToggleImageDialog,
|
|
56
|
-
className: this.props.className
|
|
56
|
+
className: this.props.className,
|
|
57
|
+
zIndex: 1071
|
|
57
58
|
}, /*#__PURE__*/React.createElement(ModalHeader, {
|
|
58
59
|
toggle: this.props.onToggleImageDialog
|
|
59
60
|
}, this.props.t('insert_image')), /*#__PURE__*/React.createElement(ModalBody, null, /*#__PURE__*/React.createElement(Form, null, /*#__PURE__*/React.createElement(FormGroup, null, /*#__PURE__*/React.createElement(Label, {
|
|
@@ -104,7 +104,8 @@ var AddLinkDialog = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
104
104
|
isOpen: true,
|
|
105
105
|
autoFocus: false,
|
|
106
106
|
toggle: this.props.toggleLinkDialog,
|
|
107
|
-
className: this.props.className
|
|
107
|
+
className: this.props.className,
|
|
108
|
+
zIndex: 1071
|
|
108
109
|
}, /*#__PURE__*/React.createElement(ModalHeader, {
|
|
109
110
|
toggle: this.props.toggleLinkDialog
|
|
110
111
|
}, this.props.t('insert_link')), /*#__PURE__*/React.createElement(ModalBody, null, /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
@@ -59,7 +59,8 @@ var KeyboardShortcuts = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
59
59
|
return /*#__PURE__*/React.createElement(Modal, {
|
|
60
60
|
isOpen: true,
|
|
61
61
|
toggle: toggleShortcutDialog,
|
|
62
|
-
className: "keyboard-shortcut-dialog"
|
|
62
|
+
className: "keyboard-shortcut-dialog",
|
|
63
|
+
zIndex: 1071
|
|
63
64
|
}, /*#__PURE__*/React.createElement(ModalHeader, {
|
|
64
65
|
toggle: toggleShortcutDialog
|
|
65
66
|
}, /*#__PURE__*/React.createElement("span", {
|
|
@@ -17,6 +17,7 @@ var EditorBuilder = /*#__PURE__*/function () {
|
|
|
17
17
|
_classCallCheck(this, EditorBuilder);
|
|
18
18
|
|
|
19
19
|
this.editor = null;
|
|
20
|
+
this.slateEditor = null;
|
|
20
21
|
this.plugin = null;
|
|
21
22
|
this.tableUtils = null;
|
|
22
23
|
this.editorUtils = null;
|
|
@@ -59,14 +60,15 @@ var EditorBuilder = /*#__PURE__*/function () {
|
|
|
59
60
|
}, {
|
|
60
61
|
key: "getSlateEditor",
|
|
61
62
|
value: function getSlateEditor() {
|
|
62
|
-
if (this.
|
|
63
|
-
this.
|
|
64
|
-
return this.
|
|
63
|
+
if (this.slateEditor) return this.slateEditor;
|
|
64
|
+
this.slateEditor = withInline(withVoid(withReact(createEditor())));
|
|
65
|
+
return this.slateEditor;
|
|
65
66
|
}
|
|
66
67
|
}, {
|
|
67
68
|
key: "resetEditor",
|
|
68
69
|
value: function resetEditor() {
|
|
69
70
|
this.editor = null;
|
|
71
|
+
this.slateEditor = null;
|
|
70
72
|
this.plugin = null;
|
|
71
73
|
this.editorUtils = null;
|
|
72
74
|
this.tableUtils = null;
|