Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
editoria
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
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
Yannis Barlas
editoria
Commits
d355e3b2
Commit
d355e3b2
authored
8 years ago
by
Yannis Barlas
Browse files
Options
Downloads
Patches
Plain Diff
comment out unnecessary functions from provider
parent
c98bea37
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/components/SimpleEditor/elements/track_change/TrackChangesProvider.js
+17
-23
17 additions, 23 deletions
...impleEditor/elements/track_change/TrackChangesProvider.js
with
17 additions
and
23 deletions
app/components/SimpleEditor/elements/track_change/TrackChangesProvider.js
+
17
−
23
View file @
d355e3b2
...
...
@@ -472,12 +472,6 @@ class TrackChangesProvider extends TOCProvider {
// // get all pieces of free text
// }
// prevent substance from running getBoundingRectangle,
// as we will unset the selection manually
getInfo
()
{
return
{
skipSelection
:
true
}
}
isAnnotationFromTheSameUser
(
annotation
)
{
const
annotationUser
=
this
.
getAnnotationUser
(
annotation
)
const
currentUser
=
this
.
getCurrentUser
()
...
...
@@ -560,12 +554,12 @@ class TrackChangesProvider extends TOCProvider {
*/
isAnnotationContainedWithinSelection
(
annotation
,
strict
)
{
const
selection
=
this
.
getSelection
()
const
annotationSelection
=
annotation
.
getSelection
()
return
selection
.
contains
(
annotationSelection
,
strict
)
}
//
isAnnotationContainedWithinSelection (annotation, strict) {
//
const selection = this.getSelection()
//
const annotationSelection = annotation.getSelection()
//
//
return selection.contains(annotationSelection, strict)
//
}
isSelectionCollapsed
()
{
const
selection
=
this
.
getSelection
()
...
...
@@ -605,17 +599,17 @@ class TrackChangesProvider extends TOCProvider {
surface
.
editorSession
.
setSelection
(
selection
)
}
setSelectionPlusOne
(
direction
)
{
const
selection
=
this
.
getSelection
()
const
surface
=
this
.
getSurface
()
if
(
direction
===
'
left
'
)
selection
.
start
.
offset
-=
1
if
(
direction
===
'
right
'
)
selection
.
end
.
offset
+=
1
surface
.
editorSession
.
setSelection
(
selection
)
return
selection
}
//
setSelectionPlusOne (direction) {
//
const selection = this.getSelection()
//
const surface = this.getSurface()
//
//
if (direction === 'left') selection.start.offset -= 1
//
if (direction === 'right') selection.end.offset += 1
//
//
surface.editorSession.setSelection(selection)
//
//
return selection
//
}
updateSelection
(
selection
,
startOffset
,
endOffset
)
{
const
surface
=
this
.
getSurface
()
...
...
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