Question

1
Replies
326
Views
Close popover
Amitabha Ghosh (AmitabhaG)
Areteans

Areteans
IN
AmitabhaG Member since 2019 4 posts
Areteans
Posted: January 18, 2021
Last activity: January 20, 2021
Solved

Rich text editor image Base64 encoding

Hi,

I am working on UI for a project with Pega version 8.4.1

The default pxRichTextEditor control renders an image URL in the DOM as JPEG|PNG|GIFF... extension. But according to our requirement, we need to render as base64 image URL in the DOM.

What I found so far:

Rich Text Editor uses a js plugin of https://ckeditor.com/ckeditor-4/ library.

CKEDITOR4 doesn't have the base64 functionality and for which there is an addon for the same. The default OOTB also does not have the base64 functionality or extra plugin.

To achieve this we have to build a custom plugin.

I have followed the steps but I am stuck to fetch the image object.

Any suggestion would be highly appreciated.

Thanks in advance.

 

***Edited by Moderator: Pooja Gadige to add platform capability tag***
Pega Platform 8.4.1 Project Delivery User Experience Government User Experience Designer