Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
youjj
cloud-platform-ui
Commits
2b96774d
Commit
2b96774d
authored
Oct 14, 2020
by
rencs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
10.14 百度编辑器遮挡bug
parent
dd826306
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
30 deletions
+36
-30
Ueditor.vue
src/views/modal/Ueditor.vue
+36
-30
No files found.
src/views/modal/Ueditor.vue
View file @
2b96774d
...
...
@@ -4,37 +4,43 @@
</div>
</
template
>
<
script
>
export
default
{
name
:
'UE'
,
data
()
{
return
{
editor
:
null
,
}
export
default
{
name
:
"UE"
,
data
()
{
return
{
editor
:
null
,
};
},
props
:
{
defaultMsg
:
{
type
:
String
,
},
props
:
{
defaultMsg
:
{
type
:
String
},
config
:
{
type
:
Object
},
editorId
:{}
config
:
{
type
:
Object
,
},
mounted
()
{
const
_this
=
this
;
this
.
editor
=
UE
.
getEditor
(
this
.
editorId
,
this
.
config
);
// 初始化UE
this
.
editor
.
addListener
(
"ready"
,
function
()
{
_this
.
editor
.
setContent
(
_this
.
defaultMsg
);
// 确保UE加载完成后,放入内容。
_this
.
$emit
(
'ready'
,
_this
.
editor
);
});
editorId
:
{},
},
mounted
()
{
const
_this
=
this
;
this
.
editor
=
UE
.
getEditor
(
this
.
editorId
,
this
.
config
);
// 初始化UE
this
.
editor
.
addListener
(
"ready"
,
function
()
{
_this
.
editor
.
setContent
(
_this
.
defaultMsg
);
// 确保UE加载完成后,放入内容。
_this
.
$emit
(
"ready"
,
_this
.
editor
);
});
},
methods
:
{
getUEContent
()
{
// 获取内容方法
return
this
.
editor
.
getContent
();
},
methods
:
{
getUEContent
()
{
// 获取内容方法
return
this
.
editor
.
getContent
()
}
},
destroyed
()
{
this
.
editor
.
destroy
();
}
}
},
destroyed
()
{
this
.
editor
.
destroy
();
},
};
</
script
>
<
style
lang=
"scss"
scoped
>
.edui-default
{
z-index
:
0
;
}
</
style
>
>
\ No newline at end of file
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