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

Commit

Permalink
Docs: Added the direction option to the Model#deleteContent() docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
oleq committed Mar 2, 2020
1 parent 5fdb765 commit 5fce314
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>Delete</kbd> key, while deleting content forward corresponds to
* the <kbd>Shift</kbd>+<kbd>Delete</kbd> keystroke.
*/
deleteContent( selection, options ) {
deleteContent( this, selection, options );
Expand Down

0 comments on commit 5fce314

Please sign in to comment.