Question
Agora Group
IN
Last activity: 1 Nov 2017 22:54 EDT
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