Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
API docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Reinmar committed Sep 3, 2019
1 parent 3001b4e commit e1f7e8d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/model/documentselection.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,14 +233,14 @@ export default class DocumentSelection {
}

/**
* Gets elements of type "block" touched by the selection.
* Gets elements of type {@link module:engine/model/schema~Schema#isBlock "block"} touched by the selection.
*
* This method's result can be used for example to apply block styling to all blocks covered by this selection.
*
* **Note:** `getSelectedBlocks()` returns blocks that are nested in other non-block elements
* but will not return blocks nested in other blocks.
*
* In this case the function will return exactly all 3 paragraphs:
* In this case the function will return exactly all 3 paragraphs (note: `<blockQuote>` is not a block itself):
*
* <paragraph>[a</paragraph>
* <blockQuote>
Expand All @@ -252,7 +252,7 @@ export default class DocumentSelection {
*
* <paragraph>[]a</paragraph>
*
* In such scenario however, only blocks A, B & E will be returned as blocks C & D are nested in block B:
* In such a scenario, however, only blocks A, B & E will be returned as blocks C & D are nested in block B:
*
* [<blockA></blockA>
* <blockB>
Expand All @@ -261,7 +261,7 @@ export default class DocumentSelection {
* </blockB>
* <blockE></blockE>]
*
* If the selection is inside a block all the inner blocks (A & B) are returned:
* If the selection is inside a block all the inner blocks (A & B) are returned:
*
* <block>
* <blockA>[a</blockA>
Expand Down
8 changes: 4 additions & 4 deletions src/model/selection.js
Original file line number Diff line number Diff line change
Expand Up @@ -641,14 +641,14 @@ export default class Selection {
}

/**
* Gets elements of type "block" touched by the selection.
* Gets elements of type {@link module:engine/model/schema~Schema#isBlock "block"} touched by the selection.
*
* This method's result can be used for example to apply block styling to all blocks covered by this selection.
*
* **Note:** `getSelectedBlocks()` returns blocks that are nested in other non-block elements
* but will not return blocks nested in other blocks.
*
* In this case the function will return exactly all 3 paragraphs:
* In this case the function will return exactly all 3 paragraphs (note: `<blockQuote>` is not a block itself):
*
* <paragraph>[a</paragraph>
* <blockQuote>
Expand All @@ -660,7 +660,7 @@ export default class Selection {
*
* <paragraph>[]a</paragraph>
*
* In such scenario however, only blocks A, B & E will be returned as blocks C & D are nested in block B:
* In such a scenario, however, only blocks A, B & E will be returned as blocks C & D are nested in block B:
*
* [<blockA></blockA>
* <blockB>
Expand All @@ -669,7 +669,7 @@ export default class Selection {
* </blockB>
* <blockE></blockE>]
*
* If the selection is inside a block all the inner blocks (A & B) are returned:
* If the selection is inside a block all the inner blocks (A & B) are returned:
*
* <block>
* <blockA>[a</blockA>
Expand Down

0 comments on commit e1f7e8d

Please sign in to comment.