编辑器美化

This commit is contained in:
@fawn-nine
2023-07-19 11:41:23 +08:00
parent f13ce88793
commit 52fde4a961
5 changed files with 21 additions and 9 deletions

View File

@@ -97,7 +97,7 @@
//,indentValue:'2em' //,indentValue:'2em'
//,initialFrameWidth:1000 //初始化编辑器宽度,默认1000 //,initialFrameWidth:1000 //初始化编辑器宽度,默认1000
//,initialFrameHeight:320 //初始化编辑器高度,默认320 ,initialFrameHeight:320 //初始化编辑器高度,默认320
//,readonly : false //编辑器初始化结束后,编辑区域是否是只读的默认是false //,readonly : false //编辑器初始化结束后,编辑区域是否是只读的默认是false
@@ -254,10 +254,10 @@
//elementPathEnabled //elementPathEnabled
//是否启用元素路径,默认是显示 //是否启用元素路径,默认是显示
//,elementPathEnabled : true ,elementPathEnabled : false
//wordCount //wordCount
//,wordCount:true //是否开启字数统计 ,wordCount:false //是否开启字数统计
//,maximumWords:10000 //允许的最大字符数 //,maximumWords:10000 //允许的最大字符数
//字数统计提示,{#count}代表当前字数,{#leave}代表还可以输入多少字符数,留空支持多语言自动切换,否则按此配置显示 //字数统计提示,{#count}代表当前字数,{#leave}代表还可以输入多少字符数,留空支持多语言自动切换,否则按此配置显示
//,wordCountMsg:'' //当前已输入 {#count} 个字符,您还可以输入{#leave} 个字符 //,wordCountMsg:'' //当前已输入 {#count} 个字符,您还可以输入{#leave} 个字符

View File

@@ -286,7 +286,7 @@
{{msgform.title}} {{msgform.title}}
</p> --> </p> -->
<div class="talkDialog"> <div class="talkDialog">
<timetalk :talkMsgs="talkMsgs" :msgform="msgform" @talksave="getTalkList" ></timetalk> <timetalk :talkMsgs="talkMsgs" :msgform="msgform" @talksave="talksave" ></timetalk>
</div> </div>
</el-dialog> </el-dialog>
@@ -703,6 +703,10 @@
}, },
methods: { methods: {
talksave(val){
this.msgform.ad_content = ''
this.getTalkList()
},
// 刷新引用组件 // 刷新引用组件
refrashComp(){ refrashComp(){
this.$refs.editPublicRefRdit.$forceUpdate() this.$refs.editPublicRefRdit.$forceUpdate()

View File

@@ -266,7 +266,7 @@
</div> </div>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<timetalk :talkMsgs="talkMsgs" :msgform="msgform" @talksave="getTalkList"></timetalk> <timetalk :talkMsgs="talkMsgs" :msgform="msgform" @talksave="talksave"></timetalk>
<div class="tree_box"> <div class="tree_box">
<h2 style="margin: 0 0 20px 0;">Manuscript Tracking</h2> <h2 style="margin: 0 0 20px 0;">Manuscript Tracking</h2>
<div class="block"> <div class="block">
@@ -662,6 +662,10 @@
} }
}, },
methods: { methods: {
talksave(val){
this.msgform.ad_content = ''
this.getTalkList()
},
//弹出编辑框 //弹出编辑框
testvis() { testvis() {
this.editVisible = true; this.editVisible = true;

View File

@@ -13,7 +13,9 @@
</h3> </h3>
<div class="type_MTxt"> <div class="type_MTxt">
<div class="type_MTxt_item" v-for="(item,index) in Main_List" :key="index"> <div class="type_MTxt_item" v-for="(item,index) in Main_List" :key="index">
<p v-html="item.text" v-if="item.width==0"></p> <div :class="[item.is_title == 1 ? 'Ptitle' : '']">
<p v-html="item.text" v-if="item.width==0"></p>
</div>
<p v-if="item.width!=0" class="MaxPicture"> <p v-if="item.width!=0" class="MaxPicture">
<img :src="baseUrl+'public/mainimg/'+item.content" :style="'width:'+item.width+'px'"> <img :src="baseUrl+'public/mainimg/'+item.content" :style="'width:'+item.width+'px'">
<font :style="'width:'+item.width+'px'">{{item.note}} <font :style="'width:'+item.width+'px'">{{item.note}}
@@ -956,4 +958,6 @@ import VueUeditorWrap from 'vue-ueditor-wrap'; // ES6 Module
display: block; display: block;
} }
.istitle{margin: 20px 0;} .istitle{margin: 20px 0;}
.Ptitle{background: rgb(23, 138, 184); padding: 4px; margin: 15px 0;}
.Ptitle p{margin-bottom: 0 !important; font-weight: bold; color: #fff !important;}
</style> </style>

View File

@@ -916,9 +916,9 @@ export default {
<style scoped> <style scoped>
/* 隐藏编辑器底部内容 */ /* 隐藏编辑器底部内容 */
/deep/ #edui1_bottombar{display: none;} /* /deep/ #edui1_bottombar{display: none;} */
/* 编辑器高度 */ /* 编辑器高度 */
/deep/ #edui1_iframeholder{ height: 260px;} /* /deep/ #edui1_iframeholder{ height: 260px;} */
.logtips{margin-bottom: 15px; color: #666;} .logtips{margin-bottom: 15px; color: #666;}
/* .itemIndex{position: relative;} */ /* .itemIndex{position: relative;} */