Back to Devexpress

create(htmlElement, options) Function

aspnetcore-js-devexpress-dot-richedit-dot-create-2.md

latest1.2 KB
Original Source

create(htmlElement, options) Function

Creates a Rich Text Editor object.

Declaration

ts
export function create(htmlElement: HTMLElement, options: Options): RichEdit

Parameters

NameTypeDescription
htmlElementHTMLElement

An element that will contain Rich Text Editor.

| | options | Options |

An object that contains Rich Text Editor options.

|

Returns

TypeDescription
RichEdit

The newly created Rich Text Editor object.

|

Remarks

Use the createOptions method to create an object that contains default Rich Text Editor settings. You can customize the settings and call the create(htmlElement,options) method to create a Rich Text Editor object.

javascript
const options = DevExpress.RichEdit.createOptions();
options.width = '1700px';
options.height = '800px';
var richContainer = document.getElementById("rich-container");
const richEdit = DevExpress.RichEdit.create(richContainer, options);