React HtmlEditor - converter
Allows you to convert an HTML Editor value between different markups.
App.js
- import React from 'react';
- import HtmlEditor, { Converter } from 'devextreme-react/html-editor';
- const toHtml: (value) => {
- const result = */ Convert the value and return a string */
- return result;
- }
- const fromHtml: (value) => {
- const result = /* Convert the value and return a string */
- return result;
- }
- function App() {
- return (
- <HtmlEditor ...>
- <Converter
- fromHtml={fromHtml}
- toHtml={toHtml}
- />
- </HtmlEditor>
- );
- }
- export default App;