0.0.3 • Published 1 year ago
@codelus/react-template-editor v0.0.3
React Template Editor
It's replica from React-Email-Editor but made the options values as more priority and will maintain it more
The excellent drag-n-drop email editor by Codelus as a React.js wrapper component. This is the most powerful and developer friendly visual email builder for your app.
Installation
The easiest way to use React Email Editor is to install it from NPM and include it in your own React build process.
To install a component run
$ npm install @codelus/react-template-editor --save
Please import CSS styles via
@import '/path__to__node_modules/@codelus/react-template-editor/dist/index.min.css
Usage
Require the EmailEditor component and render it with JSX:
import Button from '@hawk-ui/button';
import React from 'react';
import ReactDom from 'react-dom';
import TemplateEditor from '@codelus/react-template-editor';
const App = () => {
return (
<TemplateEditor
templateCode='<html><head></head><body><div style="box-sizing: border-box;"><div style="box-sizing: border-box;"><h1 style="box-sizing: border-box; color: #428795; text-align: center;">Welcome to Codelus Editor</h1></div></div></body></html>'
/>
);
};