Skip to content

Latest commit

 

History

History
42 lines (31 loc) · 942 Bytes

File metadata and controls

42 lines (31 loc) · 942 Bytes
sidebar_label theme
title theme Config
description You can learn about the theme 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.

theme

Description

@short: Optional. Specifies the visual theme applied to the RichText editor

Usage

theme?: {
    name: string;
    fonts: boolean;
};

Parameters

  • name - (required) the name of the theme to apply
  • fonts - (required) defines whether to load the fonts bundled with the theme

Example

// initialize RichText
new richtext.Richtext("#root", {
    theme: {
        name: "dark",
        fonts: true
    }
    // other configuration properties
});

Change log: The property was added in v2.0

Related articles: Configuration