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
0e8e928b
Commit
0e8e928b
authored
Sep 27, 2022
by
Sergey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix text or all
parent
85d14bbd
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
13 deletions
+8
-13
App.js
example/src/App.js
+3
-0
QEditor.jsx
src/QEditor.jsx
+5
-5
ToolBar.js
src/components/ToolBar.js
+0
-8
No files found.
example/src/App.js
View file @
0e8e928b
...
...
@@ -21,6 +21,9 @@ const App = () => {
maxWidth
:
'830px'
,
margin
:
'20px 20px 20px 100px'
,
}}
toolsOptions
=
{{
type
:
'all'
}}
/
>
<
/div
>
}
...
...
src/QEditor.jsx
View file @
0e8e928b
...
...
@@ -32,7 +32,7 @@ import Audio from "./extensions/Audio";
const
initialBubbleItems
=
[
'bold'
,
'italic'
,
'underline'
,
'strike'
,
'|'
,
'colorText'
,
'highlight'
];
const
QEditor
=
({
value
,
onChange
=
()
=>
{},
style
,
uploadOptions
,
toolsOptions
=
{
type
:
'all'
}
})
=>
{
const
QEditor
=
({
value
,
onChange
=
()
=>
{},
style
,
uploadOptions
=
{
url
:
""
,
errorMessage
:
""
}
,
toolsOptions
=
{
type
:
'all'
}
})
=>
{
global
.
uploadUrl
=
uploadOptions
.
url
;
const
[
innerModalType
,
setInnerModalType
]
=
useState
(
null
);
...
...
@@ -291,25 +291,25 @@ const QEditor = ({ value, onChange = ()=>{}, style, uploadOptions, toolsOptions
voicemessage
:
{
title
:
'Записать голосовое сообщение'
,
onClick
:
()
=>
{
modalOpener
(
'voicemessage'
,
'Записать голосовое сообщение'
)
setRecordType
({
audio
:
true
})
clearBlobUrl
()
modalOpener
(
'voicemessage'
,
'Записать голосовое сообщение'
)
}
},
webcamera
:
{
title
:
'Записать с камеры'
,
onClick
:
()
=>
{
modalOpener
(
'webcamera'
,
'Записать с камеры'
)
setRecordType
({
video
:
true
})
clearBlobUrl
()
modalOpener
(
'webcamera'
,
'Записать с камеры'
)
}
},
screencust
:
{
title
:
'Записать экран'
,
onClick
:
()
=>
{
modalOpener
(
'screencust'
,
'Записать экран'
)
setRecordType
({
screen
:
true
})
clearBlobUrl
()
modalOpener
(
'screencust'
,
'Записать экран'
)
}
},
// katex: {
...
...
@@ -891,12 +891,12 @@ const QEditor = ({ value, onChange = ()=>{}, style, uploadOptions, toolsOptions
break
}
clearBlobUrl
();
setUploaderUid
(
`uid${new Date()}`
);
setEmbedContent
(
''
);
setUploadedPaths
([]);
setModalTitle
(
''
);
setModalIsOpen
(
false
);
clearBlobUrl
()
}
catch
(
err
)
{
console
.
log
(
err
)
}
...
...
src/components/ToolBar.js
View file @
0e8e928b
...
...
@@ -130,14 +130,6 @@ const toolsInit = {
'hardBreak'
,
]
},
{
type
:
'g'
,
items
:
[
'voicemessage'
,
'webcamera'
,
'screencust'
]
},
]
}
...
...
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