1.0.2 • Published 3 years ago

blog-editor v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Blog Editor Template

ESLint Code Base Prettier and ESLint Code Base License: MIT

Installation (NPM)

npm i blog-editor

In react import the package.

import React from 'react'
import { Editor } from 'blog-editor'

const Demo = () => {
  const saveBlog = (data) => {
    console.log(data)
  }
  return (
    <div>
      <Editor header='Your first Editor' onSave={saveBlog} />
    </div>
  )
}

export default Demo

Add the css file to your app.js

import 'blog-editor/dist/index.css'

Second option: Download only the Node Modules (GIT)

# in your package.json add the following line to "dependencies":
"blog-editor": "git+https://github.com/SeGl1990/Blog-Editor"
# install the new dependency
npm i

Download the React Repo

Install the package as a React project:

# start the development server
git clone https://github.com/SeGl1990/Blog-Editor
# in the Blog-Editor folder install the dependencies
npm i
# run the development server
npm run dev / npm start

Open http://localhost:3000 with your browser to see the result.

License

MIT

Basic Libraries

StarsBundle sizeMaintained
emotion: 10.0.27GitHub starsBundle size⚠️
escape-html: 1.0.3GitHub starsBundle size🛑
slate: 0.57.2GitHub starsBundle size
slate-history: 0.57.2GitHub starsBundle size
slate-hyperscript: 0.57.2GitHub starsBundle size
slate-react: 0.57.2GitHub starsBundle size

Credits & Idea

Please visit the initial template