Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 1.1 KB

File metadata and controls

41 lines (28 loc) · 1.1 KB
sidebar_label layoutMode
title layoutMode Config
description Explore the layoutMode configuration in the DHTMLX JavaScript RichText library documentation. Check out developer guides, API references, code samples, live demos, and download a free 30-day trial of DHTMLX RichText.

layoutMode

Description

@short: Optional. Defines the layout style for the main editor area.

Usage

layoutMode: "classic" | "document";

The "classic" mode makes the editing area span the entire page. The "document" mode simulates actual document sizes, using formats like A4, A5, A6, and A7.

Default config

layoutMode: "classic";

Example

// initialize RichText
new richtext.Richtext("#root", {
    layoutMode: "document"  // sets RichText to use "document" mode by default
    // other configuration properties
});

Change log: This property was introduced in v2.0, replacing the older mode property.

Related articles: Configuration

Related sample: RichText. Initialization