Skip to content

Commit a7bb689

Browse files
Translate config properties
1 parent d73f9f7 commit a7bb689

8 files changed

Lines changed: 190 additions & 190 deletions

File tree

i18n/ru/docusaurus-plugin-content-docs/current/api/config/default-styles.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
---
22
sidebar_label: defaultStyles
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.
3+
title: Конфигурация defaultStyles
4+
description: Документация по свойству defaultStyles библиотеки DHTMLX RichText. Руководства, справочник API, примеры кода и демо, а также бесплатная 30-дневная пробная версия.
55
---
66

77
# defaultStyles
88

9-
### Description
9+
### Описание {#description}
1010

11-
@short: Optional. Specifies default style values for specific block types
11+
@short: Необязательный. Задаёт значения стилей по умолчанию для определённых типов блоков
1212

13-
### Usage
13+
### Использование {#usage}
1414

1515
~~~jsx {}
1616
defaultStyles?: {
17-
"*"?: { // affects all blocks, allowing you to set common properties for all of these blocks
17+
"*"?: { // применяется ко всем блокам, позволяя задать общие свойства для них
1818
"font-family"?: string; // "Roboto"| "Arial" | "Georgia" | "Tahoma" | "Times New Roman" | "Verdana"
1919
"font-size"?: string; // "12px" | "14px" | "16px" | "18px" | "20px" | "24px" | "28px" | "32px" | "36px"
2020
color?: string;
@@ -71,13 +71,13 @@ defaultStyles?: {
7171
};
7272
~~~
7373

74-
:::important
75-
The `defaultStyles` property DOES NOT set the actual CSS to the affected blocks. CSS styles have to be applied separately:
74+
:::important[Важно]
75+
Свойство `defaultStyles` НЕ применяет CSS напрямую к блокам. CSS-стили нужно задавать отдельно:
7676

7777
```jsx title="index.js"
7878
new richtext.Richtext("#root", {
7979
defaultStyles: {
80-
h2: {
80+
h2: {
8181
"font-family": "Roboto",
8282
"font-size": "28px",
8383
color: "purple",
@@ -98,10 +98,10 @@ new richtext.Richtext("#root", {
9898
</style>
9999
```
100100

101-
In this example, all `h2` blocks are assigned to the `"Roboto"` font-family with a font-size of 28px with both the foreground and the background colors changed as well. Css styles assigned to `h2` blocks as well.
101+
В этом примере всем блокам `h2` задаётся шрифт `"Roboto"` размером 28px, а также изменяются цвет текста и фона. CSS-стили также применяются к блокам `h2`.
102102
:::
103103

104-
### Default config
104+
### Конфигурация по умолчанию {#default-config}
105105

106106
~~~jsx
107107
const defaultStyles = {
@@ -117,10 +117,10 @@ const defaultStyles = {
117117
};
118118
~~~
119119

120-
### Example
120+
### Пример {#example}
121121

122122
~~~jsx {3-13}
123-
// initialize RichText
123+
// инициализация RichText
124124
new richtext.Richtext("#root", {
125125
defaultStyles: {
126126
h4: {
@@ -133,12 +133,12 @@ new richtext.Richtext("#root", {
133133
"font-family": "Roboto"
134134
}
135135
},
136-
// other configuration properties
136+
// другие свойства конфигурации
137137
});
138138
~~~
139139

140-
**Change log:** The property was updated in v2.0
140+
**История изменений:** Свойство обновлено в v2.0
141141

142-
**Related articles:** [Configuration](guides/configuration.md)
142+
**Связанные статьи:** [Конфигурация](guides/configuration.md)
143143

144-
**Related sample:** [RichText. Changing the default value for typography (font, font size, etc.)](https://snippet.dhtmlx.com/6u3ti01s?tag=richtext)
144+
**Связанный пример:** [RichText. Изменение значений типографики по умолчанию (шрифт, размер шрифта и т.д.)](https://snippet.dhtmlx.com/6u3ti01s?tag=richtext)
Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,39 @@
11
---
22
sidebar_label: fullscreenMode
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.
3+
title: Конфигурация fullscreenMode
4+
description: Документация по свойству fullscreenMode библиотеки DHTMLX RichText. Руководства, справочник API, примеры кода и демо, а также бесплатная 30-дневная пробная версия.
55
---
66

77
# fullscreenMode
88

9-
### Description
9+
### Описание {#description}
1010

11-
@short: Optional. Enables the RichText fullscreen mode
11+
@short: Необязательный. Включает полноэкранный режим RichText
1212

13-
### Usage
13+
### Использование {#usage}
1414

1515
~~~jsx {}
16-
fullscreenMode?: boolean;
16+
fullscreenMode?: boolean;
1717
~~~
1818

19-
### Default config
19+
### Конфигурация по умолчанию {#default-config}
2020

2121
~~~jsx
2222
fullscreenMode: false;
2323
~~~
2424

25-
### Example
25+
### Пример {#example}
2626

2727
~~~jsx {3}
28-
// initialize RichText
28+
// инициализация RichText
2929
new richtext.Richtext("#root", {
3030
fullscreenMode: true
31-
// other configuration properties
31+
// другие свойства конфигурации
3232
});
3333
~~~
3434

35-
**Change log:** The property was added in v2.0
35+
**История изменений:** Свойство добавлено в v2.0
3636

37-
**Related articles:** [Configuration](guides/configuration.md)
37+
**Связанные статьи:** [Конфигурация](guides/configuration.md)
3838

39-
**Related sample:** [RichText. Full toolbar](https://snippet.dhtmlx.com/ziynafp7?tag=richtext)
39+
**Связанный пример:** [RichText. Полная панель инструментов](https://snippet.dhtmlx.com/ziynafp7?tag=richtext)
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
11
---
22
sidebar_label: imageUploadUrl
3-
title: imageUploadUrl Config
4-
description: You can learn about the imageUploadUrl 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.
3+
title: Конфигурация imageUploadUrl
4+
description: Документация по свойству imageUploadUrl библиотеки DHTMLX RichText. Руководства, справочник API, примеры кода и демо, а также бесплатная 30-дневная пробная версия.
55
---
66

77
# imageUploadUrl
88

9-
### Description
9+
### Описание {#description}
1010

11-
@short: Optional. Specifies the URL which will be used for image upload
11+
@short: Необязательный. Задаёт URL для загрузки изображений
1212

13-
### Usage
13+
### Использование {#usage}
1414

1515
~~~jsx {}
1616
imageUploadUrl?: string;
1717
~~~
1818

19-
### Example
19+
### Пример {#example}
2020

2121
~~~jsx {3}
22-
// initialize RichText
22+
// инициализация RichText
2323
new richtext.Richtext("#root", {
2424
imageUploadUrl: "some URL"
25-
// other configuration properties
25+
// другие свойства конфигурации
2626
});
2727
~~~
2828

29-
**Change log:** The property was added in v2.0
29+
**История изменений:** Свойство добавлено в v2.0
3030

31-
**Related articles:** [Configuration](guides/configuration.md)
31+
**Связанные статьи:** [Конфигурация](guides/configuration.md)
3232

33-
**Related sample:** [RichText. Initialization](https://snippet.dhtmlx.com/t55alxiy?tag=richtext)
33+
**Связанный пример:** [RichText. Инициализация](https://snippet.dhtmlx.com/t55alxiy?tag=richtext)
Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,41 @@
11
---
22
sidebar_label: layoutMode
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.
3+
title: Конфигурация layoutMode
4+
description: Документация по свойству layoutMode библиотеки DHTMLX RichText. Руководства, справочник API, примеры кода и демо, а также бесплатная 30-дневная пробная версия.
55
---
66

77
# layoutMode
88

9-
### Description
9+
### Описание {#description}
1010

11-
@short: Optional. Specifies the layout mode for the main editor area
11+
@short: Необязательный. Задаёт режим отображения основной области редактора
1212

13-
### Usage
13+
### Использование {#usage}
1414

1515
~~~jsx {}
1616
layoutMode: "classic" | "document";
1717
~~~
1818

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+
Режим `"classic"` — область редактирования занимает всю страницу. Режим `"document"` имитирует реальные размеры документа (форматы A4, A5, A6, A7).
2020

21-
### Default config
21+
### Конфигурация по умолчанию {#default-config}
2222

2323
~~~jsx
2424
layoutMode: "classic";
2525
~~~
2626

27-
### Example
27+
### Пример {#example}
2828

2929
~~~jsx {3}
30-
// initialize RichText
30+
// инициализация RichText
3131
new richtext.Richtext("#root", {
32-
layoutMode: "document" // initializes RichText with "document" mode by default
33-
// other configuration properties
32+
layoutMode: "document" // инициализирует RichText в режиме "document" по умолчанию
33+
// другие свойства конфигурации
3434
});
3535
~~~
3636

37-
**Change log:** The property was added in v2.0 instead of the removed `mode` property
37+
**История изменений:** Свойство добавлено в v2.0 на замену удалённому свойству `mode`
3838

39-
**Related articles:** [Configuration](guides/configuration.md)
39+
**Связанные статьи:** [Конфигурация](guides/configuration.md)
4040

41-
**Related sample:** [RichText. Initialization](https://snippet.dhtmlx.com/t55alxiy?tag=richtext)
41+
**Связанный пример:** [RichText. Инициализация](https://snippet.dhtmlx.com/t55alxiy?tag=richtext)
Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,47 @@
11
---
22
sidebar_label: locale
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.
3+
title: Конфигурация locale
4+
description: Документация по свойству locale библиотеки DHTMLX RichText. Руководства, справочник API, примеры кода и демо, а также бесплатная 30-дневная пробная версия.
55
---
66

77
# locale
88

9-
### Description
9+
### Описание {#description}
1010

11-
@short: Optional. An object that includes localization labels of RichText
11+
@short: Необязательный. Объект с метками локализации RichText
1212

13-
:::info
14-
The **locale** object needs to include all labels of RichText with the corresponding translations.
13+
:::info[Информация]
14+
Объект **locale** должен содержать все метки RichText с соответствующими переводами.
1515
:::
1616

17-
### Usage
17+
### Использование {#usage}
1818

1919
~~~jsx {}
2020
locale?: object;
2121
~~~
2222

23-
### Default config
23+
### Конфигурация по умолчанию {#default-config}
2424

25-
By default, RichText uses the **English** locale. You can set it to the custom locale as well.
25+
По умолчанию RichText использует **английскую** локаль. Вы можете задать любую другую.
2626

27-
:::tip
28-
To change the current locale dynamically, you can use the [**setLocale()**](api/methods/set-locale.md) method of RichText
27+
:::tip[Совет]
28+
Для динамической смены локали используйте метод [**setLocale()**](api/methods/set-locale.md)
2929
:::
3030

31-
### Example
31+
### Пример {#example}
3232

3333
~~~jsx {3}
34-
// initialize RichText
34+
// инициализация RichText
3535
const editor = new richtext.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
39-
// other configuration properties
36+
locale: richtext.locales.cn // устанавливается китайская локаль
37+
// locale: richtext.locales.en // устанавливается английская локаль
38+
// locale: richtext.locales.de // устанавливается немецкая локаль
39+
// другие свойства конфигурации
4040
});
4141
~~~
4242

43-
**Change log:** The property was added in v2.0
43+
**История изменений:** Свойство добавлено в v2.0
4444

45-
**Related articles:** [Localization](guides/localization.md)
45+
**Связанные статьи:** [Локализация](guides/localization.md)
4646

47-
**Related sample:** [RichText. Localization](https://snippet.dhtmlx.com/zxjrin3i?tag=richtext)
47+
**Связанный пример:** [RichText. Локализация](https://snippet.dhtmlx.com/zxjrin3i?tag=richtext)
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
11
---
22
sidebar_label: menubar
3-
title: menubar Config
4-
description: You can learn about the menubar 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.
3+
title: Конфигурация menubar
4+
description: Документация по свойству menubar библиотеки DHTMLX RichText. Руководства, справочник API, примеры кода и демо, а также бесплатная 30-дневная пробная версия.
55
---
66

77
# menubar
88

9-
### Description
9+
### Описание {#description}
1010

11-
@short: Optional. Enables the top menubar of RichText
11+
@short: Необязательный. Включает верхнюю строку меню RichText
1212

13-
### Usage
13+
### Использование {#usage}
1414

1515
~~~jsx {}
16-
menubar?: boolean;
16+
menubar?: boolean;
1717
~~~
1818

19-
### Example
19+
### Пример {#example}
2020

2121
~~~jsx {3}
22-
// initialize RichText
22+
// инициализация RichText
2323
new richtext.Richtext("#root", {
2424
menubar: true
25-
// other configuration properties
25+
// другие свойства конфигурации
2626
});
2727
~~~
2828

29-
**Change log:** The property was added in v2.0
29+
**История изменений:** Свойство добавлено в v2.0
3030

31-
**Related articles:** [Configuration](guides/configuration.md)
31+
**Связанные статьи:** [Конфигурация](guides/configuration.md)
3232

33-
**Related sample:** [RichText. Initialization with menubar](https://snippet.dhtmlx.com/tjryzka7?tag=richtext)
33+
**Связанный пример:** [RichText. Инициализация с menubar](https://snippet.dhtmlx.com/tjryzka7?tag=richtext)

0 commit comments

Comments
 (0)