Skip to content

Commit e87ed57

Browse files
[update] minor style changes
1 parent 2b8eb42 commit e87ed57

63 files changed

Lines changed: 334 additions & 713 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/api/config/default-styles.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ defaultStyles?: boolean | {
7474
:::important
7575
The `defaultStyles` property DOES NOT set the actual CSS to the affected blocks. CSS styles have to be applied separately:
7676

77-
```html{12-19}
77+
```jsx title="index.js"
7878
new richtext.Richtext("#root", {
7979
defaultStyles: {
8080
h2: {
@@ -85,7 +85,9 @@ new richtext.Richtext("#root", {
8585
}
8686
}
8787
});
88+
```
8889

90+
```css title="index.css"
8991
<style>
9092
#container h2 {
9193
font-family: Roboto;
@@ -130,8 +132,8 @@ new richtext.Richtext("#root", {
130132
h6: {
131133
"font-size": "13px"
132134
}
133-
}
134-
// other parameters
135+
},
136+
// other configuration properties
135137
});
136138
~~~
137139

docs/api/config/fullscreen-mode.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ fullscreenMode: false;
2828
// initialize RichText
2929
new richtext.Richtext("#root", {
3030
fullscreenMode: true
31-
// other parameters
31+
// other configuration properties
3232
});
3333
~~~
3434

docs/api/config/image-upload-url.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ imageUploadUrl?: string;
2222
// initialize RichText
2323
new richtext.Richtext("#root", {
2424
imageUploadUrl: "some URL"
25-
// other parameters
25+
// other configuration properties
2626
});
2727
~~~
2828

docs/api/config/layout-mode.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ layoutMode: "classic";
3030
// initialize RichText
3131
new richtext.Richtext("#root", {
3232
layoutMode: "document" // initializes RichText with "document" mode by default
33-
// other parameters
33+
// other configuration properties
3434
});
3535
~~~
3636

docs/api/config/locale.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const editor = new richtext.RichText("#root", {
3636
locale: richtext.locale.cn // the Chineese locale will be set initially
3737
// locale: richtext.locale.en // the English locale will be set initially
3838
// locale: richtext.locale.de // the Germany locale will be set initially
39-
// other parameters
39+
// other configuration properties
4040
});
4141
~~~
4242

docs/api/config/menubar.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ menubar?: boolean;
2222
// initialize RichText
2323
new richtext.Richtext("#root", {
2424
menubar: true
25-
// other parameters
25+
// other configuration properties
2626
});
2727
~~~
2828

docs/api/config/toolbar.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ new richtext.Richtext("#root", {
6262
"separator",
6363
// other buttons
6464
],
65-
// other parameters
65+
// other configuration properties
6666
});
6767
~~~
6868

@@ -96,7 +96,7 @@ new richtext.Richtext("#root", {
9696
},
9797
// other custom buttons
9898
],
99-
// other parameters
99+
// other configuration properties
100100
});
101101
~~~
102102

@@ -107,7 +107,7 @@ If you need to hide toolbar, set the `toolbar` property to `false` as follows:
107107
~~~jsx {2}
108108
new richtext.Richtext("#root", {
109109
toolbar: false
110-
// other parameters
110+
// other configuration properties
111111
});
112112
~~~
113113

@@ -171,7 +171,7 @@ new richtext.Richtext("#root", {
171171
handler: () => ..., // custom logic attached to this button
172172
}
173173
]
174-
// other parameters
174+
// other configuration properties
175175
});
176176
~~~
177177

docs/api/config/value.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ value?: string;
2525
~~~jsx {2}
2626
new richtext.Richtext("#root", {
2727
value: "<h1>some value</h1>" // sets the default value (HTML format)
28-
// other parameters
28+
// other configuration properties
2929
});
3030
~~~
3131

docs/api/events/align.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ For handling inner events you can use [**Event Bus methods**](/category/event-bu
3333
~~~jsx {5-12}
3434
// initialize RichText
3535
const editor = new richtext.Richtext("#root", {
36-
// configuration parameters
36+
// configuration properties
3737
});
3838
// subscribe on the "align" event
3939
editor.api.on("align", (obj) => {

docs/api/events/clear-text-format.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ For handling inner events you can use [**Event Bus methods**](/category/event-bu
2525
~~~jsx {5-10}
2626
// initialize RichText
2727
const editor = new richtext.Richtext("#root", {
28-
// configuration parameters
28+
// configuration properties
2929
});
3030
// subscribe on the "clear-text-format" event
3131
editor.api.on("clear-text-format", () => {

0 commit comments

Comments
 (0)