Question

2
Replies
1090
Views
KhamaalE6049 Member since 2016 7 posts
Alpharetta Consulting
Posted: 3 years ago
Last activity: 3 years 5 months ago
Closed

Set Default Font Size in Rich Text Editor

RE: SA ID: SA-11192

https://pdn.pega.com/support-articles/procedure-set-default-font-size-r…

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***

User Interface
Moderation Team has archived post
Share this page LinkedIn