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

knockout-quill-binding

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

knockout-quill-binding - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

18

knockout-quill.js

@@ -69,3 +69,5 @@ /******/ (function(modules) { // webpackBootstrap

// see if user has set quill_options
var options = Object.assign({}, default_options, allBindings.get('quill_options'));
// see if the user has enabled the toolbar module

@@ -162,11 +164,13 @@ allBindings.has('quill_toolbar') && Object.assign(options.modules, {

// Get the user's current selection range(s)
var selection = quill.getSelection();
if (quill.getHTML() !== ko.unwrap(html_observable)) {
// Get the user's current selection range(s)
var selection = quill.getSelection();
// Set the content of the quill editor to the current value of the
// provided observable
quill.setHTML(ko.unwrap(html_observable) || "");
// Set the content of the quill editor to the current value of the
// provided observable
quill.setHTML(ko.unwrap(html_observable) || "");
// Reset the selection ranges to what the user initially had selected
quill.setSelection(selection);
// Reset the selection ranges to what the user initially had selected
quill.setSelection(selection);
}
}

@@ -173,0 +177,0 @@ };

{
"name": "knockout-quill-binding",
"version": "0.2.0",
"version": "0.2.1",
"description": "Quill WYSIWYG binding for Knockout.js",

@@ -5,0 +5,0 @@ "main": "knockout-quill.js",

@@ -19,3 +19,5 @@ import Quill from 'quill';

// see if user has set quill_options
const options = Object.assign({}, default_options, allBindings.get('quill_options'));
// see if the user has enabled the toolbar module

@@ -113,13 +115,15 @@ allBindings.has('quill_toolbar') && Object.assign(options.modules, {

// Get the user's current selection range(s)
const selection = quill.getSelection();
if (quill.getHTML() !== ko.unwrap(html_observable)) {
// Get the user's current selection range(s)
const selection = quill.getSelection();
// Set the content of the quill editor to the current value of the
// provided observable
quill.setHTML(ko.unwrap(html_observable) || "");
// Set the content of the quill editor to the current value of the
// provided observable
quill.setHTML(ko.unwrap(html_observable) || "");
// Reset the selection ranges to what the user initially had selected
quill.setSelection(selection);
// Reset the selection ranges to what the user initially had selected
quill.setSelection(selection);
}
}
};
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