MDL-76569 editor_tiny: Set table row header style

Configure Tiny to use markup of:

table > thead > tr > th

For all table headers.
This commit is contained in:
Andrew Nicols
2022-12-05 20:49:17 +08:00
parent 1d863c338a
commit aea298513e
3 changed files with 7 additions and 2 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+5
View File
@@ -242,6 +242,11 @@ const getStandardConfig = (target, tinyMCE, options, plugins) => {
// https://www.tiny.cloud/docs/tinymce/6/statusbar-configuration-options/#branding
branding: options.branding,
// Put th cells in a thead element.
// https://www.tiny.cloud/docs/tinymce/6/table-options/#table_header_type
// eslint-disable-next-line camelcase
table_header_type: 'sectionCells',
setup: (editor) => {
Options.register(editor, options);
},