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
5107392c
Commit
5107392c
authored
May 22, 2024
by
yakoff94
Browse files
update pdf
parent
3f65761a
Changes
2
Hide whitespace changes
Inline
Side-by-side
package.json
View file @
5107392c
{
{
"name"
:
"react-ag-qeditor"
,
"name"
:
"react-ag-qeditor"
,
"version"
:
"1.0.3
4
"
,
"version"
:
"1.0.3
5
"
,
"description"
:
"WYSIWYG html editor"
,
"description"
:
"WYSIWYG html editor"
,
"author"
:
"atma"
,
"author"
:
"atma"
,
"license"
:
"
MIT
"
,
"license"
:
"
MIT
"
,
...
...
src/QEditor.jsx
View file @
5107392c
...
@@ -1101,8 +1101,11 @@ const QEditor = ({
...
@@ -1101,8 +1101,11 @@ const QEditor = ({
break
break
case
'
iframe_pdf
'
:
case
'
iframe_pdf
'
:
uploadedPaths
.
map
((
file
,
i
)
=>
{
uploadedPaths
.
map
((
file
,
i
)
=>
{
// editor.chain().focus().insertContent(
// `<embed src="${file.path}" width="100%" height="800px" />`
// ).run()
editor
.
chain
().
focus
().
insertContent
(
editor
.
chain
().
focus
().
insertContent
(
`<iframe src="
${
file
.
path
}
" width="100%" frameBorder="0"></iframe>`
`<iframe src="
https://docs.google.com/viewer?embedded=true&url=
${
file
.
path
}
" width="100%"
height="800px"
frameBorder="0"></iframe>`
).
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