
Security News
Socket Releases Free Certified Patches for Critical vm2 Sandbox Escape
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.
@portabletext/plugin-one-line
Advanced tools
🤏 Restricts the Portable Text Editor to a single line
The plugin blocks insert.break events and provides smart handling of other insert.* events like insert.block.
Configure it with as high priority as possible to make sure other plugins don't overwrite insert.* events before this plugin gets a chance to do so.
Import the OneLinePlugin React component and place it inside the EditorProvider to automatically register the necessary Behaviors:
import {
defineSchema,
EditorProvider,
PortableTextEditable,
} from '@portabletext/editor'
import {OneLinePlugin} from '@portabletext/plugin-one-line'
function App() {
return (
<EditorProvider initialConfig={{schemaDefinition: defineSchema({})}}>
<PortableTextEditable />
<OneLinePlugin />
</EditorProvider>
)
}
FAQs
🤏 Restricts the Portable Text Editor to a single line
The npm package @portabletext/plugin-one-line receives a total of 257,103 weekly downloads. As such, @portabletext/plugin-one-line popularity was classified as popular.
We found that @portabletext/plugin-one-line demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 11 open source maintainers 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
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.

Research
Five malicious NuGet packages impersonate Chinese .NET libraries to deploy a stealer targeting browser credentials, crypto wallets, SSH keys, and local files.

Security News
pnpm 11 turns on a 1-day Minimum Release Age and blocks exotic subdeps by default, adding safeguards against fast-moving supply chain attacks.