You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/api/config/default-styles.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,20 +1,20 @@
1
1
---
2
2
sidebar_label: defaultStyles
3
3
title: defaultStyles Config
4
-
description: You can learn about the defaultStyles 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.
4
+
description: Explore the defaultStyles configuration in the DHTMLX JavaScript RichText library documentation. Find developer guides, API references, try code samples and live demos, and download a free 30-day trial of DHTMLX RichText.
5
5
---
6
6
7
7
# defaultStyles
8
8
9
9
### Description
10
10
11
-
@short: Optional. Specifies default style values for specific block types
11
+
@short: Optional. Defines default style settings for specific block types.
12
12
13
13
### Usage
14
14
15
15
~~~jsx {}
16
16
defaultStyles?: {
17
-
"*"?: { //affects all blocks, allowing you to set common properties for all of these blocks
17
+
"*"?: { //applies to all blocks, letting you set common properties for all of them
The `defaultStyles` property DOES NOT set the actual CSS to the affected blocks. CSS styles have to be applied separately:
75
+
The `defaultStyles` property doesn't actually apply CSS styles to the blocks. To see the styles take effect, you need to add the corresponding CSS separately:
76
76
77
77
```jsx title="index.js"
78
78
newrichtext.Richtext("#root", {
@@ -98,7 +98,7 @@ new richtext.Richtext("#root", {
98
98
</style>
99
99
```
100
100
101
-
In this example, all `h2` blocks are assigned to the `"Roboto"` font-family with afont-size of 28pxwith both the foreground and the background colors changed as well. Css styles assigned to `h2` blocks as well.
101
+
In this example, every `h2` block is set to usethe `"Roboto"` font-family with afontsize of 28px, along with changes to the text and background colors. The CSS styles for `h2` blocks are also applied accordingly.
102
102
:::
103
103
104
104
### Default config
@@ -137,7 +137,7 @@ new richtext.Richtext("#root", {
137
137
});
138
138
~~~
139
139
140
-
**Change log:**The property was updated in v2.0
140
+
**Change log:**This property was updated in version 2.0
Copy file name to clipboardExpand all lines: docs/api/config/fullscreen-mode.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,14 @@
1
1
---
2
2
sidebar_label: fullscreenMode
3
3
title: fullscreenMode Config
4
-
description: You can learn about the fullscreenMode 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.
4
+
description: Explore the fullscreenMode config in the DHTMLX JavaScript RichText library documentation. Check out developer guides, API references, try code examples and live demos, and download a free 30-day trial of DHTMLX RichText.
5
5
---
6
6
7
7
# fullscreenMode
8
8
9
9
### Description
10
10
11
-
@short: Optional. Enables the RichText fullscreen mode
11
+
@short: Optional. Turns on the RichText fullscreen mode
12
12
13
13
### Usage
14
14
@@ -32,7 +32,7 @@ new richtext.Richtext("#root", {
32
32
});
33
33
~~~
34
34
35
-
**Change log:**The property was added in v2.0
35
+
**Change log:**This property was introduced in v2.0
Copy file name to clipboardExpand all lines: docs/api/config/layout-mode.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,22 +1,22 @@
1
1
---
2
2
sidebar_label: layoutMode
3
3
title: layoutMode Config
4
-
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.
4
+
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.
5
5
---
6
6
7
7
# layoutMode
8
8
9
9
### Description
10
10
11
-
@short: Optional. Specifies the layout mode for the main editor area
11
+
@short: Optional. Defines the layout style for the main editor area.
12
12
13
13
### Usage
14
14
15
15
~~~jsx {}
16
16
layoutMode:"classic"|"document";
17
17
~~~
18
18
19
-
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).
19
+
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.
20
20
21
21
### Default config
22
22
@@ -29,12 +29,12 @@ layoutMode: "classic";
29
29
~~~jsx {3}
30
30
// initialize RichText
31
31
newrichtext.Richtext("#root", {
32
-
layoutMode:"document"//initializes RichText with "document" mode by default
32
+
layoutMode:"document"//sets RichText to use "document" mode by default
33
33
// other configuration properties
34
34
});
35
35
~~~
36
36
37
-
**Change log:**The property was added in v2.0 instead of the removed`mode` property
37
+
**Change log:**This property was introduced in v2.0, replacing the older`mode` property.
Copy file name to clipboardExpand all lines: docs/api/config/locale.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,17 +1,17 @@
1
1
---
2
2
sidebar_label: locale
3
3
title: locale Config
4
-
description: You can learn about the locale 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.
4
+
description: Explore the locale config in the DHTMLX JavaScript RichText library documentation. Check out developer guides, API references, try code samples and live demos, and download a free 30-day trial of DHTMLX RichText.
5
5
---
6
6
7
7
# locale
8
8
9
9
### Description
10
10
11
-
@short: Optional. An object that includes localization labels of RichText
11
+
@short: Optional. An object containing localization labels for RichText
12
12
13
13
:::info
14
-
The **locale** object needs to include all labels of RichText with the corresponding translations.
14
+
The **locale** object should have all the RichText labels along with their respective translations.
15
15
:::
16
16
17
17
### Usage
@@ -22,25 +22,25 @@ locale?: object;
22
22
23
23
### Default config
24
24
25
-
By default, RichText uses the **English** locale. You can set it to the custom locale as well.
25
+
By default, RichText comes with the **English** locale. You also have the option to set a custom locale.
26
26
27
27
:::tip
28
-
To change the current locale dynamically, you can use the [**setLocale()**](api/methods/set-locale.md) method of RichText
28
+
To switch the locale on the fly, use the [**setLocale()**](api/methods/set-locale.md) method of RichText
29
29
:::
30
30
31
31
### Example
32
32
33
33
~~~jsx {3}
34
34
// initialize RichText
35
35
consteditor=newrichtext.RichText("#root", {
36
-
locale:richtext.locales.cn// the Chineese locale will be set initially
37
-
// locale: richtext.locales.en // the English locale will be set initially
38
-
// locale: richtext.locales.de // the Germany locale will be set initially
36
+
locale:richtext.locales.cn// the Chinese locale is set initially
37
+
// locale: richtext.locales.en // the English locale is set initially
38
+
// locale: richtext.locales.de // the German locale is set initially
39
39
// other configuration properties
40
40
});
41
41
~~~
42
42
43
-
**Change log:**The property was added in v2.0
43
+
**Change log:**This property was introduced in v2.0
0 commit comments