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:15 +08:00
parent 7f5f04dbc2
commit 9e1caf81ce
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

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);
},