0.0.428 • Published 3 years ago

live-editor-react v0.0.428

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

live-editor-react

live editor react component

Install

npm install --save live-editor-react

Usage

import React, { Component } from 'react'

import { LiveEditor, EditorOptions } from 'live-editor-react'

const appId = '';

class Example extends Component {
  render() {
    const docId = 'doc1';

    const options: EditorOptions = {
      local: true,
      titleInEditor: true,
      serverUrl: '',
    };

    return <LiveEditor
      userId={'test-suer'}
      displayName={'Test User'}
      avatarUrl={'https://www.live-editor.com/wp-content/new-uploads/a0919cb4-d3c2-4027-b64d-35a4c2dc8e23.png'}
      appId={appId}
      docId={docId}
      options={options}
      permission={'w'}
      accessToken=""
      containerStyle={{
        border: '1px solid #f0f0f0',
        maxWidth: 800,
        minHeight: 800,
        margin: '40px auto 40px auto'
      }}
    />
  }
}

License

MIT © live-editor

0.0.428

3 years ago

0.0.420

3 years ago

0.0.382

3 years ago

0.0.317

3 years ago

0.0.241

3 years ago

0.0.109

3 years ago

0.0.105

3 years ago

0.0.104

3 years ago

0.0.103

3 years ago

0.0.102

3 years ago

0.0.101

3 years ago

0.0.96

3 years ago

0.0.44

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago