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
85d14bbd
Commit
85d14bbd
authored
Sep 27, 2022
by
Sergey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add clearBlob
parent
f686998b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
2 deletions
+21
-2
QEditor.jsx
src/QEditor.jsx
+21
-2
No files found.
src/QEditor.jsx
View file @
85d14bbd
...
@@ -293,6 +293,7 @@ const QEditor = ({ value, onChange = ()=>{}, style, uploadOptions, toolsOptions
...
@@ -293,6 +293,7 @@ const QEditor = ({ value, onChange = ()=>{}, style, uploadOptions, toolsOptions
onClick
:
()
=>
{
onClick
:
()
=>
{
modalOpener
(
'voicemessage'
,
'Записать голосовое сообщение'
)
modalOpener
(
'voicemessage'
,
'Записать голосовое сообщение'
)
setRecordType
({
audio
:
true
})
setRecordType
({
audio
:
true
})
clearBlobUrl
()
}
}
},
},
webcamera
:
{
webcamera
:
{
...
@@ -300,6 +301,7 @@ const QEditor = ({ value, onChange = ()=>{}, style, uploadOptions, toolsOptions
...
@@ -300,6 +301,7 @@ const QEditor = ({ value, onChange = ()=>{}, style, uploadOptions, toolsOptions
onClick
:
()
=>
{
onClick
:
()
=>
{
modalOpener
(
'webcamera'
,
'Записать с камеры'
)
modalOpener
(
'webcamera'
,
'Записать с камеры'
)
setRecordType
({
video
:
true
})
setRecordType
({
video
:
true
})
clearBlobUrl
()
}
}
},
},
screencust
:
{
screencust
:
{
...
@@ -307,6 +309,7 @@ const QEditor = ({ value, onChange = ()=>{}, style, uploadOptions, toolsOptions
...
@@ -307,6 +309,7 @@ const QEditor = ({ value, onChange = ()=>{}, style, uploadOptions, toolsOptions
onClick
:
()
=>
{
onClick
:
()
=>
{
modalOpener
(
'screencust'
,
'Записать экран'
)
modalOpener
(
'screencust'
,
'Записать экран'
)
setRecordType
({
screen
:
true
})
setRecordType
({
screen
:
true
})
clearBlobUrl
()
}
}
},
},
// katex: {
// katex: {
...
@@ -638,6 +641,21 @@ const QEditor = ({ value, onChange = ()=>{}, style, uploadOptions, toolsOptions
...
@@ -638,6 +641,21 @@ const QEditor = ({ value, onChange = ()=>{}, style, uploadOptions, toolsOptions
isDisabled
=
true
;
isDisabled
=
true
;
}
}
break
;
break
;
case
'screencust'
:
if
(
status
===
'recording'
||
isUploading
||
!
mediaBlobUrl
){
isDisabled
=
true
;
}
break
;
case
'voicemessage'
:
if
(
status
===
'recording'
||
isUploading
||
!
mediaBlobUrl
){
isDisabled
=
true
;
}
break
;
case
'webcamera'
:
if
(
status
===
'recording'
||
isUploading
||
!
mediaBlobUrl
){
isDisabled
=
true
;
}
break
;
case
'iframe'
:
case
'iframe'
:
try
{
try
{
let
url
=
new
URL
(
embedContent
);
let
url
=
new
URL
(
embedContent
);
...
@@ -753,14 +771,15 @@ const QEditor = ({ value, onChange = ()=>{}, style, uploadOptions, toolsOptions
...
@@ -753,14 +771,15 @@ const QEditor = ({ value, onChange = ()=>{}, style, uploadOptions, toolsOptions
onClick
:
()
=>
{
onClick
:
()
=>
{
stopRecording
();
stopRecording
();
unMuteAudio
();
unMuteAudio
();
clearBlobUrl
();
setUploaderUid
(
`uid${new Date()}`
);
setUploaderUid
(
`uid${new Date()}`
);
setUploadedPaths
([]);
setUploadedPaths
([]);
setModalIsOpen
(
false
);
setModalIsOpen
(
false
);
}
}
},
},
{
{
title
:
(
mediaBlobUrl
&&
uploadedPaths
.
length
===
0
)
?
(
isUploading
?
'Сохранение...'
:
'
Сохран
ить'
)
:
'Вставить'
,
title
:
(
mediaBlobUrl
&&
uploadedPaths
.
length
===
0
)
?
(
isUploading
?
'Сохранение...'
:
'
Встав
ить'
)
:
'Вставить'
,
className
:
(
status
===
'recording'
||
isUploading
)
?
' atma-editor-complete-block'
:
' atma-editor-complete'
,
className
:
' atma-editor-complete'
,
onClick
:
async
()
=>
{
onClick
:
async
()
=>
{
if
((
status
===
'recording'
||
isUploading
))
{
if
((
status
===
'recording'
||
isUploading
))
{
return
;
return
;
...
...
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