Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lilium-text

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lilium-text - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

assets/screenshot.png

25

build/liliumtext.js

@@ -149,3 +149,3 @@ "use strict";

while (leftEl.firstChild != placeholder) {
while (leftEl.firstChild && leftEl.firstChild != placeholder) {
clone.appendChild(leftEl.firstChild);

@@ -724,2 +724,25 @@ }

}, {
key: "insertBlock",
value: function insertBlock(element) {
var selection = this.restoreSelection();
var context = this.createSelectionContext(selection.focusNode);
var ctxElem = context[context.length - 1];
if (ctxElem && ctxElem.element.nextElementSibling) {
var curParag = ctxElem.element;
if (curParag) {
curParag.parentElement.insertBefore(element, curParag.nextElementSibling);
}
} else {
this.contentel.appendChild(element);
}
var range = selection.getRangeAt(0).cloneRange();
range.setEndAfter(element);
range.collapse(false);
selection.removeAllRanges();
selection.addRange(range);
}
}, {
key: "_focused",

@@ -726,0 +749,0 @@ value: function _focused() {

2

package.json
{
"name": "lilium-text",
"version": "0.1.0",
"version": "0.1.1",
"description": "Web rich text editor. Not ready to be used at all.",

@@ -5,0 +5,0 @@ "main": "build/liliumtext.js",

# Lilium Text
A lightweight, dependency-free, extensible text editor.
![First Screenshot](https://erikdesjardins.com/static/git/liliumtext-1.jpg)
![First Screenshot](https://raw.githubusercontent.com/rykdesjardins/lilium-text/master/assets/screenshot.png)

@@ -6,0 +6,0 @@ ## About the project

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc