Security News
UK Officials Consider Banning Ransomware Payments from Public Entities
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.
@bangle.dev/pm
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
This is bangle.dev specific collection of Prosemirror packages.
The npm package @bangle.dev/pm receives a total of 776 weekly downloads. As such, @bangle.dev/pm popularity was classified as not popular.
We found that @bangle.dev/pm 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
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.