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 (
); }); const temp = `

This is a full-featured editor demo. Please explore! ←

 

TinyMCE is the world's most customizable, and flexible, rich text editor.

A featherweight download, TinyMCE can handle any challenge you throw at it.

 

 

🛠 50+ Plugins 💡 Premium Support 🖍 Custom Skins ⚙ Full API Access
{{#each people}}
{{this}} {{this}} {{this}} {{this}}
{{/each}}
`;