Registry / testing / scribe-plugin-formatter-plain-text-convert-new-lines-to-html

scribe-plugin-formatter-plain-text-convert-new-lines-to-html

JSON →
library0.1.1jsnpmunverified

A minimal Scribe plugin that converts newlines in pasted plain text to HTML line breaks (<br>). It is designed for the Scribe rich text editor and simply replaces newline characters with <br> tags when pasting plain text. Version 0.1.1 is the latest and only release. There has been no active development since its initial release, and it is part of a legacy ecosystem (Scribe uses Bower, not npm). This plugin has been effectively abandoned; there are no maintainers or updates.

npm install scribe-plugin-formatter-plain-text-convert-new-lines-to-html
INSTALL
IMPORT
SIG · SCRIBE-PLUGIN-FORM
S
scribe-plugin-formatter-plain-text-convert-new-lines-to-html
testingjavascriptv0.1.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

scribePluginFormatterPlainTextConvertNewLinesToHTML
import scribePluginFormatterPlainTextConvertNewLinesToHTML from 'scribe-plugin-formatter-plain-text-convert-new-lines-to-html'
const { scribePluginFormatterPlainTextConvertNewLinesToHTML } = require('scribe-plugin-formatter-plain-text-convert-new-lines-to-html')
This package is a default export. CommonJS require would be: const plugin = require('scribe-plugin-formatter-plain-text-convert-new-lines-to-html'). Default.

Shows how to initialize Scribe and use the plugin to convert newlines to <br> tags.

// Install via Bower: bower install scribe-plugin-formatter-plain-text-convert-new-lines-to-html var scribe = new Scribe(document.getElementById('editor')); var plugin = require('scribe-plugin-formatter-plain-text-convert-new-lines-to-html'); scribe.use(plugin()); // Now when users paste plain text, newlines are converted to <br>
Debug
Known issues
deprecatedThis package is part of the deprecated Scribe editor ecosystem, which is no longer maintained.
fix
Migrate to a modern rich text editor like Quill, Slate, or ProseMirror.
affects: >=0.0.0
gotchaThe plugin overrides the default plain text paste formatter, potentially breaking other paste formatting.
fix
Ensure no other plain text formatters are applied simultaneously; chain formatters if needed.
affects: 0.1.1
gotchaOnly converts newlines to <br>; double newlines (paragraphs) are not converted to <p> tags.
fix
Use additional plugins or custom logic to handle paragraph breaking.
affects: 0.1.1
Errors
Common errors & fixes
Cannot find module 'scribe-plugin-formatter-plain-text-convert-new-lines-to-html'
Trying to npm install the package, but it is only available via Bower, not npm.
fix
Use Bower to install: bower install scribe-plugin-formatter-plain-text-convert-new-lines-to-html
Uncaught TypeError: plugin is not a function
Calling require() incorrectly; the default export is a function that returns the plugin.
fix
Use const plugin = require('...'); scribe.use(plugin()); instead of scribe.use(plugin);
Upgrade
Version history
0.1.1latest on npm
Audit
Dependencies
scriberequiredPeer dependency; the plugin requires the Scribe editor instance to attach a formatter.
Agent activity
6 hits · last 30 days
node
6
Resources
scribe-plugin-formatter-plain-text-convert-new-lines-to-html — npm install scribe-plugin-formatter-plain-text-convert-new-lines-to-html · libregistry