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
08094fda
Commit
08094fda
authored
Oct 05, 2023
by
yakoff94
Browse files
add pdf
parent
8f2725a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/QEditor.jsx
View file @
08094fda
...
...
@@ -1000,8 +1000,8 @@ const QEditor = ({
break
case
'
iframe_pdf
'
:
uploadedPaths
.
map
((
file
,
i
)
=>
{
console
.
log
(
file
.
path
);
console
.
log
(<
iframe
src
=
"https://view.officeapps.live.com/op/embed.aspx?src=${file.path}"
width
=
"100%"
height
=
"600px"
frameBorder
=
"0"
></
iframe
>);
//
console.log(file.path);
//
console.log(<iframe src="https://view.officeapps.live.com/op/embed.aspx?src=${file.path}" width="100%" height="600px" frameBorder="0"></iframe>);
editor
.
chain
().
focus
().
insertContent
(
`<iframe src="https://view.officeapps.live.com/op/embed.aspx?src=
${
file
.
path
}
" width="100%" height="600px" frameBorder="0"></iframe>`
).
run
();
})
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