New Powerful Machines

    wiz-editor-react
    TypeScript icon, indicating that this package has built-in type declarations

    0.0.428 • Public • Published

    wiz-editor-react

    wiz editor react component

    Install

    npm install --save wiz-editor-react

    Usage

    import React, { Component } from 'react'
    
    import { WizEditor } from 'wiz-editor-react'
    
    const appId = '';
    
    class Example extends Component {
      render() {
        const docId = 'doc1';
    
        const options: EditorOptions = {
          local: true,
          titleInEditor: true,
          serverUrl: '',
        };
    
        return <WizEditor
          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 © wiz-editor

    Keywords

    none

    Install

    npm i wiz-editor-react

    DownloadsWeekly Downloads

    0

    Version

    0.0.428

    License

    MIT

    Unpacked Size

    14.6 kB

    Total Files

    8

    Last publish

    Collaborators

    • wizteam