Question
Virtusa
LK
Last activity: 4 Jul 2023 10:29 EDT
Rich Text Editor Control
I want to add a large content of text and add images using rich text editor.Also, want to format the text and view those text and added images in another section. I want to know how to handle large content of text and how to handle images in rich text editor
-
Reply
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Updated: 4 Jul 2023 10:29 EDT
virtusa
LK
1. Open the Pega Rich Text Editor where you want to insert the image. This editor is typically used in Pega Platform applications for creating or editing content.
2. Locate the toolbar at the top of the Rich Text Editor. It contains various formatting options.
3. Look for an icon that represents image insertion. It might resemble a picture frame or a landscape image. Click on this icon to initiate the image insertion process.
4. A dialog box or a popup window will appear, allowing you to specify the details of the image you want to insert. The options may include:
- - Image Source: Specify the source of the image. You can choose to upload an image from your local device or provide a URL to an image hosted online.
- - Image Description: Provide a brief description or alt text for the image. This text is used by screen readers or when the image cannot be displayed.
- - Image Alignment: Choose how the image should be aligned within the text. Options may include left, right, center, or justified.
- - Image Size: You may have options to set the dimensions of the image or choose from predefined sizes.
5. Once you have configured the image details, click the "Insert" or "OK" button to insert the image into the Rich Text Editor.
1. Open the Pega Rich Text Editor where you want to insert the image. This editor is typically used in Pega Platform applications for creating or editing content.
2. Locate the toolbar at the top of the Rich Text Editor. It contains various formatting options.
3. Look for an icon that represents image insertion. It might resemble a picture frame or a landscape image. Click on this icon to initiate the image insertion process.
4. A dialog box or a popup window will appear, allowing you to specify the details of the image you want to insert. The options may include:
- - Image Source: Specify the source of the image. You can choose to upload an image from your local device or provide a URL to an image hosted online.
- - Image Description: Provide a brief description or alt text for the image. This text is used by screen readers or when the image cannot be displayed.
- - Image Alignment: Choose how the image should be aligned within the text. Options may include left, right, center, or justified.
- - Image Size: You may have options to set the dimensions of the image or choose from predefined sizes.
5. Once you have configured the image details, click the "Insert" or "OK" button to insert the image into the Rich Text Editor.
6. The image should now be inserted at the current cursor position within the editor.
7. To further adjust the image or apply additional formatting, you can select the image and use the formatting options available in the Rich Text Editor toolbar. These options may include resizing, aligning, and applying styles to the image.
8. After you have finished editing the content in the Rich Text Editor, save or publish your changes based on the application's workflow.
======================================================================================
From Pega 8.3 onwards, when you insert an image into RTE, system creates a Base64 code of the image and appends the entire strings within the property. You can confirm this from clipboard (src="data:image/jpeg;base64,…).
You can configure Image uploader from RTE control settings. This functionality is disabled by default and you need to turn on "Image" checkbox in the toolbar options.
Virtusa
LK
I was able to paste the content but not the images. However without images I tried to add large content of text but its not working, I want to know how I will be able to add large content of data to the database using RTE
LTIMindtree Limited
US
1.In Pega, you can add a Rich Text Editor control to a dynamic layout, which enables application users to add and edit rich text.
You can configure the Rich Text Editor toolbar, enabling users to insert additional elements,
such as text, tables, images, and indentation. When users paste an image, Pega creates a new Data-Content-Image object and stores its content in the database (i.e. base 64 encoded images).
2.if you want to handle large content of text and your Ui is disturbing then ... to fix the issue you need to add scroller CSS attributes in skin. it would help by providing a smooth scroller bar and you can handle your large content of text beautifully.
mark it as solved if it clears your query.
Accepted Solution
Updated: 4 Jul 2023 10:29 EDT
virtusa
LK
1. Open the Pega Rich Text Editor where you want to insert the image. This editor is typically used in Pega Platform applications for creating or editing content.
2. Locate the toolbar at the top of the Rich Text Editor. It contains various formatting options.
3. Look for an icon that represents image insertion. It might resemble a picture frame or a landscape image. Click on this icon to initiate the image insertion process.
4. A dialog box or a popup window will appear, allowing you to specify the details of the image you want to insert. The options may include:
- - Image Source: Specify the source of the image. You can choose to upload an image from your local device or provide a URL to an image hosted online.
- - Image Description: Provide a brief description or alt text for the image. This text is used by screen readers or when the image cannot be displayed.
- - Image Alignment: Choose how the image should be aligned within the text. Options may include left, right, center, or justified.
- - Image Size: You may have options to set the dimensions of the image or choose from predefined sizes.
5. Once you have configured the image details, click the "Insert" or "OK" button to insert the image into the Rich Text Editor.
1. Open the Pega Rich Text Editor where you want to insert the image. This editor is typically used in Pega Platform applications for creating or editing content.
2. Locate the toolbar at the top of the Rich Text Editor. It contains various formatting options.
3. Look for an icon that represents image insertion. It might resemble a picture frame or a landscape image. Click on this icon to initiate the image insertion process.
4. A dialog box or a popup window will appear, allowing you to specify the details of the image you want to insert. The options may include:
- - Image Source: Specify the source of the image. You can choose to upload an image from your local device or provide a URL to an image hosted online.
- - Image Description: Provide a brief description or alt text for the image. This text is used by screen readers or when the image cannot be displayed.
- - Image Alignment: Choose how the image should be aligned within the text. Options may include left, right, center, or justified.
- - Image Size: You may have options to set the dimensions of the image or choose from predefined sizes.
5. Once you have configured the image details, click the "Insert" or "OK" button to insert the image into the Rich Text Editor.
6. The image should now be inserted at the current cursor position within the editor.
7. To further adjust the image or apply additional formatting, you can select the image and use the formatting options available in the Rich Text Editor toolbar. These options may include resizing, aligning, and applying styles to the image.
8. After you have finished editing the content in the Rich Text Editor, save or publish your changes based on the application's workflow.
======================================================================================
From Pega 8.3 onwards, when you insert an image into RTE, system creates a Base64 code of the image and appends the entire strings within the property. You can confirm this from clipboard (src="data:image/jpeg;base64,…).
You can configure Image uploader from RTE control settings. This functionality is disabled by default and you need to turn on "Image" checkbox in the toolbar options.