Skip to content

tuoxiansp/vision

Folders and files

NameName
Last commit message
Last commit date

Latest commit

94ed10a · May 29, 2020

History

37 Commits
Jan 17, 2019
Dec 11, 2018
Aug 4, 2018
May 29, 2020
Dec 25, 2018
Nov 15, 2018
Nov 15, 2018
Jan 17, 2019
Nov 15, 2018

Repository files navigation

vision

A framework to create the WYSIWYG Web Page Editor of yours.

Vision is a web builder framework based on React. You can develop your own productive-ready web builder quickly. Unlike most web builder framework, you can expand vision with pure react. It's crazy simple, all you need to do is writing react component. And it's powerful, you can handling the interactions (eg. TabView) gracefully.

Features

  • crazy simple
  • fully customizable
  • high performance
  • non invasive
  • undo/redo were ready
  • only 10 KB gziped

Install

npm install @visionjs/core --save

Usage

import React, { useState } from 'react'
import { Editor, View, Data } from '@visionjs/core'
import Text from 'renderers/Text'

const defaultProps = (params) => (renderer) => ({ readonly, requestUpdateProps, props }) =>
    renderer({ readonly, requestUpdateProps, props: { ...params, ...props } })

//...
//my editor
() => {
  const [data, setData] = useState(new Data())

  return (
    <Editor data={data} onChange={setData}>
      <h1>
        <View id="title" render={defaultProps({ content: 'title' })(Text)} />
      </h1>
      <View
        id="description"
        render={defaultProps({ content: 'description' })(Text)}
      />
    </Editor>
  )
}

Documentation

https://visionjs.netlify.com/

Demo

https://example-landing-vision.netlify.com/

Contact to author

QQ-Group: 730672328

email: [email protected]

License

Licensed under the MIT License, Copyright © 2018-present tuoxiansp.