Commit 13e9e7f3 by Яков

fix iframe pptx pdf

parent 55471712
{ {
"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",
......
...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment