-
Data Grid
- Overview
-
Data Binding
-
Paging and Scrolling
-
Editing
-
Grouping
-
Filtering and Sorting
- Focused Row
-
Row Drag & Drop
-
Selection
-
Columns
- State Persistence
-
Appearance
-
Templates
-
Data Summaries
-
Master-Detail
-
Export to PDF
-
Export to Excel
-
Adaptability
- Keyboard Navigation
-
Pivot Grid
- Overview
-
Data Binding
-
Field Chooser
-
Features
-
Export to Excel
-
Tree List
- Overview
-
Data Binding
- Sorting
- Paging
-
Editing
- Node Drag & Drop
- Focused Row
-
Selection
-
Filtering
-
Column Customization
- State Persistence
- Adaptability
- Keyboard Navigation
-
Scheduler
- Overview
-
Data Binding
-
Views
-
Features
- Virtual Scrolling
-
Grouping
-
Customization
- Adaptability
-
Html Editor
-
Chat
-
Diagram
- Overview
-
Data Binding
-
Featured Shapes
-
Custom Shapes
-
Document Capabilities
-
User Interaction
- UI Customization
- Adaptability
-
Charts
- Overview
-
Data Binding
-
Area Charts
-
Bar Charts
- Bullet Charts
-
Doughnut Charts
-
Financial Charts
-
Line Charts
-
Pie Charts
-
Point Charts
-
Polar and Radar Charts
-
Range Charts
-
Sparkline Charts
-
Tree Map
-
Funnel and Pyramid Charts
- Sankey Chart
-
Combinations
-
More Features
-
Export
-
Selection
-
Tooltips
-
Zooming
-
-
Gantt
- Overview
-
Data
-
UI Customization
- Strip Lines
- Export to PDF
- Sorting
-
Filtering
-
Gauges
- Overview
-
Data Binding
-
Bar Gauge
-
Circular Gauge
-
Linear Gauge
-
Navigation
- Overview
- Accordion
-
Menu
- Multi View
-
Drawer
-
Tab Panel
-
Tabs
-
Toolbar
- Pagination
-
Tree View
- Right-to-Left Support
-
Layout
-
Editors
- Overview
- Autocomplete
-
Calendar
- Check Box
- Color Box
-
Date Box
-
Date Range Box
-
Drop Down Box
-
Number Box
-
Select Box
- Switch
-
Tag Box
- Text Area
- Text Box
- Validation
- Custom Text Editor Buttons
- Right-to-Left Support
- Editor Appearance Variants
-
Forms and Multi-Purpose
- Overview
- Button Group
- Field Set
-
Filter Builder
-
Form
- Radio Group
-
Range Selector
- Numeric Scale (Lightweight)
- Numeric Scale
- Date-Time Scale (Lightweight)
- Date-Time Scale
- Logarithmic Scale
- Discrete scale
- Custom Formatting
- Use Range Selection for Calculation
- Use Range Selection for Filtering
- Image on Background
- Chart on Background
- Customized Chart on Background
- Chart on Background with Series Template
- Range Slider
- Slider
-
Sortable
-
File Management
-
File Manager
- Overview
-
File System Types
-
Customization
-
File Uploader
-
-
Actions and Lists
- Overview
-
Action Sheet
-
Button
- Floating Action Button
- Drop Down Button
-
Context Menu
-
List
-
Lookup
-
Maps
- Overview
-
Map
-
Vector Map
-
Dialogs and Notifications
-
Localization
JavaScript/jQuery Html Editor - Overview
The JavaScript HtmlEditor component is a client-side WYSIWYG text editor. The editor allows users to format text and integrate media elements into documents. The result can be exported to HTML.
Users can edit and customize content using the toolbar that can contain predefined and custom controls. To specify the available controls, use the items array. In this demo, the toolbar contains predefined controls.
If you have technical questions, please create a support ticket in the DevExpress Support Center.
$(() => {
const editor = $('.html-editor').dxHtmlEditor({
height: 725,
value: markup,
imageUpload: {
tabs: ['file', 'url'],
fileUploadMode: 'base64',
},
toolbar: {
items: [
'undo', 'redo', 'separator',
{
name: 'size',
acceptedValues: ['8pt', '10pt', '12pt', '14pt', '18pt', '24pt', '36pt'],
options: { inputAttr: { 'aria-label': 'Font size' } },
},
{
name: 'font',
acceptedValues: ['Arial', 'Courier New', 'Georgia', 'Impact', 'Lucida Console', 'Tahoma', 'Times New Roman', 'Verdana'],
options: { inputAttr: { 'aria-label': 'Font family' } },
},
'separator', 'bold', 'italic', 'strike', 'underline', 'separator',
'alignLeft', 'alignCenter', 'alignRight', 'alignJustify', 'separator',
'orderedList', 'bulletList', 'separator',
{
name: 'header',
acceptedValues: [false, 1, 2, 3, 4, 5],
options: { inputAttr: { 'aria-label': 'Header' } },
}, 'separator',
'color', 'background', 'separator',
'link', 'image', 'separator',
'clear', 'codeBlock', 'blockquote', 'separator',
'insertTable', 'deleteTable',
'insertRowAbove', 'insertRowBelow', 'deleteRow',
'insertColumnLeft', 'insertColumnRight', 'deleteColumn',
],
},
mediaResizing: {
enabled: true,
},
}).dxHtmlEditor('instance');
$('#multiline').dxCheckBox({
text: 'Multiline toolbar',
value: true,
onValueChanged(e) {
editor.option('toolbar.multiline', e.value);
},
});
$('#image-uploader-tabs').dxSelectBox({
items: tabs,
value: tabs[2].value,
inputAttr: { 'aria-label': 'Tab' },
valueExpr: 'value',
displayExpr: 'name',
onValueChanged: (e) => {
editor.option('imageUpload.tabs', e.value);
},
});
});
xxxxxxxxxx
xxxxxxxxxx
xxxxxxxxxx
You can use the toolbar.multiline property to arrange the toolbar controls into multiple rows.
Users can resize media files when the mediaResizing is enabled. Currently, only images are supported.
To get started with the DevExtreme JavaScript HtmlEditor component, refer to the following tutorial for step-by-step instructions: Getting Started with JavaScript HtmlEditor.