|
|
@@ -318,7 +318,7 @@ export default class Schema {
|
|
|
* const text = writer.createText( 'foo' );
|
|
|
* schema.isSelectable( text ); // -> false
|
|
|
*
|
|
|
- * See the {@glink framework/guides/deep-dive/schema#TODO Selectable elements} section of the Schema deep dive}
|
|
|
+ * See the {@glink framework/guides/deep-dive/schema#selectable-elements Selectable elements} section of the Schema deep dive}
|
|
|
* guide for more details.
|
|
|
*
|
|
|
* @param {module:engine/model/item~Item|module:engine/model/schema~SchemaContextItem|String} item
|
|
|
@@ -345,7 +345,7 @@ export default class Schema {
|
|
|
* const text = writer.createText( 'foo' );
|
|
|
* schema.isContent( text ); // -> true
|
|
|
*
|
|
|
- * See the {@glink framework/guides/deep-dive/schema#TODO Content elements} section of the Schema deep dive}
|
|
|
+ * See the {@glink framework/guides/deep-dive/schema#content-elements Content elements} section of the Schema deep dive}
|
|
|
* guide for more details.
|
|
|
*
|
|
|
* @param {module:engine/model/item~Item|module:engine/model/schema~SchemaContextItem|String} item
|
|
|
@@ -1239,6 +1239,25 @@ mix( Schema, ObservableMixin );
|
|
|
*
|
|
|
* Read more about the object elements in the
|
|
|
* {@glink framework/guides/deep-dive/schema#object-elements Object elements} section of the Schema deep dive} guide.
|
|
|
+ *
|
|
|
+ * @property {Boolean} isSelectable
|
|
|
+ * `true` when an element should be selectable as a whole by the user. Examples of selectable elements: `image`, `table`, `tableCell`, etc.
|
|
|
+ *
|
|
|
+ * **Note:** An object is also a selectable element, so
|
|
|
+ * {@link module:engine/model/schema~Schema#isSelectable `isSelectable()`} returns `true` for object elements automatically.
|
|
|
+ *
|
|
|
+ * Read more about selectable elements in the
|
|
|
+ * {@glink framework/guides/deep-dive/schema#selectable-elements Selectable elements} section of the Schema deep dive} guide.
|
|
|
+ *
|
|
|
+ * @property {Boolean} isContent
|
|
|
+ * An item is a content when it always finds its way to editor data output regardless of the number and type of its descendants.
|
|
|
+ * Examples of content elements: `$text`, `image`, `table`, etc. (but not `paragraph`, `heading1` or `tableCell`).
|
|
|
+ *
|
|
|
+ * **Note:** An object is also a content element, so
|
|
|
+ * {@link module:engine/model/schema~Schema#isContent `isContent()`} returns `true` for object elements automatically.
|
|
|
+ *
|
|
|
+ * Read more about content elements in the
|
|
|
+ * {@glink framework/guides/deep-dive/schema#content-elements Content elements} section of the Schema deep dive} guide.
|
|
|
*/
|
|
|
|
|
|
/**
|