@raketa-cms/raketa-mce
v1.0.5
Published
TinyMCE wrapper for Raketa CMS
Downloads
6
Readme
@raketa-cms/raketa-mce
Made with create-react-library
Install
npm install --save @raketa-cms/raketa-mce
Usage
import React from 'react'
import { RichText } from '@raketa-cms/raketa-mce'
const App = () => {
return (
<RichText
label="Text"
value="<p>Create React <img src='https://placehold.it/100x100' /> Library Example 😄</p>"
customStyles={[
{ key: 'highlight', title: 'Highlight', inline: 'span', classes: 'highlight' },
{ key: 'small', title: 'Small', inline: 'span', classes: 'text-small' },
]}
onChange={value => console.log(value)}
/>
)
}
export default App
License
MIT © studioraketa