Question
Alpharetta Consulting
US
Last activity: 22 Mar 2017 11:16 EDT
Set Default Font Size in Rich Text Editor
RE: SA ID: SA-11192
https://pdn.pega.com/support-articles/procedure-set-default-font-size-rich-text-editor
I am attempting to set the default size in RTE with the script provided below:
<script>
CKEDITOR.config.font_defaultLabel = 'Georgia';
CKEDITOR.config.fontSize_defaultLabel = '12px';
CKEDITOR.on( 'instanceReady', function( ev ) {
ev.editor.window.$.document.body.style.fontFamily = "Georgia";
ev.editor.window.$.document.body.style.fontSize = "12px";
});
</script>
The font size is changing during input, however, the entered information is not the defaulted size when we view the information in read only. Example, if I default the size to 16, I still have to manually selected size 16 to get the size to remain at 16. Any suggestions to resolve this?
Thanks!
Khamaal
***Moderator Edit: Vidyaranjan | Updated Categories***