Back to Devexpress

createOptions Function

aspnetcore-js-devexpress-dot-richedit-071ea455.md

latest909 B
Original Source

createOptions Function

Creates an object that contains Rich Text Editor options with default values.

Declaration

ts
export function createOptions(): Options

Returns

TypeDescription
Options

An object that contains Rich Text Editor options.

|

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);