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
c1754417
Commit
c1754417
authored
Jan 17, 2024
by
firesong1337
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
img resizing
parent
21b0191c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
10 deletions
+1
-10
QEditor.jsx
src/QEditor.jsx
+0
-3
Resizing.js
src/extensions/Resizing.js
+1
-7
No files found.
src/QEditor.jsx
View file @
c1754417
...
...
@@ -38,7 +38,6 @@ import IframeModal from './modals/IframeModal'
import
IframeCustomModal
from
'./modals/IframeCustomModal'
import
{
isMobile
}
from
'react-device-detect'
import
Resizable
from
'./extensions/Resizing'
import
{
isChangedAlignment
}
from
'./extensions/Resizing'
const
initialBubbleItems
=
[
'bold'
,
...
...
@@ -296,8 +295,6 @@ const QEditor = ({
onClick
:
()
=>
{
editor
.
commands
.
setTextAlign
(
'center'
)
editor
.
chain
().
focus
()
isChangedAlignment
.
set
(
true
)
}
},
alignRight
:
{
...
...
src/extensions/Resizing.js
View file @
c1754417
import
{
Extension
}
from
"@tiptap/core"
;
export
let
isChangedAlignment
=
{
current
:
null
,
get
()
{
return
this
.
current
},
set
(
value
)
{
this
.
current
=
value
}
};
// loads with editor
export
default
Extension
.
create
({
...
...
@@ -136,7 +130,7 @@ export default Extension.create({
if
(
currentPosition
.
x
===
0
)
{
console
.
log
(
"changed pos"
);
resizeLayer
.
style
.
display
=
"none"
;
//
resizeLayer.style.display = "none";
}
console
.
log
(
entry
.
target
.
parentNode
)
console
.
log
(
"target: "
,
entry
.
target
)
...
...
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