Skip to content

Instantly share code, notes, and snippets.

@moderatorwes
Created July 8, 2014 20:55
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save moderatorwes/55079e61a8bbe47bb22e to your computer and use it in GitHub Desktop.
Save moderatorwes/55079e61a8bbe47bb22e to your computer and use it in GitHub Desktop.
Zendesk: Change Font Size for WYSIWYG editor
/* CSS class for WYSIWYG editor */
.articlefont-small{
font-size: 12px;
}
.articlefont-medium{
font-size: 16px;
}
.articlefont-large{
font-size: 32px;
}
.articlefont-x-large{
font-size: 42px;
}
//Change WYSIWYG editor
$("span.wysiwyg-font-size-small").attr('class', 'articlefont-small');
$("span.wysiwyg-font-size-normal").attr('class', 'articlefont-medium');
$("span.wysiwyg-font-size-large").attr('class', 'articlefont-large');
$("span.wysiwyg-font-size-x-large").attr('class', 'articlefont-x-large');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment