Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 1.2 KB

File metadata and controls

41 lines (28 loc) · 1.2 KB
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.

layoutMode

Description {#description}

@short: Optional. Specifies the layout mode for the main editor area

Usage {#usage}

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

Default config {#default-config}

layoutMode: "classic";

Example {#example}

// 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