Question

2
Replies
1188
Views
Close popover
Khamaal Edwards (KhamaalE6049)
Alpharetta Consulting

Alpharetta Consulting
US
KhamaalE6049 Member since 2016 7 posts
Alpharetta Consulting
Posted: March 20, 2017
Last activity: March 22, 2017
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-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***

User Experience
Moderation Team has archived post