Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
wax-prosemirror
Manage
Activity
Members
Labels
Plan
Issues
34
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wax
wax-prosemirror
Commits
3730046d
Commit
3730046d
authored
10 months ago
by
chris
Browse files
Options
Downloads
Patches
Plain Diff
console.log active
parent
0cae26bf
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#59993
passed with stages
in 4 minutes and 29 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
wax-prosemirror-services/src/CommentsService/plugins/CommentPlugin.js
+4
-1
4 additions, 1 deletion
...ror-services/src/CommentsService/plugins/CommentPlugin.js
with
4 additions
and
1 deletion
wax-prosemirror-services/src/CommentsService/plugins/CommentPlugin.js
+
4
−
1
View file @
3730046d
...
...
@@ -23,11 +23,13 @@ const getComment = (state, context) => {
(
state
.
selection
.
from
===
state
.
selection
.
to
&&
last
(
commentData
).
data
.
conversation
.
length
!==
0
)
)
{
console
.
log
(
last
(
commentData
));
console
.
log
(
'
return active
'
,
last
(
commentData
));
return
last
(
commentData
);
}
console
.
log
(
'
not return active
'
);
return
undefined
;
}
console
.
log
(
'
not return active 2
'
);
return
undefined
;
};
...
...
@@ -40,6 +42,7 @@ export default (key, context) => {
},
apply
(
tr
,
prev
,
_
,
newState
)
{
const
comment
=
getComment
(
newState
,
context
);
console
.
log
(
'
active comment
'
,
comment
);
let
createDecoration
;
if
(
comment
)
{
createDecoration
=
DecorationSet
.
create
(
newState
.
doc
,
[
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment