Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
liangzhen
/
framework-tools-web
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 5874c76e
authored
Mar 08, 2024
by
liuyong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
1 parent
3114aa46
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
src/views/documentEdit/index.vue
src/views/documentEdit/index.vue
View file @
5874c76
...
@@ -80,6 +80,7 @@
...
@@ -80,6 +80,7 @@
:defaultConfig=
"editorConfig"
:defaultConfig=
"editorConfig"
:mode=
"mode"
:mode=
"mode"
@
onCreated=
"onCreated"
@
onCreated=
"onCreated"
@
onChange=
"onChange"
/>
/>
</div>
</div>
</el-form-item>
</el-form-item>
...
@@ -172,6 +173,10 @@ export default {
...
@@ -172,6 +173,10 @@ export default {
onCreated
(
editor
)
{
// 一定要用 Object.seal() ,否则会报错
onCreated
(
editor
)
{
// 一定要用 Object.seal() ,否则会报错
this
.
editor
=
Object
.
seal
(
editor
);
this
.
editor
=
Object
.
seal
(
editor
);
},
},
onChange
(
editor
)
{
const
htmlDocument
=
new
DOMParser
().
parseFromString
(
editor
.
getHtml
(),
'text/html'
);
//svg字符串转标签
console
.
log
(
htmlDocument
)
},
handleCommand
(
type
,
data
)
{
//目录树的操作
handleCommand
(
type
,
data
)
{
//目录树的操作
console
.
log
(
typeof
type
)
console
.
log
(
typeof
type
)
console
.
log
(
data
)
console
.
log
(
data
)
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment