Question

1
Replies
832
Views
NizamuddinM Member since 2014 1 post
Agora Group
Posted: 2 years ago
Last activity: 2 years 10 months ago
Closed

Need to customize CKEditor

Hi All,

I need to customize the default behavior of CKEditor. I have used the below code in a non-autogenerated section and included in the section where the CKEditor is launched. I added this in UserWorkForm also. But I was not able to find the CKEditor object though the CKEditor is opened on my screen. I tried with many different options. Let me know if I am missing something. Pega version: 7.2.1

<script>

CKEDITOR.config.font_defaultLabel = 'Georgia';
CKEDITOR.config.fontSize_defaultLabel = '20px';

CKEDITOR.on( 'instanceReady', function(ev) {

alert("hello");
ev.editor.window.$.document.body.style.fontFamily = "Georgia";
ev.editor.window.$.document.body.style.fontSize = "20px";

});
</script>

Regards,

Nizam

Low-Code App Development Data Integration User Interface
Moderation Team has archived post
Share this page LinkedIn