Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
lib
react-ag-qeditor
Commits
fb694d4e
Commit
fb694d4e
authored
Jun 09, 2022
by
Рамис
Browse files
new editor
parent
e3df4775
Changes
2
Show whitespace changes
Inline
Side-by-side
package.json
View file @
fb694d4e
{
{
"name"
:
"react-ag-qeditor"
,
"name"
:
"react-ag-qeditor"
,
"version"
:
"1.0.
1
"
,
"version"
:
"1.0.
2
"
,
"description"
:
"WYSIWYG html editor"
,
"description"
:
"WYSIWYG html editor"
,
"author"
:
"atma"
,
"author"
:
"atma"
,
"license"
:
"
MIT
"
,
"license"
:
"
MIT
"
,
...
...
src/QEditor.jsx
View file @
fb694d4e
...
@@ -23,7 +23,7 @@ import Iframe from './extensions/Iframe'
...
@@ -23,7 +23,7 @@ import Iframe from './extensions/Iframe'
const
initialBubbleItems
=
[
'
bold
'
,
'
italic
'
,
'
underline
'
,
'
strike
'
];
const
initialBubbleItems
=
[
'
bold
'
,
'
italic
'
,
'
underline
'
,
'
strike
'
];
const
QEditor
=
({
value
,
onChange
,
style
,
uploadOptions
})
=>
{
const
QEditor
=
({
value
,
onChange
=
()
=>
{}
,
style
,
uploadOptions
})
=>
{
const
[
innerModalType
,
setInnerModalType
]
=
useState
(
null
);
const
[
innerModalType
,
setInnerModalType
]
=
useState
(
null
);
const
[
embedContent
,
setEmbedContent
]
=
useState
(
''
);
const
[
embedContent
,
setEmbedContent
]
=
useState
(
''
);
const
[
uploaderUid
,
setUploaderUid
]
=
useState
(
'
uid
'
+
new
Date
());
const
[
uploaderUid
,
setUploaderUid
]
=
useState
(
'
uid
'
+
new
Date
());
...
@@ -223,9 +223,7 @@ const QEditor = ({ value, onChange, style, uploadOptions }) => {
...
@@ -223,9 +223,7 @@ const QEditor = ({ value, onChange, style, uploadOptions }) => {
})
})
],
],
content
:
value
,
content
:
value
,
onUpdate
:
({
editor
})
=>
{
onUpdate
:
({
editor
})
=>
onChange
(
editor
.
getHTML
())
console
.
log
(
editor
.
getHTML
());
}
})
})
const
buildActionsModal
=
(
buttons
=
[])
=>
{
const
buildActionsModal
=
(
buttons
=
[])
=>
{
...
...
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