GithubHelp home page GithubHelp logo

fangqiao / nib Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nib-edit/nib

0.0 1.0 0.0 940 KB

Wysiwyg editor components built using ReactJS and Prosemirror.

Home Page: https://jpuri.github.io/Nib/

JavaScript 99.49% CSS 0.30% Shell 0.21%

nib's Introduction

NIB

Despite various options available for rich text editing in html, it continues to be extremely challenging area. I found prosemirror to be the best available solution for the problem. It is great work by author Marijn Haverbeke.

Making an editor ground up from a framework is still much work, the project aims at building components for rich text editing using prosemirror. These components can be quickly integrated into react or even ron-react applications.

Setup

Setup of the editor is quite straight forward. It is required to be installed from npm.

Installing packages:

Either npm or yarn commands can be used.

npm i nib-core --save

Writing editor component:

import React from "react";
import Editor from "nib-core";

const MyEditor = () => <Editor />;

Props

Props supported by the editor.

S.No. Name Description
1 blockStyles Style of variuos blocks used in the editor, here are the defaults which can be overridden.
2 defaultValue Value to initialize editor content
3 onChange Callback which is called when the content of the editor changes
4 config Configuring the plugin toolbar etc in editor, here are default configurations which can be overridden.
5 spellcheck Boolean property to enable default browser spellcheck in the editor.
6 theme Theming of the editor, here is default theme which can be overridden.

Editor is in initial phase of development and right now api is not stable.

Need help

If you have any queries or require any help you can email me.

nib's People

Contributors

jpuri avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.