diff --git a/frontend/package-lock.json b/frontend/package-lock.json
index 3fe556d8fc..94b5a07caf 100644
--- a/frontend/package-lock.json
+++ b/frontend/package-lock.json
@@ -14,7 +14,7 @@
"@gatsbyjs/reach-router": "1.3.9",
"@seafile/react-image-lightbox": "2.0.2",
"@seafile/resumablejs": "1.1.16",
- "@seafile/sdoc-editor": "0.5.66",
+ "@seafile/sdoc-editor": "0.5.67",
"@seafile/seafile-calendar": "0.0.12",
"@seafile/seafile-editor": "1.0.82",
"@uiw/codemirror-extensions-langs": "^4.19.4",
@@ -4617,9 +4617,9 @@
"integrity": "sha512-8rBbmAEuuwOAGHYGCtEzpx+bxAcGS+V30otMmhRe7bPAdh4E57RWgCa8x7pkzHGFlY1t5d+ILz1gojvPVMYQig=="
},
"node_modules/@seafile/sdoc-editor": {
- "version": "0.5.66",
- "resolved": "https://registry.npmjs.org/@seafile/sdoc-editor/-/sdoc-editor-0.5.66.tgz",
- "integrity": "sha512-ffu2cp6YIws9A5vSl4FnFG/h1hjBwudgt368cyuRsuTG5XDIScUANdJt6ibLcCuOclaYSyNHyEQ6S4MyE+rZlw==",
+ "version": "0.5.67",
+ "resolved": "https://registry.npmjs.org/@seafile/sdoc-editor/-/sdoc-editor-0.5.67.tgz",
+ "integrity": "sha512-WNaSyZo1aoghoR8AjAmGhgWZa65EaJpBLuCc5TyF8rdZCVmpV+r/NzscwbEtHXuxQxwf9UxHXKNV46hNirgGpw==",
"dependencies": {
"@seafile/print-js": "1.6.5",
"@seafile/react-image-lightbox": "2.0.4",
@@ -31292,9 +31292,9 @@
"integrity": "sha512-8rBbmAEuuwOAGHYGCtEzpx+bxAcGS+V30otMmhRe7bPAdh4E57RWgCa8x7pkzHGFlY1t5d+ILz1gojvPVMYQig=="
},
"@seafile/sdoc-editor": {
- "version": "0.5.66",
- "resolved": "https://registry.npmjs.org/@seafile/sdoc-editor/-/sdoc-editor-0.5.66.tgz",
- "integrity": "sha512-ffu2cp6YIws9A5vSl4FnFG/h1hjBwudgt368cyuRsuTG5XDIScUANdJt6ibLcCuOclaYSyNHyEQ6S4MyE+rZlw==",
+ "version": "0.5.67",
+ "resolved": "https://registry.npmjs.org/@seafile/sdoc-editor/-/sdoc-editor-0.5.67.tgz",
+ "integrity": "sha512-WNaSyZo1aoghoR8AjAmGhgWZa65EaJpBLuCc5TyF8rdZCVmpV+r/NzscwbEtHXuxQxwf9UxHXKNV46hNirgGpw==",
"requires": {
"@seafile/print-js": "1.6.5",
"@seafile/react-image-lightbox": "2.0.4",
diff --git a/frontend/package.json b/frontend/package.json
index e6bfbbbb1f..55089b2120 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -9,7 +9,7 @@
"@gatsbyjs/reach-router": "1.3.9",
"@seafile/react-image-lightbox": "2.0.2",
"@seafile/resumablejs": "1.1.16",
- "@seafile/sdoc-editor": "0.5.66",
+ "@seafile/sdoc-editor": "0.5.67",
"@seafile/seafile-calendar": "0.0.12",
"@seafile/seafile-editor": "1.0.82",
"@uiw/codemirror-extensions-langs": "^4.19.4",
diff --git a/media/sdoc-editor/locales/cs/sdoc-editor.json b/media/sdoc-editor/locales/cs/sdoc-editor.json
index e417e95cdd..a955e8bd07 100644
--- a/media/sdoc-editor/locales/cs/sdoc-editor.json
+++ b/media/sdoc-editor/locales/cs/sdoc-editor.json
@@ -457,5 +457,8 @@
"Enter_more_character_start_search": "Enter more characters to start search",
"Create_file_name_sdoc": "Create {{file_name_sdoc}}",
"Source_document_changed_tip": "Original document has concurrent modifications. Do you like to merge these modifications to the revision?",
- "Fit_table_to_page_width": "Fit table to page width"
+ "Fit_table_to_page_width": "Fit table to page width",
+ "Enter_text_or_press_forward_slash_to_insert_element": "Enter text or press '/' to insert element",
+ "Vertical_align": "Vertical alignment",
+ "Horizontal_align": "Horizontal alignment"
}
diff --git a/media/sdoc-editor/locales/de/sdoc-editor.json b/media/sdoc-editor/locales/de/sdoc-editor.json
index cfe3e6f767..33a74faa98 100644
--- a/media/sdoc-editor/locales/de/sdoc-editor.json
+++ b/media/sdoc-editor/locales/de/sdoc-editor.json
@@ -457,5 +457,8 @@
"Enter_more_character_start_search": "Enter more characters to start search",
"Create_file_name_sdoc": "Create {{file_name_sdoc}}",
"Source_document_changed_tip": "Original document has concurrent modifications. Do you like to merge these modifications to the revision?",
- "Fit_table_to_page_width": "Fit table to page width"
+ "Fit_table_to_page_width": "Fit table to page width",
+ "Enter_text_or_press_forward_slash_to_insert_element": "Enter text or press '/' to insert element",
+ "Vertical_align": "Vertical alignment",
+ "Horizontal_align": "Horizontal alignment"
}
diff --git a/media/sdoc-editor/locales/en/sdoc-editor.json b/media/sdoc-editor/locales/en/sdoc-editor.json
index 43c4f97343..d68edf1101 100644
--- a/media/sdoc-editor/locales/en/sdoc-editor.json
+++ b/media/sdoc-editor/locales/en/sdoc-editor.json
@@ -457,5 +457,8 @@
"Enter_more_character_start_search": "Enter more characters to start search",
"Create_file_name_sdoc": "Create {{file_name_sdoc}}",
"Source_document_changed_tip": "Original document has concurrent modifications. Do you like to merge these modifications to the revision?",
- "Fit_table_to_page_width": "Fit table to page width"
+ "Fit_table_to_page_width": "Fit table to page width",
+ "Enter_text_or_press_forward_slash_to_insert_element": "Enter text or press '/' to insert element",
+ "Vertical_align": "Vertical alignment",
+ "Horizontal_align": "Horizontal alignment"
}
diff --git a/media/sdoc-editor/locales/es/sdoc-editor.json b/media/sdoc-editor/locales/es/sdoc-editor.json
index 38ca228bbe..75764ab57e 100644
--- a/media/sdoc-editor/locales/es/sdoc-editor.json
+++ b/media/sdoc-editor/locales/es/sdoc-editor.json
@@ -457,5 +457,8 @@
"Enter_more_character_start_search": "Enter more characters to start search",
"Create_file_name_sdoc": "Create {{file_name_sdoc}}",
"Source_document_changed_tip": "Original document has concurrent modifications. Do you like to merge these modifications to the revision?",
- "Fit_table_to_page_width": "Fit table to page width"
+ "Fit_table_to_page_width": "Fit table to page width",
+ "Enter_text_or_press_forward_slash_to_insert_element": "Enter text or press '/' to insert element",
+ "Vertical_align": "Vertical alignment",
+ "Horizontal_align": "Horizontal alignment"
}
diff --git a/media/sdoc-editor/locales/fr/sdoc-editor.json b/media/sdoc-editor/locales/fr/sdoc-editor.json
index c0ae8d76e2..44fb45ce81 100644
--- a/media/sdoc-editor/locales/fr/sdoc-editor.json
+++ b/media/sdoc-editor/locales/fr/sdoc-editor.json
@@ -457,5 +457,8 @@
"Enter_more_character_start_search": "Enter more characters to start search",
"Create_file_name_sdoc": "Create {{file_name_sdoc}}",
"Source_document_changed_tip": "Original document has concurrent modifications. Do you like to merge these modifications to the revision?",
- "Fit_table_to_page_width": "Fit table to page width"
+ "Fit_table_to_page_width": "Fit table to page width",
+ "Enter_text_or_press_forward_slash_to_insert_element": "Enter text or press '/' to insert element",
+ "Vertical_align": "Vertical alignment",
+ "Horizontal_align": "Horizontal alignment"
}
diff --git a/media/sdoc-editor/locales/it/sdoc-editor.json b/media/sdoc-editor/locales/it/sdoc-editor.json
index 550284789f..c86e71db25 100644
--- a/media/sdoc-editor/locales/it/sdoc-editor.json
+++ b/media/sdoc-editor/locales/it/sdoc-editor.json
@@ -457,5 +457,8 @@
"Enter_more_character_start_search": "Enter more characters to start search",
"Create_file_name_sdoc": "Create {{file_name_sdoc}}",
"Source_document_changed_tip": "Original document has concurrent modifications. Do you like to merge these modifications to the revision?",
- "Fit_table_to_page_width": "Fit table to page width"
+ "Fit_table_to_page_width": "Fit table to page width",
+ "Enter_text_or_press_forward_slash_to_insert_element": "Enter text or press '/' to insert element",
+ "Vertical_align": "Vertical alignment",
+ "Horizontal_align": "Horizontal alignment"
}
diff --git a/media/sdoc-editor/locales/ru/sdoc-editor.json b/media/sdoc-editor/locales/ru/sdoc-editor.json
index e163937dee..0ee9846066 100644
--- a/media/sdoc-editor/locales/ru/sdoc-editor.json
+++ b/media/sdoc-editor/locales/ru/sdoc-editor.json
@@ -457,5 +457,8 @@
"Enter_more_character_start_search": "Введите больше символов, чтобы начать поиск",
"Create_file_name_sdoc": "Создать {{file_name_sdoc}}",
"Source_document_changed_tip": "Исходный документ имеет параллельные изменения. Хотите объединить эти изменения в ревизию?",
- "Fit_table_to_page_width": "Подогнать таблицу по ширине страницы"
+ "Fit_table_to_page_width": "Подогнать таблицу по ширине страницы",
+ "Enter_text_or_press_forward_slash_to_insert_element": "Enter text or press '/' to insert element",
+ "Vertical_align": "Vertical alignment",
+ "Horizontal_align": "Horizontal alignment"
}
diff --git a/media/sdoc-editor/locales/zh-CN/sdoc-editor.json b/media/sdoc-editor/locales/zh-CN/sdoc-editor.json
index 2c0e33b450..c08b72f154 100644
--- a/media/sdoc-editor/locales/zh-CN/sdoc-editor.json
+++ b/media/sdoc-editor/locales/zh-CN/sdoc-editor.json
@@ -457,5 +457,8 @@
"Enter_more_character_start_search": "输入更多字符开始搜索",
"Create_file_name_sdoc": "新建 {{file_name_sdoc}}",
"Source_document_changed_tip": "源文档有并发的改动。你需要合并这些改动到修订稿吗?",
- "Fit_table_to_page_width": "自动适应页面宽度"
+ "Fit_table_to_page_width": "自动适应页面宽度",
+ "Enter_text_or_press_forward_slash_to_insert_element": "输入文本或按下 '/' 插入元素",
+ "Vertical_align": "垂直对齐",
+ "Horizontal_align": "水平对齐"
}
diff --git a/media/sdoc-editor/locales/zh_CN/sdoc-editor.json b/media/sdoc-editor/locales/zh_CN/sdoc-editor.json
index 2c0e33b450..c08b72f154 100644
--- a/media/sdoc-editor/locales/zh_CN/sdoc-editor.json
+++ b/media/sdoc-editor/locales/zh_CN/sdoc-editor.json
@@ -457,5 +457,8 @@
"Enter_more_character_start_search": "输入更多字符开始搜索",
"Create_file_name_sdoc": "新建 {{file_name_sdoc}}",
"Source_document_changed_tip": "源文档有并发的改动。你需要合并这些改动到修订稿吗?",
- "Fit_table_to_page_width": "自动适应页面宽度"
+ "Fit_table_to_page_width": "自动适应页面宽度",
+ "Enter_text_or_press_forward_slash_to_insert_element": "输入文本或按下 '/' 插入元素",
+ "Vertical_align": "垂直对齐",
+ "Horizontal_align": "水平对齐"
}
diff --git a/media/sdoc-editor/sdoc-editor-font.css b/media/sdoc-editor/sdoc-editor-font.css
index b572779d6f..58755ed9ca 100644
--- a/media/sdoc-editor/sdoc-editor-font.css
+++ b/media/sdoc-editor/sdoc-editor-font.css
@@ -1,11 +1,14 @@
@font-face {
- font-family: "sdocfont"; /* Project id 4097705 */
- src: url('./sdoc-editor-font/iconfont.eot?t=1705289986460'); /* IE9 */
- src: url('./sdoc-editor-font/iconfont.eot?t=1705289986460#iefix') format('embedded-opentype'), /* IE6-IE8 */
- url('./sdoc-editor-font/iconfont.woff2?t=1705289986460') format('woff2'),
- url('./sdoc-editor-font/iconfont.woff?t=1705289986460') format('woff'),
- url('./sdoc-editor-font/iconfont.ttf?t=1705289986460') format('truetype'),
- url('./sdoc-editor-font/iconfont.svg?t=1705289986460#sdocfont') format('svg');
+ font-family: "sdocfont";
+ /* Project id 4097705 */
+ src: url('./sdoc-editor-font/iconfont.eot?t=1716446789113');
+ /* IE9 */
+ src: url('./sdoc-editor-font/iconfont.eot?t=1716446789113#iefix') format('embedded-opentype'),
+ /* IE6-IE8 */
+ url('./sdoc-editor-font/iconfont.woff2?t=1716446789113') format('woff2'),
+ url('./sdoc-editor-font/iconfont.woff?t=1716446789113') format('woff'),
+ url('./sdoc-editor-font/iconfont.ttf?t=1716446789113') format('truetype'),
+ url('./sdoc-editor-font/iconfont.svg?t=1716446789113#sdocfont') format('svg');
}
.sdocfont {
@@ -16,6 +19,18 @@
-moz-osx-font-smoothing: grayscale;
}
+.sdoc-text-style:before {
+ content: "\e66e";
+}
+
+.sdoc-choose-column:before {
+ content: "\e66d";
+}
+
+.sdoc-history-switch:before {
+ content: "\e66c";
+}
+
.sdoc-save:before {
content: "\e66b";
}
@@ -439,4 +454,3 @@
.sdoc-user:before {
content: "\e629";
}
-
diff --git a/media/sdoc-editor/sdoc-editor-font/iconfont.eot b/media/sdoc-editor/sdoc-editor-font/iconfont.eot
index d8760e7a7b..9e892ea038 100644
Binary files a/media/sdoc-editor/sdoc-editor-font/iconfont.eot and b/media/sdoc-editor/sdoc-editor-font/iconfont.eot differ
diff --git a/media/sdoc-editor/sdoc-editor-font/iconfont.svg b/media/sdoc-editor/sdoc-editor-font/iconfont.svg
index 5ba16082d5..0cdd3a23f5 100644
--- a/media/sdoc-editor/sdoc-editor-font/iconfont.svg
+++ b/media/sdoc-editor/sdoc-editor-font/iconfont.svg
@@ -14,6 +14,12 @@
/>
+
+
+
+
+
+
diff --git a/media/sdoc-editor/sdoc-editor-font/iconfont.ttf b/media/sdoc-editor/sdoc-editor-font/iconfont.ttf
index 2414737802..4d1baf3486 100644
Binary files a/media/sdoc-editor/sdoc-editor-font/iconfont.ttf and b/media/sdoc-editor/sdoc-editor-font/iconfont.ttf differ
diff --git a/media/sdoc-editor/sdoc-editor-font/iconfont.woff b/media/sdoc-editor/sdoc-editor-font/iconfont.woff
index 6f51790586..9bb513b351 100644
Binary files a/media/sdoc-editor/sdoc-editor-font/iconfont.woff and b/media/sdoc-editor/sdoc-editor-font/iconfont.woff differ
diff --git a/media/sdoc-editor/sdoc-editor-font/iconfont.woff2 b/media/sdoc-editor/sdoc-editor-font/iconfont.woff2
index a73a3729af..52db0f2fa5 100644
Binary files a/media/sdoc-editor/sdoc-editor-font/iconfont.woff2 and b/media/sdoc-editor/sdoc-editor-font/iconfont.woff2 differ