| sidebar_label | layoutMode |
|---|---|
| title | layoutMode Config |
| description | You can learn about the layoutMode config in the documentation of the DHTMLX JavaScript RichText library. Browse developer guides and API reference, try out code examples and live demos, and download a free 30-day evaluation version of DHTMLX RichText. |
@short: Optional. Specifies the layout mode for the main editor area
layoutMode: "classic" | "document";The "classic" mode represents the edit area that fits the entire page. The "document" mode closely represent the real document sizes (sizes used: A4, A5, A6, A7).
layoutMode: "classic";// initialize RichText
new richtext.Richtext("#root", {
layoutMode: "document" // initializes RichText with "document" mode by default
// other configuration properties
});Change log: The property was added in v2.0 instead of the removed mode property
Related articles: Configuration
Related sample: RichText. Initialization