Constructor.
element to wrap
Get first child, if any.
Returns the first existing <tbody> element, if available.
Returns the last existing <tbody> element, if available.
Signals, if native HTMLTableElement API is used.
Get owner document.
Returns all direct rows in the table, either as direct children of
<table> or within one of the table sections <thead>, <tbody>, or
<tfoot>.
In contrast to HTMLTableElement.rows the result is static.
Returns all existing direct table sections.
Returns all <tbody> elements, which are available as snapshot.
Note, that while in HTML a table may have multiple <tbody> elements,
CoreMedia RichText 1.0 may have only one element.
Returns the <thead> element, if available.
Returns the <thead> element, if available.
Creates a new <tbody> associated to current table. If multiple
<tbody> elements exist, the new one is placed after the existing
ones.
If no <tfoot> is existing yet, a <tfoot> will be created.
Otherwise, the existing <tfoot> will be returned.
If no <thead> is existing yet, a <thead> will be created.
Otherwise, the existing <thead> will be returned.
Deletes a possibly existing <tfoot>.
Deletes a possibly existing <thead>.
If no <tbody> is existing yet, a <tbody> element will be created.
Otherwise, the first existing <tbody> will be returned.
Merges all sections in table into one <tbody> element. Note, that
this removes any <thead> and <tfoot> sections. For processing such
as in CKEditor 5 data-processing you may want to mark corresponding rows
before, that they originally belonged to <thead> or <tfoot> like
applying a reserved class.
Merges possibly existing multiple <tbody> into one.
Note, that while HTML supports multiple <tbody> elements,
CoreMedia Rich Text 1.0 does not.
Moves all rows containing a given class name to <tfoot> section.
class name to select row elements to move
if to remove the denoting class name from class list
Moves all rows containing a given class name to <thead> section.
class name to select row elements to move
if to remove the denoting class name from class list
Retrieve all direct children and direct children of all sections that match the given selectors.
selectors to match
Removes any table sections, which are possibly empty after processing.
Convenience wrapper for tables in different schemas. While for HTML schemas as used for data view representation in CKEditor 5 high level methods can be used to modify a table (
HTMLTableElement), the same convenience cannot be used for<table>elements as retrieved via CoreMedia Rich Text 1.0 data.This wrapper will provide similar convenience for both, like, for example, creating
<tbody>elements, accessing<thead>elements, etc.