Commit 5107392c by yakoff94

update pdf

parent 3f65761a
{ {
"name": "react-ag-qeditor", "name": "react-ag-qeditor",
"version": "1.0.34", "version": "1.0.35",
"description": "WYSIWYG html editor", "description": "WYSIWYG html editor",
"author": "atma", "author": "atma",
"license": "MIT", "license": "MIT",
......
...@@ -1101,8 +1101,11 @@ const QEditor = ({ ...@@ -1101,8 +1101,11 @@ const QEditor = ({
break break
case 'iframe_pdf': case 'iframe_pdf':
uploadedPaths.map((file, i) => { uploadedPaths.map((file, i) => {
// editor.chain().focus().insertContent(
// `<embed src="${file.path}" width="100%" height="800px" />`
// ).run()
editor.chain().focus().insertContent( editor.chain().focus().insertContent(
`<iframe src="${file.path}" width="100%" frameBorder="0"></iframe>` `<iframe src="https://docs.google.com/viewer?embedded=true&url=${file.path}" width="100%" height="800px" 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