@kognity/vue-yellow-marker
Advanced tools
Comparing version 0.1.1 to 0.1.2
{ | ||
"name": "@kognity/vue-yellow-marker", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Adds a text selection and highlighting functionality to your Vue components", | ||
@@ -5,0 +5,0 @@ "main": "./dist/vue-yellow-marker.umd.min.js", |
@@ -24,3 +24,3 @@ # Vue Yellow Marker | ||
``` | ||
See [live examples in codesandbox](https://codesandbox.io/s/github/harabchuk/vue-yellow-marker-examples/tree/master/) | ||
See [live examples in codesandbox](https://codesandbox.io/s/vue-yellow-marker-examples-1897o) | ||
@@ -27,0 +27,0 @@ ## License |
@@ -75,2 +75,3 @@ import Vue from "vue"; | ||
this.removeSelectionMenu(); | ||
console.log('Selection not allowed'); | ||
return; | ||
@@ -139,2 +140,3 @@ } | ||
createMenu(menuComponent, actions, props = {}) { | ||
console.log('Creating menu component'); | ||
const ComponentBuilder = Vue.extend(Object.assign(menuComponent)); | ||
@@ -159,2 +161,3 @@ const menu = new ComponentBuilder({ propsData: props }); | ||
const menu = this.hlConfig.menus.selection; | ||
console.log('Creating menu', menu); | ||
const actions = menu.actions; | ||
@@ -169,2 +172,3 @@ // Add a range by the end of the selection | ||
range.insertNode(this.hlSelectionMenu.$el); | ||
console.log('Inserted menu into DOM'); | ||
} | ||
@@ -171,0 +175,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4184893
39974