lilium-text
Advanced tools
Comparing version 0.1.7 to 0.1.8
@@ -678,5 +678,10 @@ class LiliumTextCommand { | ||
const selection = window.getSelection(); | ||
const context = this.createSelectionContext(selection.focusNode); | ||
const element = selection.focusNode.parentElement; | ||
this.fire('clicked', { context, event, selection, element }); | ||
if (selection.focusNode && selection.focusNode.parentElement) { | ||
const context = this.createSelectionContext(selection.focusNode); | ||
const element = selection.focusNode.parentElement; | ||
this.fire('clicked', { context, event, selection, element }); | ||
} else { | ||
this.fire('clicked', { selection, event }); | ||
} | ||
} | ||
@@ -683,0 +688,0 @@ |
{ | ||
"name": "lilium-text", | ||
"version": "0.1.7", | ||
"version": "0.1.8", | ||
"description": "Web rich text editor. Not ready to be used at all.", | ||
@@ -5,0 +5,0 @@ "main": "build/liliumtext.js", |
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
1380215
1971