@notebox/nb-editor

5.4.0 • Public • Published

nb-editor

codecov sponsor

A block based editor which is compatible with Conflict-free Replicated Data Type that enables collaborative editing across multiple participants allowing for flexible data sharing across spreadsheets, boards, rich text, and more.

Web-based multi-platform support (primarily focusing on macOS and iOS). Support for Composition input, such as Korean and Japanese, suggestion input, and iPad Pencil scribble.

Development

Prerequisites

npm install

Run

npm start

Usage

for iframe

...
// set "./static/app.css" to "node_modules/@notebox/nb-editor/iframe/app.css"
<iframe ref={ref} src="node_modules/@notebox/nb-editor/iframe/index.html" />
...

for component (react)

import {NBEditor, NBEditorWithToolbar} from "@notebox/nb-editor/main.component.tsx"
...
<NBEditor ctx={uiHandler} theme="black-theme" />
<NBEditorWithToolbar ctx={uiHandler} theme="black-theme" />
...

Checkout Points

as a component

  • main.component.tsx
  • iframe/app.css

as a iframe resource

  • iframe/index.html
  • iframe/static/app.js
  • iframe/static/app.css

Demo Screenshots

Readme

Keywords

Package Sidebar

Install

npm i @notebox/nb-editor

Weekly Downloads

2

Version

5.4.0

License

AGPL-3.0-or-later

Unpacked Size

803 kB

Total Files

337

Last publish

Collaborators

  • kangmh