1.0.29 • Published 5 years ago

perfecttense-pure-react-editor-development v1.0.29

Weekly downloads
2
License
MIT
Repository
-
Last release
5 years ago

Perfect Tense Live Editor

Install

npm install --save perfecttense-editor
OR
yarn add perfecttense-editor

##Props

Prop NameRequiredTypeDefault
socketUrlfalseStringhttps://io.perfecttense.com
onDraftSavefalseFunction(uid) => {}
onLoadingStateChangedfalseFunction(bufferSize) => {}
onGrammarScoreChangedfalseFunction(grammarScore) => {}

Usage

import React, { Component } from 'react'
import PerfectTenseEditor from 'perfecttense-editor'

class Example extends Component {
  render () {
    return (
      <PerfectTenseEditor />
    )
  }
}

Dev Setup

We have our source code for the editor in src/, and there are example components in examples/ that can be used for development purpose. parcel is recommended.

Run the following commands from the root of the project.

# create a symlink of the package that can be used in any local project.
yarn link 

# Install dependencies
yarn install

# Start the bundler with watch mode
yarn start

Now, go to examples/parcel directory(in another tab) and run the following

# Install dependencies
yarn install

# Symlink previously built dependency for `example` project
yarn link perfecttense-editor

# Start localhost server on port 1234
yarn start

License

MIT © Cortx

1.0.29

5 years ago

1.0.28

5 years ago

1.0.27

5 years ago

1.0.26

5 years ago

1.0.25

5 years ago

1.0.24

5 years ago

1.0.23

5 years ago

1.0.22

5 years ago

1.0.21

5 years ago

1.0.20

5 years ago

1.0.19

5 years ago

1.0.18

5 years ago

1.0.17

5 years ago

1.0.16

5 years ago

1.0.15

5 years ago

1.0.14

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago