Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
banger-editor
Advanced tools
A modern collection of ProseMirror packages for building powerful editing experiences
Banger Editor is a collection of prosemirror code for building powerful editing experiences.
:battery: Batteries included
We expose plenty of components to help you get started with your Editor.
Insanely powerful API
Bangle uses Prosemirror to provide an API which can help you build the next google docs including collaboration.
Vanilla JS
Bangle is written in a framework agnostic way, so that you can focus on building the editor and not learning a new framework. That said, we have support for React and I have plans to add Vue support in the coming months.
Customize UI with React (more frameworks to come)
Doing UI in vanilla Javascript is not fun. Bangle comes with first party React support and React components (the ones starting with @bangle.dev/react-
) to add some extra :nail_care: oomph to your Editor.
:car: Fast as a racing car
Bangle is as fast as a rich text editor can be; try pasting a really long document in one of its example (:wink: don't forget to compare it with your current favourite editor).
Peer dependencies
As you can see Banger is not traditional Prosemirror wrapper library. It expects you to be familiar with prosemirror and its packages and use them directly. It expects some of the prosemirror-*
packages to be installed in your project.
If you are starting blank, I recommend installing all the following prosemirror-*
packages:
npm install orderedmap prosemirror-commands prosemirror-dropcursor prosemirror-flat-list prosemirror-gapcursor prosemirror-history prosemirror-inputrules prosemirror-keymap prosemirror-model prosemirror-schema-basic prosemirror-state prosemirror-transform prosemirror-view
Modern bundlers will remove the unused packages from your bundle, so you don't have to worry about bundle size.
If you know what you are doing or using a Prosemirror wrapper library like
tiptap
you can skip installing the above packages as they might already be installed in your project.
Installing Banger
npm install @bangle.dev/pm @bangle.dev/banger
You can import the prosemirror packages from @bangle.dev/pm
(which is a convenience re-export of prosemirror-*
packages).
// Option 1: Recommended
import { EditorState, EditorView } from '@bangle.dev/pm';
// Option 2: Importing specific packages
import { EditorState } from '@bangle.dev/pm/state';
import { EditorView } from '@bangle.dev/pm/view';
// Option 3: Use prosemirror-* packages directly
import { EditorState } from 'prosemirror-state';
import { EditorView } from 'prosemirror-view';
FAQs
A modern collection of ProseMirror packages for building powerful editing experiences
The npm package banger-editor receives a total of 8 weekly downloads. As such, banger-editor popularity was classified as not popular.
We found that banger-editor demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.