Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@remirror/dom
Advanced tools
Use remirror directly in the dom.
You've heard great things about prosemirror and would like to use it in your app, but you're slightly intimidated by some of the moving parts. You don't really want to deal with Schema, Nodes, Marks, Plugins, Decorations. You just want an editor.
This library provides an abstraction that might be right for you.
The functionality of the prosemirror library is wrapped up into extensions which manage the work for you.
# yarn
yarn add @remirror/dom
# pnpm
pnpm add @remirror/dom
# npm
npm install @remirror/dom
The following code is a guide to get you started.
import { createDomEditor, createDomManager } from 'remirror/dom';
import { BoldExtension } from 'remirror/extensions';
const element = document.querySelector('#editor');
const manager = createDomManager([new BoldExtension()]);
const editor = createDomEditor({ manager, element });
editor.addHandler('change', () => log('your editor has changed'));
// Make selected text bold.
editor.commands.toggleBold();
FAQs
Use remirror directly in the dom.
The npm package @remirror/dom receives a total of 38,843 weekly downloads. As such, @remirror/dom popularity was classified as popular.
We found that @remirror/dom 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
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.