Commit 4012a06e by Яков

update pdf and pptx

parent 13e9e7f3
{
"name": "react-ag-qeditor",
"version": "1.1.30",
"version": "1.1.31",
"description": "WYSIWYG html editor",
"author": "atma",
"license": "MIT",
......
......@@ -1262,8 +1262,11 @@ const QEditor = ({
case 'iframe_pptx':
uploadedPaths.map((file, i) => {
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()
// editor.chain().focus().insertContent(
// `<iframe src="https://view.officeapps.live.com/op/embed.aspx?src=${file.path}" frameBorder="0"></iframe>`
// ).run()
})
break
case 'audio':
......@@ -1278,8 +1281,11 @@ const QEditor = ({
// editor.chain().focus().insertContent(
// `<embed src="${file.path}" width="100%" height="800px" />`
// ).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(
`<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()
})
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