Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
@b9g/revise
Advanced tools
Revise is a JavaScript library for creating [`contenteditable`-based](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/contenteditable) rich-text editors in the browser. It provides a low-level, web-component based API for translating t
Revise is a JavaScript library for creating
contenteditable
-based
rich-text editors in the browser. It provides a low-level, web-component based
API for translating the DOM into string documents. The library also ships with
a compact data structure for representing edits to strings. Revise is intended
to be framework-agnostic, though currently it is only being tested with
Crank.
At present, this library is in an early beta. It is recommended for developers who aren’t afraid of stepping through DOM code in a debugger.
TKTKTKT
ContentAreaElement
A custom element class with an API similar to that of the JavaScript API for
the <textarea>
element.
This class provides special properties and methods for reading the current
value of the element’s contents and manipulating its selection.
value
selectionStart
selectionEnd
selectionDirection
setSelectionRange(selectionStart: number, selectionEnd: number, selectionDirection?: SelectionDirection): void;
indexAt(node: Node | null, offset: number): number
`nodeOffsetAt(index: number): [Node | null, number]
source(name: string): boolean
ContentEvent
Edit
operations(): Array<Operation>
apply(text: string): string
compose(that: Edit): Edit
invert(): Edit
normalize(): Edit
hasChangesBetween(start: number, end: number): boolean
Edit.createBuilder(value: string): EditBuilder
Edit.diff(text1: string, text2: string, hint?: number): Edit
EditBuilder
EditHistory
Keyer
FAQs
Revise is a JavaScript library for creating [`contenteditable`-based](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/contenteditable) rich-text editors in the browser. It provides a low-level, web-component based API for translating t
The npm package @b9g/revise receives a total of 0 weekly downloads. As such, @b9g/revise popularity was classified as not popular.
We found that @b9g/revise demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.