Skip to content

Commit 293b304

Browse files
[update] screenshots
1 parent b291b29 commit 293b304

7 files changed

Lines changed: 77 additions & 58 deletions

File tree

docs/assets/trial_richtext.png

791 KB
Loading

docs/guides/integration_with_angular.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,8 @@ platformBrowserDynamic()
293293

294294
After that, you can start the app to see RichText loaded with data on a page.
295295

296-
[TODO]
296+
<div className="img_border">
297+
![RichText initialization](../assets/trial_richtext.png)
298+
</div>
297299

298300
Now you know how to integrate DHTMLX RichText with Angular. You can customize the code according to your specific requirements. The final advanced example you can find on [**GitHub**](https://github.com/DHTMLX/angular-richtext-demo).

docs/guides/integration_with_react.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,8 @@ useEffect(() => {
248248

249249
After that, you can start the app to see RichText loaded with data on a page.
250250

251-
[TODO]
251+
<div className="img_border">
252+
![RichText initialization](../assets/trial_richtext.png)
253+
</div>
252254

253255
Now you know how to integrate DHTMLX RichText with React. You can customize the code according to your specific requirements. The final advanced example you can find on [**GitHub**](https://github.com/DHTMLX/react-richtext-demo).

docs/guides/integration_with_svelte.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,8 @@ To add the component into the app, open the **App.svelte** file and replace the
258258
259259
After that, you can start the app to see RichText loaded with data on a page.
260260
261-
[TODO]
261+
<div className="img_border">
262+
![RichText initialization](../assets/trial_richtext.png)
263+
</div>
262264
263265
Now you know how to integrate DHTMLX RichText with Svelte. You can customize the code according to your specific requirements. The final advanced example you can find on [**GitHub**](https://github.com/DHTMLX/svelte-richtext-demo).

docs/guides/integration_with_vue.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,8 @@ export default {
274274

275275
After that, you can start the app to see RichText loaded with data on a page.
276276

277-
[TODO]
277+
<div className="img_border">
278+
![RichText initialization](../assets/trial_richtext.png)
279+
</div>
278280

279281
Now you know how to integrate DHTMLX RichText with Vue. You can customize the code according to your specific requirements. The final advanced example you can find on [**GitHub**](https://github.com/DHTMLX/vue-richtext-demo).

docs/index.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,19 @@ The RichText toolbar provides quick access to text formatting and structural edi
3333

3434
The [`toolbar`](api/config/toolbar.md) property allows you to fully customize the toolbar’s content and layout. You can enable or disable toolbar, rearrange default controls, or define a fully custom toolbar using an array of predefined button identifiers and custom button objects.
3535

36+
<div className="img_border">
3637
![Toolbar](./assets/richtext/toolbar.png)
38+
</div>
3739

3840
### Menubar
3941

4042
The RichText menubar provides access to high-level editing actions such as creating a new document, printing, importing/exporting content, and more. It is hidden by default.
4143

4244
Use the [`menubar`](api/config/menubar.md) property to toggle its visibility. While the menubar can be enabled or disabled, its contents are not configurable at this time.
4345

46+
<div className="img_border">
4447
![Menubar](./assets/richtext/menubar.png)
48+
</div>
4549

4650
### Editor
4751

@@ -53,20 +57,28 @@ DHTMLX RichText can work with content in "classic" and "document" modes. You can
5357

5458
- **"classic"**
5559

60+
<div className="img_border">
5661
![Classic mode](./assets/richtext/classic_mode.png)
62+
</div>
5763

5864
- **"document"**
5965

66+
<div className="img_border">
6067
![Document mode](./assets/richtext/document_mode.png)
68+
</div>
6169

6270
### Supported formats
6371

6472
The RichText editor supports [parsing](guides/loading_data.md#adding-content-into-editor) and [serialization](guides/working_with_richtext.md#getting-content-from-editor) of content in the [HTML and Markdown formats](guides/loading_data.md#format-of-content).
6573

6674
#### HTML format
6775

76+
<div className="img_border">
6877
![HTML format](./assets/richtext/html_format.png)
78+
</div>
6979

7080
#### Text format
7181

82+
<div className="img_border">
7283
![Text format](./assets/richtext/text_format.png)
84+
</div>

src/css/custom.css

Lines changed: 53 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
/* stylelint-disable docusaurus/copyright-header */
22

3-
43
/**
54
* Any CSS included here will be global. The classic template
65
* bundles Infima by default. Infima is a CSS framework designed to
76
* work well for content-centric websites.
87
*/
98

10-
119
/* You can override the default Infima variables here. */
1210

1311
:root {
14-
--ifm-color-primary: #0288D1;
12+
--ifm-color-primary: #0288d1;
1513
--ifm-color-primary-dark: rgb(33, 175, 144);
1614
--ifm-color-primary-darker: rgb(31, 165, 136);
1715
--ifm-color-primary-darkest: rgb(26, 136, 112);
@@ -20,7 +18,7 @@
2018
--ifm-color-primary-lightest: rgb(146, 224, 208);
2119
--ifm-code-font-size: 95%;
2220
--ifm-color-feedback-background: #fff;
23-
--dhx-color-brand: #2095F3;
21+
--dhx-color-brand: #2095f3;
2422
--ifm-hr-border-color: var(--ifm-color-emphasis-200);
2523
--ifm-list-item-margin: 0.7rem;
2624
}
@@ -30,7 +28,7 @@
3028
/* h1 */
3129

3230
.docTitle_node_modules-\@docusaurus-theme-classic-lib-theme-DocItem- {
33-
font-size: 2rem!important;
31+
font-size: 2rem !important;
3432
}
3533

3634
.markdown > h1 {
@@ -39,19 +37,18 @@
3937

4038
/* h2 */
4139

42-
.markdown>h2 {
40+
.markdown > h2 {
4341
--ifm-h2-font-size: 2rem;
4442
}
4543

4644
/* h3 */
4745

48-
.markdown>h3 {
46+
.markdown > h3 {
4947
--ifm-h3-font-size: 1.5rem;
5048
}
5149

5250
/* end typography */
5351

54-
5552
/* Search input styles */
5653

5754
.rel_date {
@@ -62,7 +59,7 @@
6259

6360
.DocSearch-Button {
6461
order: -1;
65-
margin-right: 10px!important;
62+
margin-right: 10px !important;
6663
}
6764

6865
.DocSearch-Button-Placeholder {
@@ -99,18 +96,17 @@
9996

10097
/* end imgs */
10198

102-
10399
/* Change the appearance of mobile navigation */
104100

105101
@media (max-width: 996px) {
106102
.navbar__toggle {
107-
display: block;
103+
display: block;
108104
}
109105
.menu--responsive .menu__button {
110-
border-radius: 100px;
111-
padding: 15px;
112-
background: var(--dhx-color-brand);
113-
color: var(--ifm-color-feedback-background);
106+
border-radius: 100px;
107+
padding: 15px;
108+
background: var(--dhx-color-brand);
109+
color: var(--ifm-color-feedback-background);
114110
}
115111
}
116112

@@ -119,105 +115,108 @@
119115
/* for Code Snippet iframe */
120116

121117
.snippet_iframe {
122-
border: 1px solid var(--ifm-hr-border-color);
123-
margin-bottom: var(--ifm-leading);
124-
border-radius: 5px;
118+
border: 1px solid var(--ifm-hr-border-color);
119+
margin-bottom: var(--ifm-leading);
120+
border-radius: 5px;
125121
}
126122

127123
/* end for Code Snippet iframe */
128124

129125
/* small code block */
130126

131127
code {
132-
border-radius: 5px;
133-
padding: 2px 8px;
134-
font-weight: 600;
128+
border-radius: 5px;
129+
padding: 2px 8px;
130+
font-weight: 600;
135131
}
136132

137133
/* end small code block */
138134

139135
/* styles for block of code */
140136

141-
142-
/* specify code box background */
137+
/* specify code box background */
143138
.codeBlockLines_node_modules-\@docusaurus-theme-classic-lib-theme-CodeBlock-Content-styles-module {
144139
/*background-color: rgb(90, 86, 86);*/
145140
}
146-
/* specify the comment text color */
141+
/* specify the comment text color */
147142
span.token.comment {
148-
color: rgb(12, 121, 8) !important;
149-
}
150-
/* specify the comment background color */
143+
color: rgb(12, 121, 8) !important;
144+
}
145+
/* specify the comment background color */
151146
span.token-line.theme-code-block-highlighted-line {
152-
background-color: rgba(225, 212, 212, 0.075);
147+
background-color: rgba(225, 212, 212, 0.075);
153148
}
154149

155150
/* end styles for block of code */
156151

157152
/* list */
158153

159154
.markdown ul li {
160-
margin-top: 10px;
161-
margin-bottom: 10px;
162-
line-height: 2;
155+
margin-top: 10px;
156+
margin-bottom: 10px;
157+
line-height: 2;
163158
}
164159

165160
::marker {
166-
color: #9c9c9c;
161+
color: #9c9c9c;
167162
}
168163

169164
/* end list */
170165

171166
/* buttons */
172167

173-
.support_btn{
174-
font-size: 16pt;
175-
color: rgb(53, 148, 243);
176-
background-color: transparent;
177-
border: 1px solid rgba(53, 148, 243, 0.692);;
178-
border-radius: 5px;
179-
width: 280px;
180-
height: 50px;
181-
margin-bottom: 30px;
168+
.support_btn {
169+
font-size: 16pt;
170+
color: rgb(53, 148, 243);
171+
background-color: transparent;
172+
border: 1px solid rgba(53, 148, 243, 0.692);
173+
border-radius: 5px;
174+
width: 280px;
175+
height: 50px;
176+
margin-bottom: 30px;
182177
}
183178

184-
.support_btn:hover{
185-
background-color: rgba(53, 148, 243, 0.692);
186-
color: white;
179+
.support_btn:hover {
180+
background-color: rgba(53, 148, 243, 0.692);
181+
color: white;
187182
}
188183

189184
.support_btn > a {
190-
text-decoration: none;
191-
color: inherit;
185+
text-decoration: none;
186+
color: inherit;
192187
}
193188

194189
/* buttons end */
195190

196-
197191
/* styles for tables */
198192

199193
table {
200-
width: 100%;
201-
display: inline-table;
194+
width: 100%;
195+
display: inline-table;
202196
}
203197
table th:first-child {
204-
width: 25%;
198+
width: 25%;
205199
}
206200

207201
/* end styles for tables */
208202

209203
/* styles for infoblock */
210204

211205
.admonition-content > p {
212-
line-height: 5;
206+
line-height: 5;
213207
}
214208

215209
.admonition {
216-
margin-top: 15px;
210+
margin-top: 15px;
217211
}
218212

219213
/* end styles for infoblock */
220214

221215
p {
222-
line-height: 2;
223-
}
216+
line-height: 2;
217+
}
218+
.img_border {
219+
border: 1px solid rgb(215, 212, 212);
220+
max-width: 100%;
221+
padding: 2px;
222+
}

0 commit comments

Comments
 (0)