Socket
Socket
Sign inDemoInstall

quill-delta

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

quill-delta

Format for representing rich text documents and changes.


Version published
Maintainers
1
Created

What is quill-delta?

The quill-delta npm package is a library for representing and manipulating rich text documents and operational transformations. It is primarily used with the Quill text editor to apply changes to the document in a collaborative environment. Deltas are a data format that encode document changes and can be composed, transformed, and applied to documents.

What are quill-delta's main functionalities?

Creating and manipulating deltas

This code sample demonstrates how to create a simple delta that represents the insertion of the text 'Hello, world!'.

{"ops":[{"insert":"Hello, world!"}]}

Composing deltas

This code sample shows how to compose a delta that retains the first 6 characters, deletes the next 5 characters, and then inserts the text 'Quill'.

{"ops":[{"retain":6},{"delete":5},{"insert":"Quill"}]}

Applying deltas to a document

This code sample illustrates applying a delta to a document that retains the first 6 characters and then inserts the bolded text 'Editor'.

{"ops":[{"retain":6},{"insert":"Editor","attributes":{"bold":true}}]}

Other packages similar to quill-delta

Keywords

FAQs

Package last updated on 01 Aug 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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