1.1.19 • Published 3 years ago

codoeditor v1.1.19

Weekly downloads
4
License
ISC
Repository
-
Last release
3 years ago

Codoeditor - A frontend page editor for React applications.

The editor provides ready made blocks e.g. Heading Block or Paragraph Block (more blocks coming soon). These blocks can be used to create content for pages or posts. The editor provides the output (JSON) to the callback function which can be saved in the database.

Setup

  1. Install the codoeditor package i.e. npm install --save codoeditor
  2. import the Editor component i.e. import Editor from 'codoeditor';
  3. Now add the Editor component in React application

Example:

import {Editor} from 'codoeditor';

function App() {
  /*Saved in the database*/  
  const data = [
    {
      type: "heading",
      tagName: "h1",
      attributes: {
        className: "hey some"
      },
      children: "Hello World!",
      settings: {
        tagName: "h1"
      }
    }
  ];

  const handleEditorData = (data) => {
    console.log(data); //save the data to the state or database
  }

  return (
    <div className="App">
      <Editor 
        data={data}
        handleEditorData={handleEditorData}
        coreBlocks={""}
      ></Editor>
    </div>
  );
}

export default App;
1.1.19

3 years ago

1.1.18

3 years ago

1.1.17

3 years ago

1.1.16

3 years ago

1.1.15

3 years ago

1.1.14

3 years ago

1.1.13

3 years ago

1.1.12

3 years ago

1.1.11

3 years ago

1.1.10

3 years ago

1.1.9

3 years ago

1.1.8

3 years ago

1.1.7

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago