Allow the omission of font sizes in inline styles #29425
Labels
CSS Styling
Related to editor and front end styles, CSS-specific issues.
[Type] Enhancement
A suggestion for improvement.
What problem does this address?
The problem is that the inline styles in the editor have fixed pixel values which can only be overwritten by !important. Since I don't want to write my code twice, and my themes are based on different font sizes depending on breakpoints, the current solution is suboptimal. I can adjust the values in the editor-font-sizes array to match the em-sizes - but doing this manually for each new website is extremely cumbersome and error-prone. In addition, the fonts do not scale with the mobile previews, which would already happen with the new font size of the wrapper.
What is your proposed solution?
It would be good to be able to specify the font sizes in the editor-font-sizes array as em, but I understand that this is extremely difficult to implement.
It would already help me if one could basically specify not to get font sizes as inline styles in the editor. This way I could set default values of 12, 14, 16 etc., which then don't necessarily have to be adjusted for new websites though, as the values would then only refer to the sizes in the font-sizes dropdowns and thus no longer have any influence on the design.
Just found a comment of mine that addresses this point: #6454 (comment) As you can see from the whole discussion, many would benefit from the option, as the default sizes can then simply be overwritten via the editor stylesheet without having to use !important for every breakpoint.
The text was updated successfully, but these errors were encountered: