Skip to content

Instantly share code, notes, and snippets.

@kitzberger
Last active July 1, 2026 09:33
Show Gist options
  • Select an option

  • Save kitzberger/f4eb73dd9b8ea0005e0a92130aeb0326 to your computer and use it in GitHub Desktop.

Select an option

Save kitzberger/f4eb73dd9b8ea0005e0a92130aeb0326 to your computer and use it in GitHub Desktop.
TYPO3 CKeditor: Disable certain fields in table/cell dialogs
/* Hide all cell properties fields except 'width' */
.ck-table-cell-properties-form .ck-table-form__border-row,
.ck-table-cell-properties-form .ck-table-form__background-row,
.ck-table-cell-properties-form .ck-table-form__alignment-row,
.ck-table-cell-properties-form .ck-table-form__dimensions-row .ck-table-form__dimensions-row__height,
.ck-table-cell-properties-form .ck-table-form__dimensions-row .ck-table-form__dimension-operator,
.ck-table-cell-properties-form .ck-table-cell-properties-form__padding-row,
.ck-table-cell-properties-form .ck-table-cell-properties-form__alignment-row
{
display: none !important;
}
# works with ckeditor version 4 only!
editor:
config:
disallowedContent: {
table: {
styles: 'width,height',
attributes: 'border,align,cellspacing,cellpadding'
},
td: {
styles: 'width,height,white-space,text-align,vertical-align,background-color,border-color'
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment