import { Editor } from "@tinymce/tinymce-react"; import axios from "axios"; import React, { useState } from "react"; import { connect } from "react-redux"; import { createStructuredSelector } from "reselect"; import { EmailSettings } from "../../emails/constants"; import { endLoading, startLoading, } from "../../redux/application/application.actions"; import { setEmailOptions } from "../../redux/email/email.actions"; import { selectBodyshop } from "../../redux/user/user.selectors"; const mapStateToProps = createStructuredSelector({ //currentUser: selectCurrentUser bodyshop: selectBodyshop, }); const mapDispatchToProps = (dispatch) => ({ setEmailOptions: (e) => dispatch(setEmailOptions(e)), load: () => dispatch(startLoading()), endload: () => dispatch(endLoading()), }); export default connect( mapStateToProps, mapDispatchToProps )(function Test({ setEmailOptions, load, endload, bodyshop }) { const [state, setState] = useState(temp); const handleEditorChange = (content, editor) => { setState(content); }; return (
→ This is a full-featured editor demo. Please explore! ←
A featherweight download, TinyMCE can handle any challenge you throw at it.
| 🛠 50+ Plugins | 💡 Premium Support | 🖍 Custom Skins | ⚙ Full API Access |
| {{this}} | {{this}} | {{this}} | {{this}} |