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

kattappa

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kattappa - npm Package Compare versions

Comparing version 0.7.1 to 0.7.2

17

lib/components/scribe.js

@@ -80,3 +80,2 @@ 'use strict';

// this.change = this.change.bind(this);
_this.placeCaretAtEnd = _this.placeCaretAtEnd.bind(_this);

@@ -88,3 +87,3 @@ _this.captureReturn = _this.captureReturn.bind(_this);

_this.handleLink = _this.handleLink.bind(_this);
// this.onChangeLink = this.onChangeLink.bind(this);
_this.handleLinkShortcut = _this.handleLinkShortcut.bind(_this);

@@ -97,3 +96,2 @@ _this.onBlur = function () {

};
// this.onBlur = () => {};
return _this;

@@ -153,2 +151,3 @@ }

window.scribe = this.scribe;
this.scribe.el.addEventListener('keydown', this.handleLinkShortcut);
}

@@ -161,2 +160,3 @@ }, {

}
this.scribe.el.removeEventListener('keydown', this.handleLinkShortcut);
this.scribe.el.removeEventListener('focus', this.props.onFocus);

@@ -241,3 +241,3 @@ this.scribe.el.removeEventListener('blur', this.onBlur);

key: '_onSelect',
value: function _onSelect(e) {
value: function _onSelect() {
var selection = window.getSelection();

@@ -259,3 +259,3 @@ var str = selection.toString();

setTimeout(function () {
_this3._onSelect(e);
_this3._onSelect();
}, 0);

@@ -316,2 +316,9 @@ }

}, {
key: 'handleLinkShortcut',
value: function handleLinkShortcut(e) {
if (e.which === 75 && (e.ctrlKey || e.metaKey)) {
this.handleCommand('link');
}
}
}, {
key: 'handleCommand',

@@ -318,0 +325,0 @@ value: function handleCommand(cmd) {

{
"name": "kattappa",
"version": "0.7.1",
"version": "0.7.2",
"description": "A block based rich text editor with support of Images, embeds( Youtube, Instagram, Vine, Vimeo etc)",

@@ -5,0 +5,0 @@ "main": "./lib/index.js",

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