Commit 08094fda by yakoff94

add pdf

parent 8f2725a2
......@@ -1000,8 +1000,8 @@ const QEditor = ({
break
case 'iframe_pdf':
uploadedPaths.map((file, i)=>{
console.log(file.path);
console.log(<iframe src="https://view.officeapps.live.com/op/embed.aspx?src=${file.path}" width="100%" height="600px" frameBorder="0"></iframe>);
// console.log(file.path);
// console.log(<iframe src="https://view.officeapps.live.com/op/embed.aspx?src=${file.path}" width="100%" height="600px" frameBorder="0"></iframe>);
editor.chain().focus().insertContent(`<iframe src="https://view.officeapps.live.com/op/embed.aspx?src=${file.path}" width="100%" height="600px" 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