Rich text editor image Base64 encoding
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.