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
4012a06e
Commit
4012a06e
authored
Feb 09, 2026
by
Яков
Browse files
update pdf and pptx
parent
13e9e7f3
Changes
2
Show whitespace changes
Inline
Side-by-side
package.json
View file @
4012a06e
{
{
"name"
:
"react-ag-qeditor"
,
"name"
:
"react-ag-qeditor"
,
"version"
:
"1.1.3
0
"
,
"version"
:
"1.1.3
1
"
,
"description"
:
"WYSIWYG html editor"
,
"description"
:
"WYSIWYG html editor"
,
"author"
:
"atma"
,
"author"
:
"atma"
,
"license"
:
"
MIT
"
,
"license"
:
"
MIT
"
,
...
...
src/QEditor.jsx
View file @
4012a06e
...
@@ -1262,8 +1262,11 @@ const QEditor = ({
...
@@ -1262,8 +1262,11 @@ 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.
office
apps.live.com/op/embed.aspx?src
=
${
file
.
path
}
" frameBorder="0"></iframe>`
`<iframe src="https://office
.atmaguru.online/pptx?readOnly=1&file
=
${
file
.
path
}
" frameBorder="0"></iframe>`
).
run
()
).
run
()
// editor.chain().focus().insertContent(
// `<iframe src="https://view.officeapps.live.com/op/embed.aspx?src=${file.path}" frameBorder="0"></iframe>`
// ).run()
})
})
break
break
case
'
audio
'
:
case
'
audio
'
:
...
@@ -1278,8 +1281,11 @@ const QEditor = ({
...
@@ -1278,8 +1281,11 @@ const QEditor = ({
// editor.chain().focus().insertContent(
// editor.chain().focus().insertContent(
// `<embed src="${file.path}" width="100%" height="800px" />`
// `<embed src="${file.path}" width="100%" height="800px" />`
// ).run()
// ).run()
// editor.chain().focus().insertContent(
// `<iframe src="https://docs.google.com/viewer?embedded=true&url=${file.path}" frameBorder="0"></iframe>`
// ).run()
editor
.
chain
().
focus
().
insertContent
(
editor
.
chain
().
focus
().
insertContent
(
`<iframe src="https://
docs.google.com/viewer?embedded=true&url
=
${
file
.
path
}
" frameBorder="0"></iframe>`
`<iframe src="https://
cdn.atmaguru.online/pdfjs/web/viewer.html?file
=
${
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