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

Commit

Permalink
Docs: Add default values to the selectable in insertContent().
Browse files Browse the repository at this point in the history
  • Loading branch information
jodator committed Sep 17, 2018
1 parent 63e4f18 commit aa31f0f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/model/model.js
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ export default class Model {
* @param {module:engine/model/documentfragment~DocumentFragment|module:engine/model/item~Item} content The content to insert.
* @param {module:engine/model/selection~Selection|module:engine/model/documentselection~DocumentSelection|
* module:engine/model/position~Position|module:engine/model/element~Element|
* Iterable.<module:engine/model/range~Range>|module:engine/model/range~Range|null} [selectable]
* Iterable.<module:engine/model/range~Range>|module:engine/model/range~Range|null} [selectable=model.document.selection]
* Selection into which the content should be inserted. If not provided the current model document selection will be used.
*/
insertContent( content, selectable ) {
Expand Down
2 changes: 1 addition & 1 deletion src/model/utils/insertcontent.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import Selection from '../selection';
* @param {module:engine/model/documentfragment~DocumentFragment|module:engine/model/item~Item} content The content to insert.
* @param {module:engine/model/selection~Selection|module:engine/model/documentselection~DocumentSelection|
* module:engine/model/position~Position|module:engine/model/element~Element|
* Iterable.<module:engine/model/range~Range>|module:engine/model/range~Range|null} [selectable]
* Iterable.<module:engine/model/range~Range>|module:engine/model/range~Range|null} [selectable=model.document.selection]
* Selection into which the content should be inserted.
*/
export default function insertContent( model, content, selectable ) {
Expand Down

0 comments on commit aa31f0f

Please sign in to comment.