WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit c183827

Browse files
authored
Update transforms.md (#5819)
1.improved grammar 2.improved puntuations 3.improved the readability
1 parent a94fe72 commit c183827

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

docs/api/transforms.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ Transforms are helper functions operating on the document. They can be used in d
1111

1212
## Node options
1313

14-
All transforms support a parameter `options`. This includes options specific to the transform, and general `NodeOptions` to specify which Nodes in the document that the transform is applied to.
14+
All transforms support a parameter `options`. This includes options specific to the transform and general `NodeOptions` to specify which Nodes in the document the transform is applied to.
15+
16+
1517

1618
```typescript
1719
interface NodeOptions {
@@ -34,11 +36,11 @@ interface NodeOptions {
3436

3537
### Node transforms
3638

37-
Transforms that operate on nodes.
39+
These transforms operate on nodes.
3840

3941
#### `Transforms.insertFragment(editor: Editor, fragment: Node[], options?)`
4042

41-
Insert of fragment of nodes at the specified location or (if not defined) the current selection or (if not defined) the end of the document.
43+
Insert a fragment of nodes at the specified location or (if not defined) the current selection or (if not defined) the end of the document.
4244

4345
Options: `{at?: Location, hanging?: boolean, voids?: boolean}`
4446

@@ -95,7 +97,8 @@ Options supported: `NodeOptions & {split?: boolean}`. For `options.mode`, `'all'
9597

9698
Set properties of nodes at the specified location. If no location is specified, use the selection.
9799

98-
if `props` contains `undefined` values, the node's corresponding property will also be set to `undefined` as opposed to ignored.
100+
If `props` contains `undefined` values, the node's corresponding property will also be set to `undefined` as opposed to ignored.
101+
99102

100103
Options supported: `NodeOptions & {hanging?: boolean, split?: boolean}`. For `options.mode`, `'all'` is also supported.
101104

0 commit comments

Comments
 (0)