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

use-editable

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

use-editable - npm Package Versions

23

2.3.3

Diff

Changelog

Source

2.3.3

philpl
published 2.3.2 •

Changelog

Source

2.3.2

  • Fix missing backspace behaviour on opts.indentation for non-plaintext-only browsers (See 093b10e)
philpl
published 2.3.1 •

Changelog

Source

2.3.1

  • Fix Chrome quirk where initial focus would immediately lose its selected range by switching to selectstart and checking for window.getSelection().rangeCount (See 71ae9a2)
philpl
published 2.3.0 •

Changelog

Source

2.3.0

  • Add Edit#getState() method to returned Edit handle. useEditable returns the Edit object with several methods to allow manipulating the current editable. The getState() method allows you to retrieve the current text and position of the editable. (See 98cb706)
philpl
published 2.2.2 •

Changelog

Source

2.2.2

  • Fix regression from 2.2.1, which would misplace the indentation pattern and not recognise lines with content when backspace is pressed. (See bc2be15)
philpl
published 2.2.1 •

Changelog

Source

2.2.1

  • Add space-only indentation when opts.indentation is passed. This means that useEditable now inserts spaces over tabs when opts.indentation is set and overrides the default backspace behaviour to delete multiple spaces as needed. (See 9291f6c)
philpl
published 2.2.0 •

Changelog

Source

2.2.0

  • Add Edit#move() method to edit the caret position programmatically. The caret can now be moved to a specific character index or row/column coordinates. (See 15cea68)
philpl
published 2.1.2 •

Changelog

Source

2.1.2

  • Fix undo/redo key combination, which regressed previously, since it was switched to event.key rather than event.code (See 7147dca)
  • Fix changes from being flushed to eagerly, which was meant to preserve the selected ranges more eagerly (See 1feaec5)
philpl
published 2.1.1 •

Changelog

Source

2.1.1

  • Fix key repeats (held keys) not flushing changes correctly (See 3807bbf)
philpl
published 2.1.0 •

Changelog

Source

2.1.0

  • Support non-collpsed selection restoration, in other words, when a range is selected and the component updates in the meantime, the selection is restored correctly. This is achieved by storing the selection's "extent", i.e. the number of characters it selects past its start. (See a15f8fc)
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