@seafile/seafile-editor 0.3.99 → 0.3.102
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/README.md +42 -110
- package/dist/assets/css/comment-dialog.css +50 -0
- package/dist/{css → assets/css}/diff-viewer.css +0 -0
- package/dist/{css/richeditor → assets/css}/formula.css +0 -0
- package/dist/{css → assets/css}/history-viewer.css +0 -0
- package/dist/{css/richeditor → assets/css}/image.css +0 -0
- package/dist/assets/css/issue-card.css +43 -0
- package/dist/{css → assets/css}/keyboard-shortcuts.css +0 -0
- package/dist/{css/richeditor → assets/css}/link.css +0 -0
- package/dist/{css/plaineditor → assets/css}/markdown-editor.css +0 -0
- package/dist/{css → assets/css}/markdown-viewer.css +0 -0
- package/dist/{css/richeditor → assets/css}/navbar-imgbutton.css +0 -0
- package/dist/assets/css/outline.css +29 -0
- package/dist/{css/richeditor → assets/css}/table.css +0 -0
- package/dist/{css/richeditor → assets/css}/textlink-hovermenu.css +0 -0
- package/dist/{css → assets/css}/topbar.css +38 -146
- package/dist/{css/richeditor → assets/css}/tree-view.css +0 -0
- package/dist/{css/richeditor/right-panel.css → assets/css/user-help.css} +9 -9
- package/dist/assets/editor/plain-editor.css +30 -0
- package/dist/assets/editor/simple-editor.css +77 -0
- package/dist/components/add-formula-dialog.js +6 -4
- package/dist/components/add-image-dialog.js +3 -1
- package/dist/components/add-link-dialog.js +4 -3
- package/dist/components/comment-dialog.js +12 -6
- package/dist/components/markdown-lint.js +1 -0
- package/dist/components/outline/index.js +104 -0
- package/dist/components/outline/outline-item.js +70 -0
- package/dist/components/shortcut-dialog.js +1 -1
- package/dist/components/{topbar-component → toolbar}/header-list.js +0 -0
- package/dist/components/toolbar/help-group.js +40 -0
- package/dist/components/toolbar/index.js +4 -0
- package/dist/components/{topbar-component/upload-img.js → toolbar/insert-image.js} +18 -15
- package/dist/components/toolbar/insert-table.js +155 -0
- package/dist/components/toolbar/table-group.js +82 -0
- package/dist/components/{toolbar.js → toolbar/toolbar.js} +102 -64
- package/dist/components/{topbar-component → toolbar/widgets}/button-group.js +0 -0
- package/dist/components/toolbar/widgets/button-item.js +144 -0
- package/dist/components/toolbar/widgets/drop-list.js +101 -0
- package/dist/components/user-help.js +16 -10
- package/dist/editor/controller/block-element-controller.js +6 -2
- package/dist/editor/controller/inline-element-controller.js +6 -2
- package/dist/editor/editor-builder.js +107 -0
- package/dist/editor/editor-component/formula.js +4 -2
- package/dist/editor/editor-component/image.js +10 -6
- package/dist/editor/editor-component/table.js +1 -1
- package/dist/editor/editor-plugin.js +3 -1
- package/dist/editor/editor.js +1 -32
- package/dist/editor/index.js +97 -0
- package/dist/editor/markdown-editor.js +323 -0
- package/dist/editor/plain-markdown-editor.js +5 -4
- package/dist/editor/simple-editor.js +44 -78
- package/dist/index.js +9 -0
- package/dist/utils/slate2markdown/serialize.js +12 -1
- package/dist/viewer/diff-viewer.js +1 -1
- package/dist/viewer/markdown-viewer.js +16 -15
- package/dist/viewer/slate-viewer.js +40 -28
- package/dist/viewer/viewer-formula.js +1 -1
- package/package.json +18 -17
- package/dist/components/comment-panel.js +0 -431
- package/dist/components/detail-list-view.js +0 -104
- package/dist/components/generate-share-link.js +0 -412
- package/dist/components/internal-link-dialog.js +0 -96
- package/dist/components/outline.js +0 -130
- package/dist/components/participants-list.js +0 -126
- package/dist/components/side-panel.js +0 -174
- package/dist/components/topbar-component/icon-button.js +0 -99
- package/dist/components/topbar-component/insert-file.js +0 -67
- package/dist/components/topbar-component/table-toolbar.js +0 -175
- package/dist/css/layout.css +0 -111
- package/dist/css/markdown-viewer-slate/file-tags-list.css +0 -76
- package/dist/css/react-mentions-default-style.js +0 -76
- package/dist/css/richeditor/comments-list.css +0 -184
- package/dist/css/richeditor/detail-list-view.css +0 -105
- package/dist/css/richeditor/document-info.css +0 -57
- package/dist/css/richeditor/participants-list.css +0 -22
- package/dist/css/richeditor/rich-editor-main.css +0 -32
- package/dist/css/richeditor/side-panel.css +0 -183
- package/dist/editor/rich-markdown-editor.js +0 -521
- package/dist/editor/seafile-editor.js +0 -325
- package/dist/editor-api.js +0 -256
- package/dist/index.css +0 -97
- package/dist/seafile-editor-chooser.js +0 -45
- package/dist/seafile-markdown-editor.js +0 -289
- package/dist/seafile-markdown-viewer.js +0 -78
- package/dist/seafile-simple-editor.js +0 -56
package/README.md
CHANGED
|
@@ -1,119 +1,51 @@
|
|
|
1
|
-
|
|
1
|
+
# Seafile-editor
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
项目是基于 react-slate 组件库的二次封装, 用于满足公司富文本编辑器的使用需求
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## 目录结构
|
|
6
6
|
|
|
7
7
|
```
|
|
8
8
|
seafile-editor/
|
|
9
|
-
|
|
10
|
-
node_modules/
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
index.html
|
|
9
|
+
dist // 打包后的文件
|
|
10
|
+
node_modules/ // 依赖第三方组件库
|
|
11
|
+
public/ // 公共资源文件库
|
|
12
|
+
index.html
|
|
14
13
|
favicon.ico
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
```
|
|
45
|
-
npm install
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
create `src/config.js` with the following contents
|
|
49
|
-
|
|
50
|
-
```
|
|
51
|
-
const serverConfig = {
|
|
52
|
-
serviceUrl: "https://download.seafile.top",
|
|
53
|
-
username: "xxx",
|
|
54
|
-
password: "xxx",
|
|
55
|
-
repoID: "xxxxxxx-xxxx-xxx-xxx-xxxx",
|
|
56
|
-
userInfo: {
|
|
57
|
-
username: 'xxx',
|
|
58
|
-
name: 'xxx',
|
|
59
|
-
contact_email: 'xxxx',
|
|
60
|
-
},
|
|
61
|
-
filePath: '/demo.md',
|
|
62
|
-
fileName: 'demo.md',
|
|
63
|
-
dirPath: '/'
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export { serverConfig }
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
Make sure you have a file `test.md` in the root of your Seafile library.
|
|
70
|
-
|
|
71
|
-
Start the example application
|
|
72
|
-
|
|
73
|
-
```
|
|
74
|
-
npm start
|
|
14
|
+
site(demo 模块, 基于组件库创建的测试模块)
|
|
15
|
+
_i18n // 国际化模块
|
|
16
|
+
api // api 模块
|
|
17
|
+
assets // css 文件, 图片文件
|
|
18
|
+
commons // 公共组件
|
|
19
|
+
components // 应用组件
|
|
20
|
+
containers // 容器组件
|
|
21
|
+
pages // 页面组件
|
|
22
|
+
app.js // 应用对象
|
|
23
|
+
index.html // 主页
|
|
24
|
+
index.js // 应用入口
|
|
25
|
+
setting.js // 应用配置文件
|
|
26
|
+
setting.local.dist.js // 应用配置模版
|
|
27
|
+
setting.local.dist // 用户基于 setting.local.dist.js copy 一份的配置文件
|
|
28
|
+
src/(组件库)
|
|
29
|
+
assets // css 文件, 资源文件
|
|
30
|
+
components // 封装的视图组件
|
|
31
|
+
editor // 封装的编辑器组件
|
|
32
|
+
lib // 底层接口
|
|
33
|
+
utils // 工具接口
|
|
34
|
+
viewer // 封装的视图组件
|
|
35
|
+
index.js // 组件库导出内容入口文件
|
|
36
|
+
tests // 测试
|
|
37
|
+
webpack // site 打包文件
|
|
38
|
+
config.js // site 打包配置文件
|
|
39
|
+
dev-server.js // site 后端服务器
|
|
40
|
+
package.json
|
|
41
|
+
readme.md // 组件库说明文档
|
|
75
42
|
```
|
|
76
43
|
|
|
44
|
+
## 本地测试步骤
|
|
45
|
+
1. 新增本地配置文件 setting.local.js(基于 /site/setting.local.dist.js copy 一份)
|
|
46
|
+
2. 在 seahub 项目创建一个测试文件, 根据需要的配置信息完善配置内容
|
|
47
|
+
3. 执行 npm run start-sit, 启动测试服务, 可以打开相应的网址, 对封装的组件进行测试
|
|
77
48
|
|
|
78
|
-
##
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
### `npm start`
|
|
83
|
-
|
|
84
|
-
Runs the app in the development mode.<br>
|
|
85
|
-
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
|
|
86
|
-
|
|
87
|
-
The page will reload if you make edits.<br>
|
|
88
|
-
You will also see any lint errors in the console.
|
|
89
|
-
|
|
90
|
-
### `npm test`
|
|
91
|
-
|
|
92
|
-
Launches the test runner in the interactive watch mode.<br>
|
|
93
|
-
See the section about [running tests](#running-tests) for more information.
|
|
94
|
-
|
|
95
|
-
### `npm run build`
|
|
96
|
-
|
|
97
|
-
Builds the app for production to the `build` folder.<br>
|
|
98
|
-
It correctly bundles React in production mode and optimizes the build for the best performance.
|
|
99
|
-
|
|
100
|
-
The build is minified and the filenames include the hashes.<br>
|
|
101
|
-
Your app is ready to be deployed!
|
|
102
|
-
|
|
103
|
-
See the section about [deployment](#deployment) for more information.
|
|
104
|
-
|
|
105
|
-
### `npm run eject`
|
|
106
|
-
|
|
107
|
-
**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
|
|
108
|
-
|
|
109
|
-
If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
|
|
110
|
-
|
|
111
|
-
Instead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
|
|
112
|
-
|
|
113
|
-
You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
|
|
114
|
-
|
|
115
|
-
### `npm run prepublish`
|
|
116
|
-
|
|
117
|
-
Run this command before publish to npm registry. And increase verison number in `package.json`.
|
|
118
|
-
|
|
119
|
-
Publish project by `npm publish` and view at [package page](https://www.npmjs.com/package/@seafile/seafile-editor).
|
|
49
|
+
## 新版本发布
|
|
50
|
+
1. 更新 package.json 中的 version 属性
|
|
51
|
+
2. 执行 npm publish 完成新版本发布
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
.seafile-editor-comment.comment-dialog {
|
|
2
|
+
width: 500px;
|
|
3
|
+
position: absolute;
|
|
4
|
+
top: 30%;
|
|
5
|
+
right: 0;
|
|
6
|
+
padding: 15px;
|
|
7
|
+
background-color: #fafafa;
|
|
8
|
+
border: 1px solid rgba(0,0,0,.2);
|
|
9
|
+
border-radius: .3rem;
|
|
10
|
+
box-shadow: 0 0 3px #ccc;
|
|
11
|
+
z-index: 1000;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.seafile-editor-comment.comment-dialog .comment-dialog-triangle {
|
|
15
|
+
position: absolute;
|
|
16
|
+
left: -5px;
|
|
17
|
+
top: 50%;
|
|
18
|
+
transform: rotate(45deg);
|
|
19
|
+
border: 1px solid rgba(0,0,0,.2);
|
|
20
|
+
border-top: none;
|
|
21
|
+
border-right: none;
|
|
22
|
+
width: 10px;
|
|
23
|
+
height: 10px;
|
|
24
|
+
background-color: #fafafa;
|
|
25
|
+
box-shadow: -1px 1px #ccc;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.seafile-editor-comment.comment-dialog textarea {
|
|
29
|
+
width: 100%;
|
|
30
|
+
min-height: 100px;
|
|
31
|
+
max-height: 300px;
|
|
32
|
+
padding: 5px;
|
|
33
|
+
background-color: #fff;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.seafile-editor-comment.comment-dialog .button-group .btn {
|
|
37
|
+
margin-right: 10px;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.seafile-editor-comment.comment-dialog .comment-dialog-quote {
|
|
41
|
+
margin-top: 10px;
|
|
42
|
+
max-height: 6rem;
|
|
43
|
+
overflow: auto;
|
|
44
|
+
padding-left: 1rem;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.seafile-editor-comment.comment-dialog .comment-dialog-quote ul,
|
|
48
|
+
.seafile-editor-comment.comment-dialog .comment-dialog-quote ol {
|
|
49
|
+
padding-left: 1rem;
|
|
50
|
+
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
.issue-container {
|
|
2
|
+
width: 100%;
|
|
3
|
+
padding: 0 10px 10px 10px;
|
|
4
|
+
margin-top: -10px;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.issue-card {
|
|
8
|
+
background-color: #fff;
|
|
9
|
+
border: 1px solid rgba(0, 40, 100, 0.12);
|
|
10
|
+
border-radius: 5px;
|
|
11
|
+
padding-left: 5px;
|
|
12
|
+
margin-top: 10px;
|
|
13
|
+
position: relative;
|
|
14
|
+
word-break: break-word;
|
|
15
|
+
box-shadow: 0 5px 5px -2px rgba(200,200,200, 0.5);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.issue-card:before {
|
|
19
|
+
position: absolute;
|
|
20
|
+
left: 0;
|
|
21
|
+
top: 0;
|
|
22
|
+
bottom: 0;
|
|
23
|
+
width: 3px;
|
|
24
|
+
content: '';
|
|
25
|
+
background-color: rgb(217, 130, 43);
|
|
26
|
+
border-radius: 3px 0 0 3px;
|
|
27
|
+
}
|
|
28
|
+
.issue-card-title {
|
|
29
|
+
font-size: 16px;
|
|
30
|
+
padding: 5px 10px 3px 10px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.issue-card-description {
|
|
34
|
+
padding: 0 10px 5px 10px;
|
|
35
|
+
color: #aaa;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.size-panel-no-content {
|
|
39
|
+
width: 100%;
|
|
40
|
+
text-align: center;
|
|
41
|
+
color: #9a9a9a;
|
|
42
|
+
padding-top: 10px;
|
|
43
|
+
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
.seafile-editor-outline .outline-h2, .outline-h3 {
|
|
2
|
+
white-space: nowrap;
|
|
3
|
+
overflow: hidden;
|
|
4
|
+
text-overflow: ellipsis;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.seafile-editor-outline .outline-h2 {
|
|
8
|
+
margin-left: 20px;
|
|
9
|
+
line-height: 2.5;
|
|
10
|
+
color:#364149;
|
|
11
|
+
white-space: nowrap;
|
|
12
|
+
cursor:pointer;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.seafile-editor-outline .outline-h2:hover {
|
|
16
|
+
color: #eb8205;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.seafile-editor-outline .outline-h3 {
|
|
20
|
+
margin-left: 40px;
|
|
21
|
+
line-height: 2.5;
|
|
22
|
+
color:#364149;
|
|
23
|
+
white-space: nowrap;
|
|
24
|
+
cursor:pointer;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.seafile-editor-outline .outline-h3:hover {
|
|
28
|
+
color: #eb8205;
|
|
29
|
+
}
|
|
File without changes
|
|
File without changes
|
|
@@ -1,27 +1,33 @@
|
|
|
1
|
-
.
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
.sf-editor-toolbar {
|
|
2
|
+
height: 39px;
|
|
3
|
+
background-color: #fcfcfc;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
-
.
|
|
7
|
-
|
|
6
|
+
.sf-editor-toolbar .iconfont {
|
|
7
|
+
font-size: 13px;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
.
|
|
11
|
-
display:
|
|
12
|
-
|
|
10
|
+
.sf-editor-toolbar .icon-drop-down {
|
|
11
|
+
display: inline-block;
|
|
12
|
+
transform: scale(0.8);
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
.
|
|
16
|
-
|
|
15
|
+
.sf-editor-toolbar .icon-caret-up {
|
|
16
|
+
display: inline-block;
|
|
17
|
+
transform: scale(0.8);
|
|
17
18
|
}
|
|
18
19
|
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
/* reset menu style*/
|
|
21
|
+
.sf-editor-toolbar .menu > * {
|
|
22
|
+
display: inline-block;
|
|
21
23
|
}
|
|
22
24
|
|
|
23
|
-
.
|
|
24
|
-
margin-
|
|
25
|
+
.sf-editor-toolbar .menu > * + * {
|
|
26
|
+
margin-left: 10px;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.sf-editor-toolbar .menu {
|
|
30
|
+
margin-right: 20px;
|
|
25
31
|
}
|
|
26
32
|
|
|
27
33
|
.seafile-btn-group div button {
|
|
@@ -49,15 +55,6 @@
|
|
|
49
55
|
border-color: #e5e5e5;
|
|
50
56
|
}
|
|
51
57
|
|
|
52
|
-
/*topbar style*/
|
|
53
|
-
.menu > * {
|
|
54
|
-
display: inline-block;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.menu > * + * {
|
|
58
|
-
margin-left: 10px;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
58
|
.btn-active {
|
|
62
59
|
color: #0c0c0c;
|
|
63
60
|
cursor: pointer;
|
|
@@ -70,11 +67,18 @@
|
|
|
70
67
|
.btn-active[data-active='true'] {
|
|
71
68
|
color: #eb8205;
|
|
72
69
|
}
|
|
70
|
+
|
|
73
71
|
.tableToolBar {
|
|
74
72
|
font-size: 12px;
|
|
75
73
|
display: inline-flex;
|
|
76
74
|
}
|
|
77
75
|
|
|
76
|
+
.tableToolBar:after {
|
|
77
|
+
content: '';
|
|
78
|
+
display: block;
|
|
79
|
+
clear: both;
|
|
80
|
+
}
|
|
81
|
+
|
|
78
82
|
.tableToolBar div .symbol {
|
|
79
83
|
font-size: 14px;
|
|
80
84
|
}
|
|
@@ -83,10 +87,15 @@
|
|
|
83
87
|
color: #555555;
|
|
84
88
|
}
|
|
85
89
|
|
|
86
|
-
.tableToolBar:
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
+
.tableToolBar div:not(first):not(.drop-list) {
|
|
91
|
+
/*display: inline-block;*/
|
|
92
|
+
margin-left:10px;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.tableToolBar .table-toolbar-btn {
|
|
96
|
+
line-height: 28px;
|
|
97
|
+
padding: 0 15px;
|
|
98
|
+
height: 30px;
|
|
90
99
|
}
|
|
91
100
|
|
|
92
101
|
.table-toolbar-group {
|
|
@@ -97,11 +106,6 @@
|
|
|
97
106
|
padding-right: 10px;
|
|
98
107
|
}
|
|
99
108
|
|
|
100
|
-
.tableToolBar div:not(first):not(.drop-list) {
|
|
101
|
-
/*display: inline-block;*/
|
|
102
|
-
margin-left:10px;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
109
|
.sf-editor-table-btn-wrapper {
|
|
106
110
|
position: relative;
|
|
107
111
|
}
|
|
@@ -154,12 +158,6 @@
|
|
|
154
158
|
background-color: #ffa94d;
|
|
155
159
|
}
|
|
156
160
|
|
|
157
|
-
/*topbar style*/
|
|
158
|
-
|
|
159
|
-
.menu {
|
|
160
|
-
margin-right: 20px;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
161
|
.rich-menu {
|
|
164
162
|
flex: 1;
|
|
165
163
|
display: flex;
|
|
@@ -179,11 +177,6 @@
|
|
|
179
177
|
padding: 4px 10px;
|
|
180
178
|
}
|
|
181
179
|
|
|
182
|
-
.editor-info {
|
|
183
|
-
display: flex;
|
|
184
|
-
align-items: center;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
180
|
.button-container {
|
|
188
181
|
height: 100%;
|
|
189
182
|
display: flex;
|
|
@@ -205,14 +198,6 @@
|
|
|
205
198
|
font-weight: 900;
|
|
206
199
|
}
|
|
207
200
|
|
|
208
|
-
.seafile-rich-editor-topbar .editor-btn-group {
|
|
209
|
-
height: 100%;
|
|
210
|
-
padding: 5px 0 5px 5px;
|
|
211
|
-
font-size: 0.75rem;
|
|
212
|
-
border-right: 1px solid #e5e5e5;
|
|
213
|
-
color: #555555;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
201
|
.header-list-container {
|
|
217
202
|
height: 39px;
|
|
218
203
|
border-right: 1px solid #e5e5e5;
|
|
@@ -247,11 +232,11 @@
|
|
|
247
232
|
padding: 0 3px;
|
|
248
233
|
}
|
|
249
234
|
|
|
250
|
-
|
|
251
235
|
.list-body div {
|
|
252
236
|
display: inline-block;
|
|
253
237
|
line-height: 30px;
|
|
254
238
|
}
|
|
239
|
+
|
|
255
240
|
.header-list-container .list-dropdown {
|
|
256
241
|
position: absolute;
|
|
257
242
|
left: 0;
|
|
@@ -300,72 +285,6 @@
|
|
|
300
285
|
color: #555555;
|
|
301
286
|
}
|
|
302
287
|
|
|
303
|
-
.tableToolBar .table-toolbar-btn {
|
|
304
|
-
line-height: 28px;
|
|
305
|
-
padding: 0 15px;
|
|
306
|
-
height: 30px;
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
.file-go-back {
|
|
310
|
-
display: inline-block;
|
|
311
|
-
font-size: 28px;
|
|
312
|
-
color: #c0c0c0;
|
|
313
|
-
margin-right: 8px;
|
|
314
|
-
}
|
|
315
|
-
.file-go-back:hover {
|
|
316
|
-
cursor: pointer;
|
|
317
|
-
}
|
|
318
|
-
.file-go-back i {
|
|
319
|
-
vertical-align: 5px;
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
.topbar-file-info {
|
|
323
|
-
display: inline-block;
|
|
324
|
-
margin-left: 8px;
|
|
325
|
-
/*
|
|
326
|
-
only select file info text
|
|
327
|
-
*/
|
|
328
|
-
user-select: text;
|
|
329
|
-
}
|
|
330
|
-
.topbar-file-info .file-title {
|
|
331
|
-
font-size: 1.2rem;
|
|
332
|
-
font-weight: bold;
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
.topbar-file-info .file-title .iconfont {
|
|
336
|
-
font-size: 0.875rem;
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
.file-title .file-star,
|
|
340
|
-
.file-title .file-internal-link {
|
|
341
|
-
font-size: 0.875rem;
|
|
342
|
-
cursor: pointer;
|
|
343
|
-
margin-left: 0.5rem;
|
|
344
|
-
vertical-align: text-bottom;
|
|
345
|
-
color: #999;
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
.file-title .file-star .star {
|
|
349
|
-
color: #999;
|
|
350
|
-
}
|
|
351
|
-
|
|
352
|
-
.topbar-file-info .file-state .file-modifier-name {
|
|
353
|
-
margin-right: 0.5rem;
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
.topbar-file-info .file-state .file-modifier-savedraft {
|
|
357
|
-
margin-left: 0.5rem;
|
|
358
|
-
color: #888;
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
.topbar-file-info .file-state {
|
|
362
|
-
font-size: 0.8125rem;
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
.file-internal-link:hover {
|
|
366
|
-
color: #333;
|
|
367
|
-
}
|
|
368
|
-
|
|
369
288
|
p.tip {
|
|
370
289
|
color: #bbb;
|
|
371
290
|
}
|
|
@@ -396,6 +315,7 @@ p.tip {
|
|
|
396
315
|
background-color: #e5e5e5;
|
|
397
316
|
border-radius: 3px;
|
|
398
317
|
}
|
|
318
|
+
|
|
399
319
|
.custom-dropdown-list .custom-dropdown-menu {
|
|
400
320
|
position: absolute;
|
|
401
321
|
left: 0;
|
|
@@ -409,9 +329,6 @@ p.tip {
|
|
|
409
329
|
.seafile-md-viewer-main-panel {
|
|
410
330
|
margin: 0 2%;
|
|
411
331
|
}
|
|
412
|
-
.topbar-file-info .file-title {
|
|
413
|
-
min-width: 150px;
|
|
414
|
-
}
|
|
415
332
|
.rich-menu {
|
|
416
333
|
overflow-x: auto;
|
|
417
334
|
}
|
|
@@ -425,28 +342,3 @@ p.tip {
|
|
|
425
342
|
margin-left: 10px;
|
|
426
343
|
}
|
|
427
344
|
}
|
|
428
|
-
|
|
429
|
-
.sf-editor-rich-menu {
|
|
430
|
-
height: 39px;
|
|
431
|
-
background-color: #fcfcfc;
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
.seafile-simple-editor {
|
|
435
|
-
height: 100%;
|
|
436
|
-
min-width: 768px;
|
|
437
|
-
display: flex;
|
|
438
|
-
flex-direction: column;
|
|
439
|
-
overflow: hidden;
|
|
440
|
-
border: 1px solid #e5e5e5;
|
|
441
|
-
}
|
|
442
|
-
|
|
443
|
-
.seafile-simple-editor .editor {
|
|
444
|
-
margin: 0;
|
|
445
|
-
padding: 10px;
|
|
446
|
-
height: 100%;
|
|
447
|
-
border: none;
|
|
448
|
-
}
|
|
449
|
-
|
|
450
|
-
.seafile-simple-editor .header-list-container {
|
|
451
|
-
border-left: 0;
|
|
452
|
-
}
|
|
File without changes
|
|
@@ -25,16 +25,16 @@
|
|
|
25
25
|
margin-bottom: 0;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
.help-close {
|
|
28
|
+
.seafile-editor-help .help-close {
|
|
29
29
|
font-weight: normal;
|
|
30
30
|
color: #b9b9b9;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
.help-close:hover {
|
|
33
|
+
.seafile-editor-help .help-close:hover {
|
|
34
34
|
color: #888;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
.help-content {
|
|
37
|
+
.seafile-editor-help .help-content {
|
|
38
38
|
height: calc(100% - 50px);
|
|
39
39
|
overflow-y: auto;
|
|
40
40
|
padding: 0 15px;
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
font-size: 0.8rem;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
.help-shortcut {
|
|
45
|
+
.seafile-editor-help .help-shortcut {
|
|
46
46
|
display: flex;
|
|
47
47
|
border-bottom: 1px solid #eee;
|
|
48
48
|
justify-content: space-between;
|
|
@@ -50,12 +50,12 @@
|
|
|
50
50
|
padding: 10px 0;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
.help-shortcut-left {
|
|
53
|
+
.seafile-editor-help .help-shortcut-left {
|
|
54
54
|
word-break: break-all;
|
|
55
55
|
line-height: 30px;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
.help-content .help-shortcut-type {
|
|
58
|
+
.seafile-editor-help .help-content .help-shortcut-type {
|
|
59
59
|
border-bottom: 1px solid #eee;
|
|
60
60
|
/*height: 50px;*/
|
|
61
61
|
line-height: 2;
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
margin: 10px 0 0 0;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
.help-shortcut .key {
|
|
66
|
+
.seafile-editor-help .help-shortcut .key {
|
|
67
67
|
display: inline-block;
|
|
68
68
|
border-radius: 3px;
|
|
69
69
|
background-color: #e8e8e8;
|
|
@@ -75,10 +75,10 @@
|
|
|
75
75
|
line-height: 20px;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
-
.help-shortcut-right {
|
|
78
|
+
.seafile-editor-help .help-shortcut-right {
|
|
79
79
|
min-width: max-content;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
.help-shortcut-right-container:not(:first-child) {
|
|
82
|
+
.seafile-editor-help .help-shortcut-right-container:not(:first-child) {
|
|
83
83
|
margin-top: 10px;
|
|
84
84
|
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
.plain-editor {
|
|
2
|
+
flex: 1;
|
|
3
|
+
display: flex;
|
|
4
|
+
min-height: 0;
|
|
5
|
+
min-width: 0;
|
|
6
|
+
position: relative;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
/* fix plain editor main height */
|
|
10
|
+
.plain-editor-main {
|
|
11
|
+
position: absolute;
|
|
12
|
+
inset: 0;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.plain-editor-left-panel {
|
|
16
|
+
height: 100%;
|
|
17
|
+
width: 50%;
|
|
18
|
+
background-color: #fff;
|
|
19
|
+
border-right: 1px solid rgb(230,230,221);
|
|
20
|
+
overflow-y: scroll;
|
|
21
|
+
overflow-x: hidden;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.plain-editor-right-panel {
|
|
25
|
+
height: 100%;
|
|
26
|
+
width: 50%;
|
|
27
|
+
background-color: rgb(250,250,249);
|
|
28
|
+
overflow-y: scroll;
|
|
29
|
+
overflow-x: hidden;
|
|
30
|
+
}
|