![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
draft-js-clear-formatting
Advanced tools
This package is a helper function for Draft JS users. It allows you toclear formatting in selected text in your app. You can choose to remove the following edits:
For more details checks configuration section below
npm i --save draft-js-clear-formatting
then import the function
import clearFormatting from 'draft-js-clear-formatting'
import Editor from 'draft-js-plugins-editor'
const newEditorState = clearFormatting(editorState, options)
You can pass options object to the function. This object is not required. By default all options set to true.
const options = {
inline: true,
entities: true,
lists: true,
}
Option | Description | Default value |
---|---|---|
inline | Removes all inline styles | true |
entities | Removes all entities | true |
lists | Removes all lists | true |
FAQs
Clear all formatting helper for DraftJS
We found that draft-js-clear-formatting 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
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.