Commit 023a6dd5 by Lyan

提交

parent c6f1209a
......@@ -7,7 +7,7 @@ body {
font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
font-size: 12px;
line-height: 1.15;
color: #303133;
color: #000;
background-color: #fff;
}
a {
......@@ -357,6 +357,16 @@ img {
}
}
}
.el-table{
td,th{
color: #000;
background-color: rgb(238, 247, 253);
border: 1px solid #fff;
}
button{
padding: 0;
}
}
.el-table__expand-icon {
display: inline-block;
width: 14px;
......@@ -480,7 +490,17 @@ img {
}
.el-form{
font-size: 12px;
.el-form-item__content{
line-height: normal;
}
.el-form-item__label{
color: #000;
}
.el-input__inner{
color: #000;
}
}
.el-pagination__total{
color: #000;
}
......@@ -158,7 +158,6 @@
</template>
</el-table-column>
<el-table-column
fixed="right"
header-align="center"
align="center"
width="150"
......
......@@ -150,7 +150,6 @@
</template>
</el-table-column>
<el-table-column
fixed="right"
header-align="center"
align="center"
width="150"
......
......@@ -135,7 +135,6 @@
</template>
</el-table-column>
<el-table-column
fixed="right"
header-align="center"
align="center"
width="150"
......
......@@ -15,9 +15,12 @@
</div>
</div>
</template>
<el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmit()" label-width="120px" >
<el-form-item label="原始标题:" prop="titleOld">
<el-input v-model="dataForm.titleOld" placeholder="请输入原始标题" v-show="!showInfo"></el-input>
<el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmit()" label-width="120px" v-loading="loading">
<el-form-item label="原始标题:" prop="titleOld" >
<el-input v-model="dataForm.titleOld" placeholder="请输入原始标题" v-show="!showInfo" style='width:80%!important'></el-input>
<el-button @click="copyTitle" style='width:18%!important;white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;'>复制到显示标题</el-button>
<p v-show="showInfo">{{dataForm.titleOld}}</p>
</el-form-item>
<el-form-item label="显示标题:" prop="title">
......@@ -37,13 +40,6 @@
</el-form-item>
<el-form-item label="栏目:" prop="classid">
<el-select v-model="dataForm.classid" @change="getCclassList2" style='width:121px!important' v-show="!showInfo" clearable>
<!-- <el-option
ref = 'sel1'
v-for="item in classidList"
:key="item.id"
:label="item.name"
:value="item.id">
</el-option> -->
<el-option value="5" label="综合报道"></el-option>
<el-option value="6" label="中心活动"></el-option>
<el-option value="7" label="地方动态"></el-option>
......@@ -194,9 +190,9 @@ export default {
// pic: [
// { required: true, message: '不能为空', trigger: 'blur' }
// ],
content: [
{ required: true, message: '不能为空', trigger: 'blur' }
],
// content: [
// { required: true, message: '不能为空', trigger: 'blur' }
// ],
classid: [
{ required: true, message: '不能为空', trigger: 'blur' }
],
......@@ -323,7 +319,6 @@ export default {
'showtime': this.dataForm.showtime
})
}).then(({data}) => {
this.loading = false
if (data && data.code === 0) {
this.$message({
message: '操作成功',
......@@ -338,10 +333,14 @@ export default {
} else {
this.$message.error(data.msg)
}
this.loading = false
})
}
})
},
copyTitle () {
this.dataForm.title = this.dataForm.titleOld
},
// 获取栏目列表
getClassList (id) {
this.$http({
......@@ -516,13 +515,13 @@ export default {
}
.el-form /deep/.el-form-item__label,.el-table{
font-size: 12px;
// font-size: 12px;
}
input::-webkit-input-placeholder {
/* placeholder颜色 */
/* placeholder字体大小 */
font-size: 12px;
// font-size: 12px;
}
.el-radio-group{
line-height:40px;
......
......@@ -61,7 +61,8 @@
</el-select>
</el-form-item>
<el-form-item label="简介:" prop="brief">
<el-input type="textarea" rows="5" v-model="dataForm.brief" placeholder="请输入简介" v-show="!showInfo"></el-input>
<!-- <el-input type="textarea" rows="5" v-model="dataForm.brief" placeholder="请输入简介" v-show="!showInfo"></el-input> -->
<Ueditor @ready="editorReady" :value="ueditor2.value" :config="ueditor2.config" ref="ue2" v-show="!showInfo"></Ueditor>
<p v-show="showInfo">{{dataForm.brief}}</p>
</el-form-item>
<el-form-item label="上传图片命名规则" prop="rules">
......@@ -94,11 +95,10 @@
<p class="mark">注:视频为MP4格式,视频编码推荐h.264,音频格式AAC,不超过100M</p>
</el-form-item>
<el-form-item label="说明" prop="content" >
<!-- <el-form-item label="说明" prop="content" >
<Ueditor @ready="editorReady" :value="ueditor.value" :config="ueditor.config" ref="ue" v-show="!showInfo"></Ueditor>
<!-- <el-input v-model="dataForm.content" placeholder="请输入内容"></el-input> -->
<div v-show="showInfo" v-html="dataForm.content"></div>
</el-form-item>
</el-form-item> -->
<el-form-item label="时间" prop="showtime">
<el-date-picker
......@@ -199,6 +199,10 @@ export default {
value: '',
config: {}
},
ueditor2: {
value: '',
config: {}
},
piclevelList,
clanguageList: ['中文'],
id: [],
......@@ -213,6 +217,7 @@ export default {
methods: {
init (id, showInfo) {
this.ueditor.value = ''
this.ueditor2.value = ''
this.dataForm.id = id || 0
this.visible = true
this.showInfo = showInfo
......@@ -233,6 +238,7 @@ export default {
this.videoUrlStr = this.dataForm.wavname
this.dataForm.wavname = this.dataForm.wavname
this.ueditor.value = this.dataForm.content
this.ueditor2.value = this.dataForm.brief
this.dialogVisible = true
this.dialogVisible2 = true
} else {
......@@ -382,6 +388,7 @@ export default {
this.videoUrlStr = ''
this.dialogVisible2 = false
this.ueditor.value = ''
this.ueditor2.value = ''
},
// 更新父子组件内容
editorReady (instance) {
......@@ -389,7 +396,14 @@ export default {
instance.addListener('contentChange', () => {
this.dataForm.content = instance.getContent()
})
}
},
// 更新父子组件内容
editorReady2 (instance) {
instance.setContent(this.dataForm.brief)
instance.addListener('contentChange', () => {
this.dataForm.brief = instance.getContent()
})
},
}
}
</script>
......
......@@ -188,7 +188,6 @@
</template>
</el-table-column>
<el-table-column
fixed="right"
header-align="center"
align="center"
width="150"
......@@ -433,3 +432,9 @@ export default {
}
}
</script>
<style lang="scss" scoped>
/deep/.el-table--scrollable-x /deep/.el-table__body-wrapper {
overflow-x: hidden;
}
</style>>
......@@ -119,7 +119,6 @@
</template>
</el-table-column>
<el-table-column
fixed="right"
header-align="center"
align="center"
width="150"
......
......@@ -181,13 +181,13 @@ export default {
trigger: 'blur'
}
],
keyword: [
{
required: true,
message: '不能为空',
trigger: 'blur'
}
],
// keyword: [
// {
// required: true,
// message: '不能为空',
// trigger: 'blur'
// }
// ],
// jumppath: [
// {
// required: true,
......
......@@ -96,7 +96,7 @@
</div>
</template>
</el-table-column>
<el-table-column fixed="right"
<el-table-column
header-align="center"
align="center"
width="150"
......
......@@ -59,7 +59,6 @@
label="">
</el-table-column>
<el-table-column
fixed="right"
header-align="center"
align="center"
width="150"
......
......@@ -68,7 +68,6 @@
</template>
</el-table-column>
<el-table-column
fixed="right"
header-align="center"
align="center"
width="150"
......
......@@ -86,7 +86,6 @@
</template>
</el-table-column>
<el-table-column
fixed="right"
header-align="center"
align="center"
width="150"
......
......@@ -114,7 +114,6 @@
</template>
</el-table-column>
<el-table-column
fixed="right"
header-align="center"
align="center"
width="150"
......
......@@ -40,7 +40,6 @@
label="创建时间">
</el-table-column>
<el-table-column
fixed="right"
header-align="center"
align="center"
width="150"
......
......@@ -147,7 +147,6 @@
</template>
</el-table-column>
<el-table-column
fixed="right"
header-align="center"
align="center"
width="150"
......
......@@ -65,6 +65,7 @@
:data="dataList"
v-loading="dataListLoading"
@selection-change="selectionChangeHandle"
border
@sort-change="changeTableSort"
style="width: 100%;">
<el-table-column
......@@ -144,7 +145,6 @@
</template>
</el-table-column>
<el-table-column
fixed="right"
header-align="center"
align="center"
width="150"
......
......@@ -147,18 +147,17 @@
</template>
</el-table-column>
<el-table-column
fixed="right"
header-align="center"
align="center"
width="150"
label="操作">
<template slot-scope="scope">
<el-button v-if="isAuth('manage:rules:check')" type="text" size="small" @click="checkHandle(scope.row.id,1)">[成功]</el-button>
<el-button v-if="isAuth('manage:rules:check')" type="text" size="small" @click="checkHandle(scope.row.id,-1)">[失败]</el-button>
<el-button v-if="isAuth('manage:rules:check')" type="text" size="small" @click="checkHandle(scope.row.id,scope.row.title,1)">[成功]</el-button>
<el-button v-if="isAuth('manage:rules:check')" type="text" size="small" @click="checkHandle(scope.row.id,scope.row.title,-1)">[失败]</el-button>
<br v-if="isAuth('manage:rules:check')" />
<el-button v-if="isAuth('manage:rules:info')" type="text" size="small" @click="showMsg(scope.row)">预览</el-button>
<el-button v-if="isAuth('manage:rules:update')" type="text" size="small" @click="addOrUpdateHandle(scope.row.id)">修改</el-button>
<el-button v-if="isAuth('manage:rules:delete')" type="text" size="small" @click="deleteHandle(scope.row.id)">删除</el-button>
<el-button v-if="isAuth('manage:rules:delete')" type="text" size="small" @click="deleteHandle(scope.row.id,scope.row.title)">删除</el-button>
</template>
</el-table-column>
</el-table>
......
......@@ -145,7 +145,6 @@
</template>
</el-table-column>
<el-table-column
fixed="right"
header-align="center"
align="center"
width="150"
......
......@@ -23,12 +23,13 @@
<el-form-item label="作者" prop="author">
<el-input v-model="dataForm.author" placeholder="请输入" ></el-input>
</el-form-item>
<el-form-item label="解释" prop="brief">
<el-input v-model="dataForm.brief" rows="5" placeholder="请输入" type="textarea"></el-input>
</el-form-item>
<el-form-item label="备注" prop="content">
<el-form-item label="解释" prop="content">
<el-input v-model="dataForm.content" rows="5" placeholder="请输入" type="textarea"></el-input>
</el-form-item>
<el-form-item label="备注" prop="brief">
<el-input v-model="dataForm.brief" rows="5" placeholder="请输入" type="textarea"></el-input>
</el-form-item>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button @click="visible = false">取消</el-button>
......@@ -80,13 +81,13 @@ export default {
// trigger: 'blur'
// }
// ],
brief: [
{
required: true,
message: '解释不能为空',
trigger: 'blur'
}
]
// brief: [
// {
// required: true,
// message: '解释不能为空',
// trigger: 'blur'
// }
// ]
// author: [
// {
// required: true,
......
......@@ -48,7 +48,7 @@
<el-table-column
prop="titleEn"
header-align="center"
align="left"
align="center"
width="260px"
label="英文标题"
>
......@@ -56,7 +56,7 @@
<el-table-column
prop="titleCn"
header-align="center"
align="left"
align="center"
width="260px"
label="中文标题"
>
......@@ -64,13 +64,13 @@
<el-table-column
prop="keyword"
header-align="center"
align="left"
align="center"
width="260px"
label="关键字"
>
</el-table-column>
<el-table-column
prop="brief"
prop="content"
header-align="center"
align="left"
width="260px"
......@@ -98,7 +98,6 @@
</el-table-column>
<el-table-column
fixed="right"
header-align="center"
align="center"
width="150"
......
......@@ -125,7 +125,6 @@
</template>
</el-table-column>
<el-table-column
fixed="right"
header-align="center"
align="center"
width="150"
......
......@@ -32,7 +32,6 @@
>
</el-table-column>
<el-table-column
fixed="right"
header-align="center"
align="center"
width="150"
......@@ -151,7 +150,7 @@ export default {
return item.categoryid
})
this.$confirm(
`确定对[标题=${title}]进行[${id ? '删除' : '批量删除'}]操作?`,
`确定对[类型=${title}]进行[${id ? '删除' : '批量删除'}]操作?`,
'提示',
{
confirmButtonText: '确定',
......
......@@ -103,7 +103,6 @@
</el-table-column>
<el-table-column
fixed="right"
header-align="center"
align="center"
width="150"
......@@ -114,14 +113,14 @@
v-if="isAuth('plate:product:check')"
type="text"
size="small"
@click="checkHandle(scope.row.id,scope.row.title, 1)"
@click="checkHandle(scope.row.id,scope.row.prename, 1)"
>[成功]</el-button
>
<el-button
v-if="isAuth('plate:product:check')"
type="text"
size="small"
@click="checkHandle(scope.row.id,scope.row.title, -1)"
@click="checkHandle(scope.row.id,scope.row.prename, -1)"
>[失败]</el-button
>
<br v-if="isAuth('plate:product:check')" />
......@@ -293,7 +292,7 @@ export default {
return item.id
})
this.$confirm(
`确定对[标题=${title}]进行[${id ? '删除' : '批量删除'}]操作?`,
`确定对[商品名称=${title}]进行[${id ? '删除' : '批量删除'}]操作?`,
'提示',
{
confirmButtonText: '确定',
......@@ -329,7 +328,7 @@ export default {
} else {
str = '失败'
}
this.$confirm(`确定对[标题=${title}]进行['审核${str}']操作?`, '提示', {
this.$confirm(`确定对[商品名称=${title}]进行['审核${str}']操作?`, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
......
......@@ -13,7 +13,7 @@
<p v-show="showInfo">{{dataForm.title}}</p>
</el-form-item>
<el-form-item label='类别:' prop='class1'>
<el-select v-model="dataForm.class1" placeholder="请输入别" v-show="!showInfo">
<el-select v-model="dataForm.class1" placeholder="请输入别" v-show="!showInfo">
<el-option
v-for="item in typeList"
:key="item.typeName"
......
......@@ -140,7 +140,6 @@
</template>
</el-table-column>
<el-table-column
fixed="right"
header-align="center"
align="center"
width="150"
......
......@@ -96,7 +96,7 @@
</div>
</template>
</el-table-column>
<el-table-column fixed="right"
<el-table-column
header-align="center"
align="center"
width="150"
......
......@@ -47,7 +47,6 @@
label="邮编">
</el-table-column>
<el-table-column
fixed="right"
header-align="center"
align="center"
width="150"
......
......@@ -84,7 +84,6 @@
</template>
</el-table-column>
<el-table-column
fixed="right"
header-align="center"
align="center"
width="150"
......
......@@ -194,7 +194,6 @@
</template>
</el-table-column>
<el-table-column
fixed="right"
header-align="center"
align="center"
width="150"
......
......@@ -218,7 +218,6 @@
</template>
</el-table-column>
<el-table-column
fixed="right"
header-align="center"
align="center"
width="150"
......@@ -229,14 +228,14 @@
v-if="isAuth('standard:partners:check')"
type="text"
size="small"
@click="checkHandle(scope.row.id,scope.row.title, 1)"
@click="checkHandle(scope.row.id,scope.row.firmname, 1)"
>[成功]</el-button
>
<el-button
v-if="isAuth('standard:partners:check')"
type="text"
size="small"
@click="checkHandle(scope.row.id,scope.row.title, -1)"
@click="checkHandle(scope.row.id,scope.row.firmname, -1)"
>[失败]</el-button
>
<br v-if="isAuth('standard:partners:check')" />
......@@ -540,7 +539,7 @@ export default {
} else {
str = '失败'
}
this.$confirm(`确定对[标题=${title}]进行['审核${str}']操作?`, '提示', {
this.$confirm(`确定对[${title}]进行['审核${str}']操作?`, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
......
......@@ -48,7 +48,6 @@
label="备注">
</el-table-column>
<el-table-column
fixed="right"
header-align="center"
align="center"
width="150"
......
......@@ -65,14 +65,13 @@
label="授权标识">
</el-table-column>
<el-table-column
fixed="right"
header-align="center"
align="center"
width="150"
label="操作">
<template slot-scope="scope">
<el-button v-if="isAuth('sys:menu:update')" type="text" size="small" @click="addOrUpdateHandle(scope.row.menuId)">修改</el-button>
<el-button v-if="isAuth('sys:menu:delete')" type="text" size="small" @click="deleteHandle(scope.row.menuId,scope.row.title)">删除</el-button>
<el-button v-if="isAuth('sys:menu:delete')" type="text" size="small" @click="deleteHandle(scope.row.menuId,scope.row.name)">删除</el-button>
</template>
</el-table-column>
</el-table>
......@@ -121,7 +120,7 @@
},
// 删除
deleteHandle (id, title) {
this.$confirm(`确定对[标题=${title}]进行[删除]操作?`, '提示', {
this.$confirm(`确定对[名称=${title}]进行[删除]操作?`, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
......
......@@ -42,14 +42,19 @@
label="备注">
</el-table-column>
<el-table-column
prop="createUserName"
header-align="center"
align="center"
label="创建人">
</el-table-column>
<el-table-column
prop="createTime"
header-align="center"
align="center"
width="180"
label="创建时间">
</el-table-column>
<el-table-column
fixed="right"
header-align="center"
align="center"
width="150"
......
......@@ -65,7 +65,6 @@
label="创建时间">
</el-table-column>
<el-table-column
fixed="right"
header-align="center"
align="center"
width="150"
......
......@@ -15,7 +15,7 @@
setOpt: function (a, b) { var c = {}; utils.isString(a) ? c[a] = b : c = a, utils.extend(this.options, c, !0) },
getOpt: function (a) { return this.options[a] },
destroy: function () { var a = this; a.fireEvent('destroy'); var b = a.container.parentNode, c = a.textarea; c ? c.style.display = '' : (c = document.createElement('textarea'), b.parentNode.insertBefore(c, b)), c.style.width = a.iframe.offsetWidth + 'px', c.style.height = a.iframe.offsetHeight + 'px', c.value = a.getContent(), c.id = a.key, b.innerHTML = '', domUtils.remove(b); var d = a.key; for (var e in a)a.hasOwnProperty(e) && delete this[e]; UE.delEditor(d) },
render: function (a) { var b = this, c = b.options, d = function (b) { return parseInt(domUtils.getComputedStyle(a, b)) }; if (utils.isString(a) && (a = document.getElementById(a)), a) { c.initialFrameWidth ? c.minFrameWidth = c.initialFrameWidth : c.minFrameWidth = c.initialFrameWidth = a.offsetWidth, c.initialFrameHeight ? c.minFrameHeight = c.initialFrameHeight : c.initialFrameHeight = c.minFrameHeight = a.offsetHeight, a.style.width = /%$/.test(c.initialFrameWidth) ? '100%' : c.initialFrameWidth - d('padding-left') - d('padding-right') + 'px', a.style.height = /%$/.test(c.initialFrameHeight) ? '100%' : c.initialFrameHeight - d('padding-top') - d('padding-bottom') + 'px', a.style.zIndex = c.zIndex; var e = (ie && browser.version < 9 ? '' : '<!DOCTYPE html>') + "<html xmlns='http://www.w3.org/1999/xhtml' class='view' ><head><style type='text/css'>.view{padding:0;word-wrap:break-word;cursor:text;height:90%;}\nbody{margin:8px;font-family:'微软雅黑';font-size:14px;}p{margin:5px 0;}</style>" + (c.iframeCssUrl ? "<link rel='stylesheet' type='text/css' href='" + utils.unhtml(c.iframeCssUrl) + "'/>" : '') + (c.initialStyle ? '<style>' + c.initialStyle + '</style>' : '') + "</head><body class='view' ></body><script type='text/javascript' " + (ie ? "defer='defer'" : '') + " id='_initialScript'>setTimeout(function(){editor = window.parent.UE.instants['ueditorInstant" + b.uid + "'];editor._setup(document);},0);var _tmpScript = document.getElementById('_initialScript');_tmpScript.parentNode.removeChild(_tmpScript);</script></html>"; a.appendChild(domUtils.createElement(document, 'iframe', {id: 'ueditor_' + b.uid, width: '100%', height: '100%', frameborder: '0', src: 'javascript:void(function(){document.open();' + (c.customDomain && document.domain != location.hostname ? 'document.domain="' + document.domain + '";' : '') + 'document.write("' + e + '");document.close();}())'})), a.style.overflow = 'hidden', setTimeout(function () { /%$/.test(c.initialFrameWidth) && (c.minFrameWidth = c.initialFrameWidth = a.offsetWidth), /%$/.test(c.initialFrameHeight) && (c.minFrameHeight = c.initialFrameHeight = a.offsetHeight, a.style.height = c.initialFrameHeight + 'px') }) } },
render: function (a) { var b = this, c = b.options, d = function (b) { return parseInt(domUtils.getComputedStyle(a, b)) }; if (utils.isString(a) && (a = document.getElementById(a)), a) { c.initialFrameWidth ? c.minFrameWidth = c.initialFrameWidth : c.minFrameWidth = c.initialFrameWidth = a.offsetWidth, c.initialFrameHeight ? c.minFrameHeight = c.initialFrameHeight : c.initialFrameHeight = c.minFrameHeight = a.offsetHeight, a.style.width = /%$/.test(c.initialFrameWidth) ? '100%' : c.initialFrameWidth - d('padding-left') - d('padding-right') + 'px', a.style.height = /%$/.test(c.initialFrameHeight) ? '100%' : c.initialFrameHeight - d('padding-top') - d('padding-bottom') + 'px', a.style.zIndex = c.zIndex; var e = (ie && browser.version < 9 ? '' : '<!DOCTYPE html>') + "<html xmlns='http://www.w3.org/1999/xhtml' class='view' ><head><style type='text/css'>.view{padding:0;word-wrap:break-word;cursor:text;height:90%;}\nbody{margin:8px;font-family:'微软雅黑';font-size:16px;}p{margin:5px 0;}</style>" + (c.iframeCssUrl ? "<link rel='stylesheet' type='text/css' href='" + utils.unhtml(c.iframeCssUrl) + "'/>" : '') + (c.initialStyle ? '<style>' + c.initialStyle + '</style>' : '') + "</head><body class='view' ></body><script type='text/javascript' " + (ie ? "defer='defer'" : '') + " id='_initialScript'>setTimeout(function(){editor = window.parent.UE.instants['ueditorInstant" + b.uid + "'];editor._setup(document);},0);var _tmpScript = document.getElementById('_initialScript');_tmpScript.parentNode.removeChild(_tmpScript);</script></html>"; a.appendChild(domUtils.createElement(document, 'iframe', {id: 'ueditor_' + b.uid, width: '100%', height: '100%', frameborder: '0', src: 'javascript:void(function(){document.open();' + (c.customDomain && document.domain != location.hostname ? 'document.domain="' + document.domain + '";' : '') + 'document.write("' + e + '");document.close();}())'})), a.style.overflow = 'hidden', setTimeout(function () { /%$/.test(c.initialFrameWidth) && (c.minFrameWidth = c.initialFrameWidth = a.offsetWidth), /%$/.test(c.initialFrameHeight) && (c.minFrameHeight = c.initialFrameHeight = a.offsetHeight, a.style.height = c.initialFrameHeight + 'px') }) } },
_setup: function (b) { var c = this, d = c.options; ie ? (b.body.disabled = !0, b.body.contentEditable = !0, b.body.disabled = !1) : b.body.contentEditable = !0, b.body.spellcheck = !1, c.document = b, c.window = b.defaultView || b.parentWindow, c.iframe = c.window.frameElement, c.body = b.body, c.selection = new dom.Selection(b); var e; browser.gecko && (e = this.selection.getNative()) && e.removeAllRanges(), this._initEvents(); for (var f = this.iframe.parentNode; !domUtils.isBody(f); f = f.parentNode) if (f.tagName == 'FORM') { c.form = f, c.options.autoSyncData ? domUtils.on(c.window, 'blur', function () { a(f, c) }) : domUtils.on(f, 'submit', function () { a(this, c) }); break } if (d.initialContent) if (d.autoClearinitialContent) { var g = c.execCommand; c.execCommand = function () { return c.fireEvent('firstBeforeExecCommand'), g.apply(c, arguments) }, this._setDefaultContent(d.initialContent) } else this.setContent(d.initialContent, !1, !0); domUtils.isEmptyNode(c.body) && (c.body.innerHTML = '<p>' + (browser.ie ? '' : '<br/>') + '</p>'), d.focus && setTimeout(function () { c.focus(c.options.focusInEnd), !c.options.autoClearinitialContent && c._selectionChange() }, 0), c.container || (c.container = this.iframe.parentNode), d.fullscreen && c.ui && c.ui.setFullScreen(!0); try { c.document.execCommand('2D-position', !1, !1) } catch (h) {} try { c.document.execCommand('enableInlineTableEditing', !1, !1) } catch (h) {} try { c.document.execCommand('enableObjectResizing', !1, !1) } catch (h) {}c._bindshortcutKeys(), c.isReady = 1, c.fireEvent('ready'), d.onready && d.onready.call(c), browser.ie9below || domUtils.on(c.window, ['blur', 'focus'], function (a) { if (a.type == 'blur') { c._bakRange = c.selection.getRange(); try { c._bakNativeRange = c.selection.getNative().getRangeAt(0), c.selection.getNative().removeAllRanges() } catch (a) { c._bakNativeRange = null } } else try { c._bakRange && c._bakRange.select() } catch (a) {} }), browser.gecko && browser.version <= 10902 && (c.body.contentEditable = !1, setTimeout(function () { c.body.contentEditable = !0 }, 100), setInterval(function () { c.body.style.height = c.iframe.offsetHeight - 20 + 'px' }, 100)), !d.isShow && c.setHide(), d.readonly && c.setDisabled() },
sync: function (b) { var c = this, d = b ? document.getElementById(b) : domUtils.findParent(c.iframe.parentNode, function (a) { return a.tagName == 'FORM' }, !0); d && a(d, c) },
setHeight: function (a, b) { a !== parseInt(this.iframe.parentNode.style.height) && (this.iframe.parentNode.style.height = a + 'px'), !b && (this.options.minFrameHeight = this.options.initialFrameHeight = a), this.body.style.height = a + 'px', !b && this.trigger('setHeight') },
......
......@@ -150,7 +150,7 @@
//, theme:'default'
//, themePath:URL +"themes/"
zIndex: 2100, // 编辑器层级的基数,默认是900
zIndex: 210, // 编辑器层级的基数,默认是900
// 针对getAllHtml方法,会在对应的head标签中增加该编码设置。
//, charset:"utf-8"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment