|
@@ -356,7 +356,12 @@
|
|
|
</div>
|
|
|
</el-tooltip>
|
|
|
<div v-show="describeEditorVisible" style="margin-top:15px">
|
|
|
- <editor v-model="text_content" class="tinymce" :init="configure" @blur="describeConfirm" />
|
|
|
+ <!-- <editor v-model="text_content" class="tinymce" :init="configure" @blur="describeConfirm" /> -->
|
|
|
+ <normal-area
|
|
|
+ id="buglist_tinymce"
|
|
|
+ :value.sync="text_content"
|
|
|
+ :height="500"
|
|
|
+ />
|
|
|
<div style="margin-top:40px;float: right">
|
|
|
<el-button @click="describeCancel()">取 消</el-button>
|
|
|
<el-button type="primary" @click="describeConfirm()">确 认</el-button>
|
|
@@ -557,10 +562,12 @@ import createdBug from '@/views/projectManage/bugList/file/createdBug'
|
|
|
import axios from 'axios'
|
|
|
import { deepClone } from '@/utils/global'
|
|
|
import searchPeople from '@/components/select/searchPeople' // 人员select
|
|
|
-import tinymce from 'tinymce/tinymce'
|
|
|
-import Editor from '@tinymce/tinymce-vue'
|
|
|
-import 'tinymce/themes/silver/theme'
|
|
|
-import 'tinymce/icons/default/icons'
|
|
|
+// import tinymce from 'tinymce/tinymce'
|
|
|
+// import Editor from '@tinymce/tinymce-vue'
|
|
|
+import normalArea from '@/components/input/normalArea' // 富文本
|
|
|
+import 'tinymce/plugins/table'// 插入表格插件
|
|
|
+// import 'tinymce/themes/silver/theme'
|
|
|
+// import 'tinymce/icons/default/icons'
|
|
|
|
|
|
document.body.onpaste = function(event) {
|
|
|
const data = (event.clipboardData || window.clipboardData)
|
|
@@ -584,7 +591,7 @@ export default {
|
|
|
normalDialog,
|
|
|
statusChange,
|
|
|
searchPeople,
|
|
|
- Editor
|
|
|
+ normalArea
|
|
|
},
|
|
|
props: {
|
|
|
id: {
|
|
@@ -604,22 +611,22 @@ export default {
|
|
|
return {
|
|
|
bugId: -1, // 当前缺陷Id
|
|
|
bizId: -1, // 当前缺陷BizId
|
|
|
- configure: {
|
|
|
- language_url: '/tinymce/langs/zh_CN.js',
|
|
|
- language: 'zh_CN',
|
|
|
- skin_url: '/tinymce/skins/ui/oxide', // 编辑器需要一个skin才能正常工作,所以要设置一个skin_url指向之前复制出来的skin文件
|
|
|
- browser_spellcheck: true, // 拼写检查
|
|
|
- branding: false, // 去水印
|
|
|
- elementpath: false, // 禁用编辑器底部的状态栏
|
|
|
- statusbar: false, // 隐藏编辑器底部的状态栏
|
|
|
- paste_data_images: true, // 允许粘贴图像
|
|
|
- menubar: false, // 隐藏最上方menu
|
|
|
- fontsize_formats: '14px 16px 18px 20px 24px 26px 28px 30px 32px 36px', // 字体大小
|
|
|
- file_picker_types: 'image',
|
|
|
- images_upload_credentials: true,
|
|
|
- plugins: 'lists table textcolor wordcount contextmenu', // 引入插件
|
|
|
- toolbar: 'bold italic underline strikethrough | fontsizeselect | forecolor backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent table | undo redo | removeformat formatselect'
|
|
|
- },
|
|
|
+ // configure: {
|
|
|
+ // language_url: '/tinymce/langs/zh_CN.js',
|
|
|
+ // language: 'zh_CN',
|
|
|
+ // skin_url: '/tinymce/skins/ui/oxide', // 编辑器需要一个skin才能正常工作,所以要设置一个skin_url指向之前复制出来的skin文件
|
|
|
+ // browser_spellcheck: true, // 拼写检查
|
|
|
+ // branding: false, // 去水印
|
|
|
+ // elementpath: false, // 禁用编辑器底部的状态栏
|
|
|
+ // statusbar: false, // 隐藏编辑器底部的状态栏
|
|
|
+ // paste_data_images: true, // 允许粘贴图像
|
|
|
+ // menubar: false, // 隐藏最上方menu
|
|
|
+ // fontsize_formats: '14px 16px 18px 20px 24px 26px 28px 30px 32px 36px', // 字体大小
|
|
|
+ // file_picker_types: 'image',
|
|
|
+ // images_upload_credentials: true,
|
|
|
+ // plugins: 'lists table textcolor wordcount contextmenu', // 引入插件
|
|
|
+ // toolbar: 'bold italic underline strikethrough | fontsizeselect | forecolor backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent table | undo redo | removeformat formatselect'
|
|
|
+ // },
|
|
|
text_content: '',
|
|
|
clielIcon: true, // 所属任务交互
|
|
|
active: false,
|
|
@@ -735,7 +742,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
|
- tinymce.init({ selector: '.tinymce', height: '100' })
|
|
|
+ // tinymce.init({ selector: '.tinymce', height: '100' })
|
|
|
this.bugGetEnum()
|
|
|
const id = this.id === -1 ? this.bugId : this.id
|
|
|
this.bugGet(id, false).then(res => {
|