Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
apaas-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gzga-jzapi
apaas-ui
Commits
4849a0d7
Commit
4849a0d7
authored
Oct 26, 2020
by
张俊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
编辑器插入代码
parent
d8accb64
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
3 deletions
+11
-3
src/components/wangE.vue
src/components/wangE.vue
+4
-0
src/components/wangEBd.vue
src/components/wangEBd.vue
+5
-1
src/pages/technical-support/answer-center/detail.vue
src/pages/technical-support/answer-center/detail.vue
+1
-1
src/pages/technical-support/answer-center/edit.vue
src/pages/technical-support/answer-center/edit.vue
+1
-1
No files found.
src/components/wangE.vue
View file @
4849a0d7
...
...
@@ -105,6 +105,10 @@ export default {
this
.
info_
=
html
;
// 绑定当前逐渐地值
this
.
$emit
(
"
change
"
,
this
.
info_
);
// 将内容同步到父组件中
};
this
.
editor
.
config
.
onchange
=
html
=>
{
this
.
info_
=
html
;
// 绑定当前逐渐地值
this
.
$emit
(
"
change
"
,
this
.
info_
);
// 将内容同步到父组件中
};
// 创建富文本编辑器
this
.
editor
.
create
();
}
...
...
src/components/wangEBd.vue
View file @
4849a0d7
...
...
@@ -81,7 +81,7 @@ export default {
this
.
editor
.
config
.
uploadImgMaxLength
=
6
;
// 限制一次最多上传 3 张图片
this
.
editor
.
config
.
uploadImgTimeout
=
3
*
60
*
1000
;
// 设置超时时间
this
.
editor
.
config
.
uploadImgParams
=
{
directory
:
"
image
"
};
console
.
log
(
this
.
editor
);
this
.
editor
.
config
.
uploadImgHooks
=
{
fail
:
(
xhr
,
editor
,
result
)
=>
{
// 插入图片失败回调
...
...
@@ -117,6 +117,10 @@ export default {
this
.
info_
=
html
;
// 绑定当前逐渐地值
this
.
$emit
(
"
change
"
,
this
.
info_
);
// 将内容同步到父组件中
};
this
.
editor
.
config
.
onchange
=
html
=>
{
this
.
info_
=
html
;
// 绑定当前逐渐地值
this
.
$emit
(
"
change
"
,
this
.
info_
);
// 将内容同步到父组件中
};
// 创建富文本编辑器
this
.
editor
.
create
();
}
...
...
src/pages/technical-support/answer-center/detail.vue
View file @
4849a0d7
...
...
@@ -518,7 +518,7 @@ export default {
padding
:
16px
;
}
.ans_self
{
width
:
100%
;
width
:
856px
;
padding
:
24px
;
height
:
354px
;
background-color
:
#ffffff
;
...
...
src/pages/technical-support/answer-center/edit.vue
View file @
4849a0d7
...
...
@@ -104,7 +104,7 @@ export default {
color
:
#242c43
;
}
.detail_content
{
width
:
1
00%
;
width
:
1
200px
;
}
.detail_title
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment