Jump to content

Is it possible to add a cap on font sizes?

Featured Replies

Posted

Hi, so, I've disabled the font size for the text editor because people abuse it pretty easily - by making text too huge to the point the page breaks. Is it possible to make it where they can only go so big with the font size? Thanks

ACP> Customizations> Themes> Your skin> Templates tab> globalTemplate

Add this to the end of the template (change the px sizes to whatever you want)-

      <script>
$( document ).ready(function() {
    if( typeof(CKEDITOR) !== "undefined" ) {
       CKEDITOR.config.fontSize_sizes = '12/12px; 14/14px; 16/16px; 18/18px';
    }
});
</script>

 

The best option would be to have this button in the editor:

tGDo0oG.png

Is there such an addon for CKEditor 4?

Or just remove the type size selector button altogether. I do that on all my sites. In discussions I see no reason whatsoever to use different sizes. 

Archived

This topic is now archived and is closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.