diff --git a/public/tinymce/langs/zh_CN.js b/public/tinymce/langs/zh_CN.js index 7e4f638..25740bc 100644 --- a/public/tinymce/langs/zh_CN.js +++ b/public/tinymce/langs/zh_CN.js @@ -4,7 +4,7 @@ * Copyright (c) 2022 Ephox Corporation DBA Tiny Technologies, Inc. * Licensed under the Tiny commercial license. See https://www.tiny.cloud/legal/ */ -tinymce.addI18n('zh-Hans', { +tinymce.addI18n('zh_CN', { "Redo": "重做", "Undo": "撤销", "Cut": "剪切", diff --git a/src/assets/images/page/exp.png b/src/assets/images/page/exp.png new file mode 100644 index 0000000..e99c067 Binary files /dev/null and b/src/assets/images/page/exp.png differ diff --git a/src/assets/images/page/science.png b/src/assets/images/page/science.png new file mode 100644 index 0000000..633f732 Binary files /dev/null and b/src/assets/images/page/science.png differ diff --git a/src/assets/images/page/sfel.png b/src/assets/images/page/sfel.png new file mode 100644 index 0000000..c642a8b Binary files /dev/null and b/src/assets/images/page/sfel.png differ diff --git a/src/assets/images/page/survey.png b/src/assets/images/page/survey.png new file mode 100644 index 0000000..fd78de0 Binary files /dev/null and b/src/assets/images/page/survey.png differ diff --git a/src/assets/images/page/talent.png b/src/assets/images/page/talent.png new file mode 100644 index 0000000..d4f80e0 Binary files /dev/null and b/src/assets/images/page/talent.png differ diff --git a/src/assets/images/page/userSharing.png b/src/assets/images/page/userSharing.png new file mode 100644 index 0000000..259c7c9 Binary files /dev/null and b/src/assets/images/page/userSharing.png differ diff --git a/src/components/editor.js b/src/components/editor.js index a6d2230..decd804 100644 --- a/src/components/editor.js +++ b/src/components/editor.js @@ -5,6 +5,7 @@ import Util from '@/libs/util' export default { //skin:'oxide-dark', language:'zh_CN', + language_url: './tinymce/langs/zh_CN.js', plugins: 'print powerpaste preview searchreplace autolink directionality visualblocks visualchars fullscreen image link media template advcode codesample table charmap hr pagebreak nonbreaking anchor insertdatetime advlist lists wordcount imagetools textpattern help emoticons autosave autoresize formatpainter', toolbar: 'code undo redo restoredraft | cut copy powerpaste pastetext | forecolor backcolor bold italic underline strikethrough link anchor | alignleft aligncenter alignright alignjustify outdent indent | \ styleselect fontselect fontsizeselect | bullist numlist | blockquote subscript superscript removeformat | \ diff --git a/src/const/column.js b/src/const/column.js index 4d3db6e..8848118 100644 --- a/src/const/column.js +++ b/src/const/column.js @@ -22,6 +22,32 @@ export default { name: '子级优先栏目' } ], + long: [ + { + name: 'SFEL', + path: 'sfel' + }, + { + name: 'SFEL-科普之窗', + path: 'science' + }, + { + name: 'SFEL-装置介绍-实验站', + path: 'exp' + }, + { + name: 'SFEL-人才队伍', + path: 'talent' + }, + { + name: 'SFEL-用户共享', + path: 'userSharing' + }, + { + name: 'SFEL-概况', + path: 'survey' + }, + ], // 出版物类型 publicationTypes: [ { diff --git a/src/mixins/page/index.js b/src/mixins/page/index.js index 2d81f9e..a1a677b 100644 --- a/src/mixins/page/index.js +++ b/src/mixins/page/index.js @@ -68,7 +68,7 @@ export default { this.id = json.id const str = json[json.state ? 'theEditedJson' : 'jsonBeforeEditing'] this.originModules = str // 原始json,用以页面离开的时候判断是否需要提示保存 - // this.modules = JSON.parse(str) + this.modules = JSON.parse(str) console.log("🚀 ~ file: index.js ~ line 53 ~ this.$post ~ this.modules", this.modules) } }).catch(err => {}) diff --git a/src/pages/article/add/editor.js b/src/pages/article/add/editor.js index 1391330..23a2aff 100644 --- a/src/pages/article/add/editor.js +++ b/src/pages/article/add/editor.js @@ -5,8 +5,9 @@ import Util from '@/libs/util' export default { //skin:'oxide-dark', language:'zh_CN', + language_url: './tinymce/langs/zh_CN.js', plugins: 'print powerpaste preview searchreplace autolink directionality visualblocks visualchars fullscreen image link media template advcode codesample table charmap hr pagebreak nonbreaking anchor insertdatetime advlist lists wordcount imagetools textpattern help emoticons autosave autoresize formatpainter', - toolbar: 'code undo redo restoredraft | cut copy powerpaste pastetext | forecolor backcolor bold italic underline strikethrough link anchor | alignleft aligncenter alignright alignjustify | \ + toolbar: 'code undo redo restoredraft | cut copy powerpaste pastetext | forecolor backcolor headings lineHeight bold italic underline strikethrough link anchor | alignleft aligncenter alignright alignjustify | \ styleselect fontselect fontsizeselect | bullist numlist | blockquote subscript superscript removeformat | \ table image media charmap emoticons hr pagebreak insertdatetime print preview | fullscreen | indent2em formatpainter', style_formats: [ diff --git a/src/pages/article/add/index.vue b/src/pages/article/add/index.vue index b209929..d5c5895 100644 --- a/src/pages/article/add/index.vue +++ b/src/pages/article/add/index.vue @@ -18,7 +18,7 @@