JavaScript/jQuery HtmlEditor - Relocate the Toolbar
The toolbar occupies the top part of the HtmlEditor and is rendered inside the UI component's container. To relocate the toolbar, specify a different container for the toolbar.
In the following code, the toolbar is placed in a separate <div>
under the HtmlEditor:
- <template>
- <div>
- <DxHtmlEditor>
- <DxToolbar ...
- container="#htmlEditorFooter"/>
- </DxHtmlEditor>
- <div id="htmlEditorFooter"></div>
- </div>
- </template>
- <script>
- import 'devextreme/dist/css/dx.common.css';
- import 'devextreme/dist/css/dx.light.css';
- import {
- DxHtmlEditor,
- DxToolbar
- } from 'devextreme-vue/html-editor';
- export default {
- components: {
- DxHtmlEditor,
- DxToolbar
- }
- }
- </script>
Feel free to share topic-related thoughts here.
If you have technical questions, please create a support ticket in the DevExpress Support Center.
Thank you for the feedback!
If you have technical questions, please create a support ticket in the DevExpress Support Center.