Skip to content

Commit b7d727a

Browse files
[update] minor fixes
1 parent 403e3a6 commit b7d727a

6 files changed

Lines changed: 2 additions & 773 deletions

File tree

docs/api/events.md

Lines changed: 0 additions & 138 deletions
This file was deleted.

docs/api/internal/detach.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,22 +28,19 @@ The full list of RichText internal events can be found [**here**](/category/rich
2828

2929
### Example
3030

31-
~~~jsx {16-17}
31+
~~~jsx {13-14}
3232
// initialize RichText
3333
const editor = new richtext.Richtext("#root", {
3434
// configuration parameters
3535
});
36-
3736
// subscribe on the "set-font-size" event
3837
editor.api.on("set-font-size", (obj) => {
3938
console.log(obj.fontSize);
4039
});
41-
4240
// set the text font size
4341
editor.api.exec("set-font-size", {
4442
fontSize: "36px"
4543
});
46-
4744
// detach the "set-font-size" event
4845
editor.api.detach("set-font-size");
4946
~~~

docs/api/methods/get-value.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const HTMLEncoder = richtext.text.toHTML; // html encoder
2929

3030
### Example
3131

32-
~~~jsx {6-7}
32+
~~~jsx {6-8}
3333
const editor = new richtext.Richtext("#root", {
3434
value: "Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque faucibus ex sapien vitae pellentesque sem placerat. In id cursus mi pretium tellus duis convallis. Tempus leo eu aenean sed diam urna tempor. Pulvinar vivamus fringilla lacus nec metus bibendum egestas. Iaculis massa nisl malesuada lacinia integer nunc posuere. Ut hendrerit semper vel class aptent taciti sociosqu. Ad litora torquent per conubia nostra inceptos himenaeos." // sets the default value (HTML format)
3535
// other parameters

docs/guides/angular_integration.md

Lines changed: 0 additions & 200 deletions
This file was deleted.

0 commit comments

Comments
 (0)