Commit 4012a06e by Яков

update pdf and pptx

parent 13e9e7f3
{ {
"name": "react-ag-qeditor", "name": "react-ag-qeditor",
"version": "1.1.30", "version": "1.1.31",
"description": "WYSIWYG html editor", "description": "WYSIWYG html editor",
"author": "atma", "author": "atma",
"license": "MIT", "license": "MIT",
......
...@@ -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.officeapps.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
......
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