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

Commit

Permalink
Docs: use proper writer methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotr Jasiun committed Feb 16, 2018
1 parent 08eb9c9 commit 8a07e76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/view/element.js
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ export default class Element extends Node {
*
* For example:
*
* const element = new ViewElement( 'foo', {
* const element = writer.createContainerElement( 'foo', {
* banana: '10',
* apple: '20',
* style: 'color: red; border-color: white;',
Expand Down
2 changes: 1 addition & 1 deletion src/view/writer.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default class Writer {
* writer.setSelection( position );
*
* // Sets collapsed range on the given item.
* const paragraph = writer.createElement( 'paragraph' );
* const paragraph = writer.createContainerElement( 'paragraph' );
* writer.setSelection( paragraph, offset );
*
* // Removes all ranges.
Expand Down

0 comments on commit 8a07e76

Please sign in to comment.