yopta-editor-copy
v0.1.0
Published
<h2 align="center">Yopta-Editor v1 ๐</h2> <p align="center">Yopta-Editor - is an open source notion-like editor ๐ฅ</p> <div align="center"> <img width="574" alt="Screen Shot 2023-01-25 at 16 04 29" src="https://user-images.githubusercontent.com/29093118/
Downloads
2
Maintainers
Readme
Features
- Triggering by "/" to show list of elements and search needed element by typing
- Drag and drop beetween elements
- Redo/Undo your changes (Ctrl-Z/Ctrl-V)
- Offline ready mode
- Shortcuts
- A cool representation of the data in JSON format, so you can easily save the content data to the database and validate
You can import two components from library:
<YoptaEditor />
and<YoptaRender />
.<YoptaEditor />
- it's for building beautiful content<YoptaRender />
- it's just for rendering from your saved data, without any editor tools and libraries, so it make you page loading faster - Custom styling ...and other
Install
yarn add yopta-editor
or
npm install yopta-editor
Peer dependencies
yarn add react react-dom slate slate-react
or
npm install react react-dom slate slate-react
Quickstart
import { YoptaEditor } from 'yopta-editor';
import { useState } from 'react';
import 'yopta-editor/dist/index.css';
function App() {
const [editorValue, setEditorValue] = useState([]);
const onChange = (data) => setEditorValue(data);
return (
<div>
<YoptaEditor value={editorValue} onChange={onChange} />
</div>
);
}
Check out other DEMO's ๐
- Basic usage
- Offline mode
- Working with media
- Just rendering
- Custom styling
Donation.
If you like this open source project you can support me using Stripe link ๐
Used by
- Tapflow - The perfect tool for building and selling online courses
- Equalize.team
- Yopage.co - blogging platform
License
MIT LICENSE