Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
react-ag-qeditor
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lib
react-ag-qeditor
Commits
08094fda
Commit
08094fda
authored
Oct 05, 2023
by
yakoff94
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add pdf
parent
8f2725a2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
QEditor.jsx
src/QEditor.jsx
+2
-2
No files found.
src/QEditor.jsx
View file @
08094fda
...
@@ -1000,8 +1000,8 @@ const QEditor = ({
...
@@ -1000,8 +1000,8 @@ const QEditor = ({
break
break
case
'iframe_pdf'
:
case
'iframe_pdf'
:
uploadedPaths
.
map
((
file
,
i
)
=>
{
uploadedPaths
.
map
((
file
,
i
)
=>
{
console
.
log
(
file
.
path
);
//
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(<iframe src="https://view.officeapps.live.com/op/embed.aspx?src=$
{
file
.
path
}
" width="
100
%
" height="
600
px
" frameBorder="
0
"></iframe>);
editor.chain().focus().insertContent(`<iframe src="
https
:
//view.officeapps.live.com/op/embed.aspx?src=$
{
file
.
path
}
" width="
100
%
" height="
600
px
" frameBorder="
0
"></iframe>`).run();
editor.chain().focus().insertContent(`<iframe src="
https
:
//view.officeapps.live.com/op/embed.aspx?src=$
{
file
.
path
}
" width="
100
%
" height="
600
px
" frameBorder="
0
"></iframe>`).run();
})
})
break
break
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment