Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
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
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
4ce5d814
Commit
4ce5d814
authored
Jun 23, 2017
by
Sean Roberts
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moving dom-wrap-highlighter module
parent
d451b587
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
3 deletions
+10
-3
index.coffee
src/annotator/highlighter/dom-wrap-highlighter/index.coffee
+0
-1
test.coffee
src/annotator/highlighter/dom-wrap-highlighter/test.coffee
+2
-2
index.js
src/annotator/highlighter/index.js
+8
-0
No files found.
src/annotator/highlighter.coffee
→
src/annotator/highlighter
/dom-wrap-highlighter/index
.coffee
View file @
4ce5d814
$
=
require
(
'jquery'
)
# Public: Wraps the DOM Nodes within the provided range with a highlight
# element of the specified class and returns the highlight Elements.
#
...
...
src/annotator/
test/highlighter-
test.coffee
→
src/annotator/
highlighter/dom-wrap-highlighter/
test.coffee
View file @
4ce5d814
Range
=
require
(
'../anchoring/range'
)
Range
=
require
(
'../
../
anchoring/range'
)
$
=
require
(
'jquery'
)
highlighter
=
require
(
'.
./highlighter
'
)
highlighter
=
require
(
'.
/index
'
)
describe
"highlightRange"
,
->
it
'wraps a highlight span around the given range'
,
->
...
...
src/annotator/highlighter/index.js
0 → 100644
View file @
4ce5d814
'use strict'
;
const
domWrapHighlighter
=
require
(
'./dom-wrap-highlighter'
);
// this is where were will determine what highlighter
// to use based on the environment and any flags
module
.
exports
=
domWrapHighlighter
;
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