Skip to content

Commit 7d629b2

Browse files
DOC-3243: Add table_default_header_rows and table_default_header_cols options to release notes and table options (#4011)
* TINY-13391: Add table_default_header_rows and table_default_header_cols options to release notes and table options * Update modules/ROOT/pages/8.4.0-release-notes.adoc * Update modules/ROOT/pages/8.4.0-release-notes.adoc Co-authored-by: Sorita Heng <69398037+soritaheng@users.noreply.github.com> --------- Co-authored-by: Sorita Heng <69398037+soritaheng@users.noreply.github.com>
1 parent e63bfb0 commit 7d629b2

4 files changed

Lines changed: 46 additions & 0 deletions

File tree

modules/ROOT/pages/8.4.0-release-notes.adoc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,12 @@ For information on using Enhanced Skins & Icon Packs, see: xref:enhanced-skins-a
195195

196196
{productname} {release-version} also includes the following addition<s>:
197197

198+
=== New `table_default_header_rows` and `table_default_header_cols` options to set the default header size for new tables
199+
// #TINY-13391
200+
201+
Previously, integrators had no way to set default header rows and columns when creating tables through the editor UI. This affected the accessibility of tables and required manual intervention for integrators aiming to meet accessibility standards. The new xref:table-options.adoc#table_default_header_rows[`+table_default_header_rows+`] and xref:table-options.adoc#table_default_header_cols[`+table_default_header_cols+`] options enable integrators to set the number of default header rows and columns for new tables created through the editor's UI, providing a supported way to meet accessibility requirements.
202+
203+
198204
=== <TINY-vwxyz 1 changelog entry>
199205
// #TINY-vwxyz1
200206

modules/ROOT/pages/table-options.adoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ include::partial$configuration/table_default_attributes.adoc[leveloffset=+1]
2020

2121
include::partial$configuration/table_default_styles.adoc[leveloffset=+1]
2222

23+
include::partial$configuration/table_default_header_rows.adoc[leveloffset=+1]
24+
25+
include::partial$configuration/table_default_header_cols.adoc[leveloffset=+1]
26+
2327
== Interacting with tables
2428

2529
include::partial$configuration/table_clone_elements.adoc[leveloffset=+1]
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[[table_default_header_cols]]
2+
== `+table_default_header_cols+`
3+
4+
The `+table_default_header_cols+` option sets the number of default header columns for new tables created through the editor UI (for example, via the table picker or insert table dialog). This helps integrators meet accessibility standards by ensuring new tables have header columns by default without manual intervention.
5+
6+
*Type:* `+Number+`
7+
8+
*Default value:* `+0+`
9+
10+
=== Example: using `+table_default_header_cols+`
11+
12+
[source,js]
13+
----
14+
tinymce.init({
15+
selector: 'textarea', // change this value according to your HTML
16+
table_default_header_cols: 1
17+
});
18+
----
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[[table_default_header_rows]]
2+
== `+table_default_header_rows+`
3+
4+
The `+table_default_header_rows+` option sets the number of default header rows for new tables created through the editor UI (for example, via the table picker or insert table dialog). This helps integrators meet accessibility standards by ensuring new tables have header rows by default without manual intervention.
5+
6+
*Type:* `+Number+`
7+
8+
*Default value:* `+0+`
9+
10+
=== Example: using `+table_default_header_rows+`
11+
12+
[source,js]
13+
----
14+
tinymce.init({
15+
selector: 'textarea', // change this value according to your HTML
16+
table_default_header_rows: 1
17+
});
18+
----

0 commit comments

Comments
 (0)