New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

codemirror-colorpicker

Package Overview
Dependencies
Maintainers
1
Versions
92
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

codemirror-colorpicker - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

22

addon/colorpicker/colorview.js

@@ -54,5 +54,4 @@ (function(mod) {

function onPaste () {
// TODO: cm 객체를 어디서 얻어오나?
//self.style_color_update();
function onPaste (cm, evt) {
onChange(cm, { origin : 'setValue'});
}

@@ -109,4 +108,11 @@

this.cm.getWrapperElement().addEventListener('paste', onPaste);
// create paste callback
this.onPasteCallback = (function (cm, callback) {
return function (evt) {
callback.call(this, cm, evt);
}
})(this.cm, onPaste);
this.cm.getWrapperElement().addEventListener('paste', this.onPasteCallback);
if (this.is_edit_mode())

@@ -129,4 +135,10 @@ {

this.cm.off('mousedown', onMousedown);
this.cm.off('keyup', onKeyup);
this.cm.off('change', onChange)
this.cm.getWrapperElement().removeEventListener('paste', onPaste);
this.cm.getWrapperElement().removeEventListener('paste', this.onPasteCallback);
if (this.is_edit_mode())
{
this.cm.off('scroll');
}
}

@@ -133,0 +145,0 @@

{
"name": "codemirror-colorpicker",
"version": "1.0.3",
"version": "1.0.4",
"description": "colorpicker for codemirror",

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

Sorry, the diff of this file is not supported yet

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