Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
lib
react-ag-qeditor
Commits
c9f1d4ba
Commit
c9f1d4ba
authored
May 20, 2024
by
yakoff94
Browse files
fix
parent
08dc066a
Changes
2
Show whitespace changes
Inline
Side-by-side
package.json
View file @
c9f1d4ba
{
{
"name"
:
"react-ag-qeditor"
,
"name"
:
"react-ag-qeditor"
,
"version"
:
"1.0.3
0
"
,
"version"
:
"1.0.3
1
"
,
"description"
:
"WYSIWYG html editor"
,
"description"
:
"WYSIWYG html editor"
,
"author"
:
"atma"
,
"author"
:
"atma"
,
"license"
:
"
MIT
"
,
"license"
:
"
MIT
"
,
...
...
src/QEditor.jsx
View file @
c9f1d4ba
...
@@ -1100,9 +1100,7 @@ const QEditor = ({
...
@@ -1100,9 +1100,7 @@ const QEditor = ({
let
exp
=
file
.
path
.
split
(
'
.
'
)
let
exp
=
file
.
path
.
split
(
'
.
'
)
exp
=
exp
[
exp
.
length
-
1
]
exp
=
exp
[
exp
.
length
-
1
]
editor
.
chain
().
focus
().
insertContent
(
editor
.
chain
().
focus
().
insertContent
(
`
`<a href="
${
file
.
path
}
" target="_blank" download="
${
file
.
name
}
.
${
exp
}
" data-size="
${
file
.
size
}
">
${
file
.
name
}
</a>`
<a href="
${
file
.
path
}
" target="_blank" download="
${
file
.
name
}
.
${
exp
}
" data-size="
${
file
.
size
}
">
${
file
.
name
}
</a>
`
).
run
()
).
run
()
})
})
break
break
...
...
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