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
13e9e7f3
Commit
13e9e7f3
authored
Feb 09, 2026
by
Яков
Browse files
fix iframe pptx pdf
parent
55471712
Changes
2
Hide whitespace changes
Inline
Side-by-side
package.json
View file @
13e9e7f3
{
{
"name"
:
"react-ag-qeditor"
,
"name"
:
"react-ag-qeditor"
,
"version"
:
"1.1.
29
"
,
"version"
:
"1.1.
30
"
,
"description"
:
"WYSIWYG html editor"
,
"description"
:
"WYSIWYG html editor"
,
"author"
:
"atma"
,
"author"
:
"atma"
,
"license"
:
"
MIT
"
,
"license"
:
"
MIT
"
,
...
...
src/QEditor.jsx
View file @
13e9e7f3
...
@@ -1262,7 +1262,7 @@ const QEditor = ({
...
@@ -1262,7 +1262,7 @@ const QEditor = ({
case
'
iframe_pptx
'
:
case
'
iframe_pptx
'
:
uploadedPaths
.
map
((
file
,
i
)
=>
{
uploadedPaths
.
map
((
file
,
i
)
=>
{
editor
.
chain
().
focus
().
insertContent
(
editor
.
chain
().
focus
().
insertContent
(
`<iframe src="https://view.officeapps.live.com/op/embed.aspx?src=
${
file
.
path
}
"
width="100%" height="600px"
frameBorder="0"></iframe>`
`<iframe src="https://view.officeapps.live.com/op/embed.aspx?src=
${
file
.
path
}
" frameBorder="0"></iframe>`
).
run
()
).
run
()
})
})
break
break
...
@@ -1279,7 +1279,7 @@ const QEditor = ({
...
@@ -1279,7 +1279,7 @@ const QEditor = ({
// `<embed src="${file.path}" width="100%" height="800px" />`
// `<embed src="${file.path}" width="100%" height="800px" />`
// ).run()
// ).run()
editor
.
chain
().
focus
().
insertContent
(
editor
.
chain
().
focus
().
insertContent
(
`<iframe src="https://docs.google.com/viewer?embedded=true&url=
${
file
.
path
}
"
width="100%" height="800px"
frameBorder="0"></iframe>`
`<iframe src="https://docs.google.com/viewer?embedded=true&url=
${
file
.
path
}
" 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