@kognity/vue-yellow-marker
Advanced tools
Comparing version 0.2.8 to 0.2.9
{ | ||
"name": "@kognity/vue-yellow-marker", | ||
"version": "0.2.8", | ||
"version": "0.2.9", | ||
"description": "Adds a text selection and highlighting functionality to your Vue components", | ||
@@ -5,0 +5,0 @@ "main": "./dist/vue-yellow-marker.umd.min.js", |
@@ -13,3 +13,3 @@ # Vue Yellow Marker | ||
```javascript | ||
import marker from "@kognity/vue-yellow-marker"; | ||
import { HighlightMixin } from "@kognity/vue-yellow-marker"; | ||
@@ -19,3 +19,3 @@ export default { | ||
mixins: [ | ||
marker.HighlightMixin, | ||
HighlightMixin, | ||
], | ||
@@ -27,3 +27,3 @@ ... | ||
## Demo | ||
## Live demo | ||
@@ -30,0 +30,0 @@ See [live examples in codesandbox](https://codesandbox.io/s/vue-yellow-marker-examples-1897o) |
@@ -7,12 +7,8 @@ import highlightRange from "./highlight-range"; | ||
if (selection.focusNode === null) { | ||
// console.log('focus node null'); | ||
return null; | ||
} | ||
const range = selection.getRangeAt(0); | ||
console.log('range', range, selection); | ||
if (!range ) { | ||
// console.log('range null', range); | ||
return null; | ||
} | ||
// console.log('range', range); | ||
return range; | ||
@@ -19,0 +15,0 @@ } |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
4215230
40120