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

Commit

Permalink
Merge pull request #1827 from ckeditor/i/6356
Browse files Browse the repository at this point in the history
Docs: Extended `Model#deleteContent()` docs with an information about the direction option (see ckeditor/ckeditor5#6356, ckeditor/ckeditor5#6355).
  • Loading branch information
Reinmar committed Mar 4, 2020
2 parents 0e2f02e + a1aeec8 commit 3564ce5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/model/model.js
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,10 @@ export default class Model {
* **Note:** if there is no valid position for the selection, the paragraph will always be created:
*
* `[<image src="foo.jpg"></image>]` -> `<paragraph>[]</paragraph>`.
*
* @param {'forward'|'backward'} [options.direction='backward'] The direction in which the content is being consumed.
* Deleting backward corresponds to using the <kbd>Backspace</kbd> key, while deleting content forward corresponds to
* the <kbd>Shift</kbd>+<kbd>Backspace</kbd> keystroke.
*/
deleteContent( selection, options ) {
deleteContent( this, selection, options );
Expand Down

0 comments on commit 3564ce5

Please sign in to comment.