Constructor.
element to wrap
Error, if the given element is no <table>
.
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.
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.
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.