Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
In your TinyMCE configuration, just clear table_default_attributes
, like this:
[ModuleDependency(typeof(TinyMceInitialization))]
public class TinyMceSettingsInitialization : IConfigurableModule
{
public void ConfigureContainer(ServiceConfigurationContext context)
{
context.Services.Configure<TinyMceConfiguration>(config =>
{
var tableSettings = new Dictionary<string, object>
{
{ "table_default_attributes", new {}}
};
config.Default().RawSettings(tableSettings);
});
}
}
Or, maybe better:
[ModuleDependency(typeof(TinyMceInitialization))]
public class TinyMceSettingsInitialization : IConfigurableModule
{
public void ConfigureContainer(ServiceConfigurationContext context)
{
context.Services.Configure<TinyMceConfiguration>(config =>
{
config.Default().AddSetting("table_default_attributes", new {});
});
}
}
Yes, I added it using this syntax to to remove all default attributes and inline styles :)
.AddSetting("table_default_attributes", new { })
.AddSetting("table_default_styles", new { });
When adding a table using the editor, border="1" automatically is added to the table. I am able to configure the border to be "0", but I would rather have the attribute removed since it is obsolete, and therefore also not WCAG 2.1 compilant. It that possible?