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

Commit

Permalink
Docs: Fixed invalid code sample. Closes ckeditor/ckeditor5#6351.
Browse files Browse the repository at this point in the history
  • Loading branch information
Reinmar committed Apr 27, 2020
1 parent 33b0228 commit e261071
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/view/rooteditableelement.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,23 +41,22 @@ export default class RootEditableElement extends EditableElement {
/**
* Checks whether this object is of the given.
*
* rootEditableElement.is( 'rootEditableElement' ); // -> true
* rootEditableElement.is( 'rootElement' ); // -> true
* rootEditableElement.is( 'editableElement' ); // -> true
* rootEditableElement.is( 'element' ); // -> true
* rootEditableElement.is( 'node' ); // -> true
* rootEditableElement.is( 'view:rootEditableElement' ); // -> true
* rootEditableElement.is( 'view:editableElement' ); // -> true
* rootEditableElement.is( 'view:element' ); // -> true
* rootEditableElement.is( 'view:node' ); // -> true
*
* rootEditableElement.is( 'model:element' ); // -> false
* rootEditableElement.is( 'documentFragment' ); // -> false
*
* Assuming that the object being checked is a root editbale element, you can also check its
* Assuming that the object being checked is a root editable element, you can also check its
* {@link module:engine/view/rooteditableelement~RootEditableElement#name name}:
*
* rootEditableElement.is( 'div' ); // -> true if this is a div root editable element
* rootEditableElement.is( 'rootEditableElement', 'div' ); // -> same as above
* rootEditableElement.is( 'rootElement', 'div' ); // -> same as above
* text.is( 'div' ); -> false
*
* {@link module:engine/view/node~Node#is Check the entire list of view objects} which implement the `is()` method.
Expand Down

0 comments on commit e261071

Please sign in to comment.