This commit is contained in:
Rainer Simon 2020-04-05 11:12:46 +02:00
parent 4248a36220
commit 31661eac34
2 changed files with 3 additions and 3 deletions

2
package-lock.json generated
View File

@ -1,5 +1,5 @@
{
"name": "recogito-client-core",
"name": "@recogito/recogito-client-core",
"version": "0.1.0",
"lockfileVersion": 1,
"requires": true,

View File

@ -54,7 +54,7 @@ export default class SelectionHandler extends EventEmitter {
const clientRect = selectedRange.getBoundingClientRect();
const spans = this.highlighter.wrapRange(selectedRange);
spans.forEach(span => span.className = 'selection');
spans.forEach(span => span.className = 'r6o-selection');
this._clearNativeSelection();
@ -81,7 +81,7 @@ export default class SelectionHandler extends EventEmitter {
clearSelection = () => {
this._currentSelection = null;
const spans = Array.prototype.slice.call(this.el.querySelectorAll('.selection'));
const spans = Array.prototype.slice.call(this.el.querySelectorAll('.r6o-selection'));
if (spans) {
spans.forEach(span => {
const parent = span.parentNode;