Vue HtmlEditor - converter
Allows you to convert an HTML Editor value between different markups.
App.vue
- <template>
- <DxHtmlEditor ...>
- <DxConverter
- @to-html="toHtml"
- @from-html="fromHtml"
- />
- </DxHtmlEditor>
- </template>
- <script setup>
- import DxHtmlEditor, { DxConverter } from 'devextreme-vue/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;
- }
- </script>