---
schema_version: "1"
id: 177a670131dbf58fef7c46d507425f24aab4b696e57a24cd4a7cc19177cc245c
title: Rich Text Editor
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/fields_using_html_editor.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.fields_using_html_editor.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 5b6694d7c6ac965cf1df15d81b3d815d24b7d7e76e27c5fe97f717059cd5d460
description: Use the rich text editor to format text in custom fields with the rich text area type. You can also use the rich text editor in many other features, such as Chatter publisher and groups.
products:
  - Salesforce Platform
  - Security
release: "264"
---
# Rich Text Editor

Use the rich text editor to format text in custom fields with the rich text area type. You can also use the rich text editor in many other features, such as Chatter publisher and groups.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small "><colgroup><col style="width:100%"></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: the Salesforce mobile app, Salesforce Classic, and Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: All Editions</td></tr></tbody></table>

You can perform the following operations with the rich text editor’s WYSIWYG interface.

- Format text as bold, italicized, underlined, or strikethrough
- Create bullet and numbered lists
- Change paragraph indentation
- Insert a hyperlink
- Insert an image (copying inline images from external sources and pasting them into the editor isn’t supported)
- Remove formatting

The availability of toolbar buttons varies across features. For example, the code snippet button is available in Chatter publisher but not in custom fields. Extra functions are supported for features such as Salesforce Knowledge and Ideas, like the ability to embed multimedia content.

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/images/icon_note.png)

Note Beginning in Summer ’17, custom fields provide a rich text editor that no longer uses CKEditor in Lightning Experience and the Salesforce mobile app. Rich text editors provide a WYSIWYG interface only; you can’t edit HTML tags. When you copy content from a web page or another source and paste it into the editor, unsupported tags are removed. Text that was enclosed in unsupported tags is preserved as plain text. You aren’t notified when unsupported or potentially malicious HTML tags are removed. You can expect minor formatting or styling differences when editing a rich text field across the interfaces. We recommend using the toolbar to fix formatting or styling differences.

Lightning Knowledge continues to use the CKEditor for custom rich text fields. Knowledge article rich text fields provide additional functions, such as the ability to view and edit the source HTML, support for more HTML styles, and smart links between articles.

Some features have rich text editors across Salesforce Classic, Lightning Experience, and the Salesforce mobile app. For example, the Information field in groups provides a rich text editor in all three user interfaces. The Chatter Publisher has a rich text editor only in Salesforce Classic and Lightning Experience.

   
|   | Salesforce Classic | Lightning Experience | The Salesforce Mobile App |
| --- | --- | --- | --- |
| Groups | ![Checkmark icon indicating true](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/resources-global/_corporate/images/checkmark.png) | ![Checkmark icon indicating true](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/resources-global/_corporate/images/checkmark.png) | ![Checkmark icon indicating true](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/resources-global/_corporate/images/checkmark.png) |
| Lightning Components (`ui:inputRichText` and `lightning:inputRichText`) | ![Checkmark icon indicating true](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/resources-global/_corporate/images/checkmark.png) | ![Checkmark icon indicating true](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/resources-global/_corporate/images/checkmark.png) | ![Checkmark icon indicating true](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/resources-global/_corporate/images/checkmark.png) |
| Custom Fields | ![Checkmark icon indicating true](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/resources-global/_corporate/images/checkmark.png) | ![Checkmark icon indicating true](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/resources-global/_corporate/images/checkmark.png) | ![Checkmark icon indicating true](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/resources-global/_corporate/images/checkmark.png) |
| Chatter Publisher | ![Checkmark icon indicating true](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/resources-global/_corporate/images/checkmark.png) | ![Checkmark icon indicating true](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/resources-global/_corporate/images/checkmark.png) |   |
| Knowledge Article | ![Checkmark icon indicating true](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/resources-global/_corporate/images/checkmark.png) | ![Checkmark icon indicating true](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/resources-global/_corporate/images/checkmark.png) |   |
| Lightning App Builder (Rich Text Component) | ![Checkmark icon indicating true](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/resources-global/_corporate/images/checkmark.png) | ![Checkmark icon indicating true](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/resources-global/_corporate/images/checkmark.png) |   |
| Experience Builder (Rich Content Editor) | ![Checkmark icon indicating true](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/resources-global/_corporate/images/checkmark.png) | ![Checkmark icon indicating true](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/resources-global/_corporate/images/checkmark.png) |   |
| Flow Builder | ![Checkmark icon indicating true](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/resources-global/_corporate/images/checkmark.png) | ![Checkmark icon indicating true](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/resources-global/_corporate/images/checkmark.png) |   |
| Idea Themes | ![Checkmark icon indicating true](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/resources-global/_corporate/images/checkmark.png) |   |   |
| Send Email Action |   | ![Checkmark icon indicating true](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/resources-global/_corporate/images/checkmark.png) |   |
| Sales Path |   | ![Checkmark icon indicating true](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/resources-global/_corporate/images/checkmark.png) |   |
| Notes |   | ![Checkmark icon indicating true](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/resources-global/_corporate/images/checkmark.png) | ![Checkmark icon indicating true](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/resources-global/_corporate/images/checkmark.png) |

## Rich Text Editor Considerations

When you use the editor, note the following.

- The maximum number of characters you can enter in the rich text editor is equal to the field length specified when creating or editing the field. The default is 32,768 characters, which include characters used by HTML tags that apply formatting.
- Clicked hyperlinks open in a new browser window. The rich text editor supports HTTP, HTTPS, and mailto hyperlinks.
- The rich text editor doesn’t validate hyperlinks to web pages. Confirm that you’re specifying a valid URL.
- To insert an image, click ![Insert Image](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/extend_click/images/insert_image.jpg) and either select:
    - **Web Address** and enter the URL of the image. This option isn’t available in Lightning Experience.
    - **Upload Image** and select an image from your local host. You can upload only JPEG, PNG, or GIF files. The file can’t exceed 1 MB. You can’t add a hyperlink to an image. Copying inline images from external sources to the text editor isn’t supported.Optionally, enter a description that appears when you hover over the image. The image must have a URL that Salesforce can access.
- The rich text editor supports all languages that Salesforce Knowledge supports.
- The rich text editor doesn’t support JavaScript or Cascading Style Sheets (CSS).
- The rich text editor is disabled for users who have accessibility mode enabled. It’s replaced with a text field.

## Supported Formatting

We recommend that you use the toolbar to format your content. When you copy content from a web page or another source and paste it into the editor, unsupported tags are removed. Text that was enclosed in unsupported tags is preserved as plain text. The rich text editor supports the tags listed in the table.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small "><colgroup><col style="width:33.33333333333333%"> <col style="width:33.33333333333333%"> <col style="width:33.33333333333333%"></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;"><code>&lt;a&gt;</code></td><td class="slds-cell-wrap" style="vertical-align:top;"><code>&lt;dt&gt;</code></td><td class="slds-cell-wrap" style="vertical-align:top;"><code>&lt;q&gt;</code></td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;"><code>&lt;abbr&gt;</code></td><td class="slds-cell-wrap" style="vertical-align:top;"><code>&lt;em&gt;</code></td><td class="slds-cell-wrap" style="vertical-align:top;"><code>&lt;samp&gt;</code></td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;"><code>&lt;acronym&gt;</code></td><td class="slds-cell-wrap" style="vertical-align:top;"><code>&lt;font&gt;</code></td><td class="slds-cell-wrap" style="vertical-align:top;"><code>&lt;small&gt;</code></td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;"><code>&lt;address&gt;</code></td><td class="slds-cell-wrap" style="vertical-align:top;"><code>&lt;h1&gt;</code></td><td class="slds-cell-wrap" style="vertical-align:top;"><code>&lt;span&gt;</code></td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;"><code>&lt;b&gt;</code></td><td class="slds-cell-wrap" style="vertical-align:top;"><code>&lt;h2&gt;</code></td><td class="slds-cell-wrap" style="vertical-align:top;"><code>&lt;strike&gt;</code></td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;"><code>&lt;bdo&gt;</code></td><td class="slds-cell-wrap" style="vertical-align:top;"><code>&lt;h3&gt;</code></td><td class="slds-cell-wrap" style="vertical-align:top;"><code>&lt;strong&gt;</code></td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;"><code>&lt;big&gt;</code></td><td class="slds-cell-wrap" style="vertical-align:top;"><code>&lt;h4&gt;</code></td><td class="slds-cell-wrap" style="vertical-align:top;"><code>&lt;sub&gt;</code></td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;"><code>&lt;blockquote&gt;</code></td><td class="slds-cell-wrap" style="vertical-align:top;"><code>&lt;h5&gt;</code></td><td class="slds-cell-wrap" style="vertical-align:top;"><code>&lt;sup&gt;</code></td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;"><code>&lt;br&gt;</code></td><td class="slds-cell-wrap" style="vertical-align:top;"><code>&lt;h6&gt;</code></td><td class="slds-cell-wrap" style="vertical-align:top;"><code>&lt;table&gt;</code></td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;"><code>&lt;caption&gt;</code></td><td class="slds-cell-wrap" style="vertical-align:top;"><code>&lt;hr&gt;</code></td><td class="slds-cell-wrap" style="vertical-align:top;"><code>&lt;tbody&gt;</code></td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;"><code>&lt;cite&gt;</code></td><td class="slds-cell-wrap" style="vertical-align:top;"><code>&lt;i&gt;</code></td><td class="slds-cell-wrap" style="vertical-align:top;"><code>&lt;td&gt;</code></td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;"><code>&lt;code&gt;</code></td><td class="slds-cell-wrap" style="vertical-align:top;"><code>&lt;img&gt;</code></td><td class="slds-cell-wrap" style="vertical-align:top;"><code>&lt;tfoot&gt;</code></td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;"><code>&lt;col&gt;</code></td><td class="slds-cell-wrap" style="vertical-align:top;"><code>&lt;ins&gt;</code></td><td class="slds-cell-wrap" style="vertical-align:top;"><code>&lt;th&gt;</code></td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;"><code>&lt;colgroup&gt;</code></td><td class="slds-cell-wrap" style="vertical-align:top;"><code>&lt;kbd&gt;</code></td><td class="slds-cell-wrap" style="vertical-align:top;"><code>&lt;thead&gt;</code></td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;"><code>&lt;dd&gt;</code></td><td class="slds-cell-wrap" style="vertical-align:top;"><code>&lt;li&gt;</code></td><td class="slds-cell-wrap" style="vertical-align:top;"><code>&lt;tr&gt;</code></td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;"><code>&lt;del&gt;</code></td><td class="slds-cell-wrap" style="vertical-align:top;"><code>&lt;ol&gt;</code></td><td class="slds-cell-wrap" style="vertical-align:top;"><code>&lt;tt&gt;</code></td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;"><code>&lt;dfn&gt;</code></td><td class="slds-cell-wrap" style="vertical-align:top;"><code>&lt;p&gt;</code></td><td class="slds-cell-wrap" style="vertical-align:top;"><code>&lt;u&gt;</code></td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;"><code>&lt;div&gt;</code></td><td class="slds-cell-wrap" style="vertical-align:top;"><code>&lt;pre&gt;</code></td><td class="slds-cell-wrap" style="vertical-align:top;"><code>&lt;ul&gt;</code></td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;"><code>&lt;dl&gt;</code></td><td class="slds-cell-wrap" style="vertical-align:top;"><code>&lt;var&gt;</code></td><td class="slds-cell-wrap" style="vertical-align:top;">&nbsp;</td></tr></tbody></table>

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/images/icon_note.png)

Note Rich text editors in custom rich text area fields have minor formatting differences in Lightning Experience and the Salesforce mobile app, as compared to Salesforce Classic. For more information, see [Editing Rich Text Area Fields in Records](https://help.salesforce.com/s/articleView?id=platform.fields_using_rich_text_area.htm&release=264.0.0&type=5 "Use rich text area fields to improve the appearance of text, including adding images and hyperlinks.").

The tags can include the following attributes.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small "><colgroup><col style="width:33.33333333333333%"> <col style="width:33.33333333333333%"> <col style="width:33.33333333333333%"></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;"><code>alt</code></td><td class="slds-cell-wrap" style="vertical-align:top;"><code>face</code></td><td class="slds-cell-wrap" style="vertical-align:top;"><code>size</code></td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;"><code>background</code></td><td class="slds-cell-wrap" style="vertical-align:top;"><code>height</code></td><td class="slds-cell-wrap" style="vertical-align:top;"><code>src</code></td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;"><code>border</code></td><td class="slds-cell-wrap" style="vertical-align:top;"><code>href</code></td><td class="slds-cell-wrap" style="vertical-align:top;"><code>style</code></td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;"><code>class</code></td><td class="slds-cell-wrap" style="vertical-align:top;"><code>name</code></td><td class="slds-cell-wrap" style="vertical-align:top;"><code>target</code></td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;"><code>colspan</code></td><td class="slds-cell-wrap" style="vertical-align:top;"><code>rowspan</code></td><td class="slds-cell-wrap" style="vertical-align:top;"><code>width</code></td></tr></tbody></table>

The following URL protocols are supported.

- http:
- https:
- file:
- ftp:
- mailto:
- #
- / for relative links

## Rich Text Editors Using CKEditor

Rich text editors in Salesforce Classic continue to use CKEditor. Beginning in Summer ’24, Salesforce uses CKEditor version 4.24.0.

In Salesforce Classic, CKEditor is used by:

- Chatter Publisher
- Custom Fields
- Email
- Flow Builder
- Groups
- Idea Themes
- Knowledge Article

In Lightning Experience and the Salesforce mobile app, the following features have rich text editors that use CKEditor.

- Email Composer, using the Send Email action
- Lightning Knowledge

These features load the rich text editor in an iframe. To load the editor correctly in an iframe, your browser must use appropriate security settings. Refer to your browser’s instructions to configure the settings. For example:

- Internet Explorer—Make sure that the **Launching programs and files in an IFRAME** security setting is set to **Enable** or **Prompt**.
- Safari—We recommend changing your Privacy settings for cookies to **Allow from websites I visit**.
- Chrome—Make sure that **Block third-party cookies** isn’t selected in the Privacy and security settings.

#### See Also

- [Editing Rich Text Area Fields in Records](https://help.salesforce.com/s/articleView?id=platform.fields_using_rich_text_area.htm&release=264.0.0&type=5 "Use rich text area fields to improve the appearance of text, including adding images and hyperlinks.")
- [Rich Text Fields in Knowledge Articles](https://help.salesforce.com/s/articleView?id=service.knowledge_rich_text_considerations.htm&type=5&language=en_US)