---
sourceDocument: Brazil Employee Service Management
sourceDocumentLink: https://www.servicenow.com/docs/r/employee-service-management

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil Employee Service Management

ft:clusterId :

    - emplsm

bundleId :

    - emplsm

workflow :

    - Employee


---

# Copy and Paste in the Rich Content Editor

# Copy and Paste in the Rich Content Editor {#ariaid-title1}

Release version: Brazil  
Updated September 10, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 3 minutes to read
Summarize  
![AI sparkle icon](https://servicenow.com/docs/portal-asset/ai-sparkle-icon) Summarized using AI  
This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.  

## Summary of Copy and Paste in the Rich Content Editor

The Rich Content Editor in the Brazil release allows ServiceNow customers to copy and paste HTML and CSS source code directly into canvas elements.
You can also edit CSS styling for elements and migrate content from other sources efficiently.
The editor supports adding background colors, gradients, images, and color opacity with specific formatting requirements.
Show full answer Show less  

## Key Features

* **Copy and Paste Functionality:** Supports pasting content into canvas elements, but behavior varies by browser. Copying components requires using the component toolbar rather than standard keyboard shortcuts.
* **Background Styling:** Background colors must be applied using `background-image` CSS styling to be visible in the right-hand panel from the May 2025 release onward. The editor supports solid colors, gradients, and images as background layers.
* **Color Opacity:** New support for color opacity is available through hex codes with alpha transparency (#rrggbbaa). This requires editing the CSS code directly in the edit code modal, as the right-hand panel only accepts 6-character hex codes without opacity.
* **Paste Behavior:** Pasted content is inserted at the end of the canvas if no component is selected; otherwise, it is pasted relative to the selected component. Formatted content appends beneath or within parent containers when nested components are used.
* **Cross-Browser Limitations:** Some paste behaviors, such as copying highlighted text within text components, may not work consistently across Chrome, Firefox, and Safari.
* **Styling Issues and Workarounds:** If pasted styles like font names do not apply correctly, clear existing styles via the font name field. For inconsistent display issues, try pasting smaller content segments and check for HTML sanitizer removal of script tags.

## Practical Guidance for ServiceNow Customers

* When adding background colors, use the edit code feature to convert `rgba()` values to hex codes with opacity to ensure styling displays correctly.
* Use the component toolbar to duplicate components instead of relying on keyboard shortcuts like Ctrl+V.
* Apply color opacity through hex codes in the CSS to leverage the new opacity feature fully.
* Expect differences in copy-paste behavior depending on the browser; test workflows in your preferred environment.
* To maintain consistent styling after pasting, clear problematic styles and paste smaller chunks if necessary.
* Remember that deselecting components affects how paste operations handle source formatting.

## Additional Notes

Content Managers and Admins can apply background styling, including opacity, via the right-hand panel's Styling tab when configuring rich content on canvas elements. Understanding how background layers interact (color, gradient, image) is crucial for achieving the desired visual outcome. For advanced styling adjustments, use the edit code modal to precisely control CSS properties.  
Copy and paste HTML and CSS source code for elements in the canvas.

Directly [edit the CSS](https://www.servicenow.com/docs/pYOrz3H4YtZLOa5wJ8xqug "Modify the HTML and CSS source code for all the elements in the canvas or for a specific element.") for an element to add styling, or copy-paste code to migrate content from other sources.  
Important:  
For the May 2025 release, if any pasted content has a background-color, the right-hand panel will not display the color unless it is formatted with background-image styling. The background acts as layers to add background-color, gradient, and image to your content. The edit code feature can be used to adjust the pasted styling from background-color to the corresponding value for background-image CSS, if you want the color to be displayed on the right-hand panel.  
Tip:  
Color opacity functionality is a new feature and isn't supported in any prior release.

## Limitations {#rce-copy-paste-source-code__section_ts5_4lp_52c}

* Browsers might display different copy-paste behaviors due to browser functional differences.
* Copying a component on canvas doesn't duplicate as expected on ctrl+v, so you must access the component toolbar.

{#rce-copy-paste-source-code__ul_c1g_rlp_52c} Figure 1. Component Toolbar ![Provides additional selections from the Component Toolbar]()  
Note:  
You can also add color opacity to the canvas. However, one of the limitations is that copy/paste won't transfer all styling when the colors are formatted in rgba()instead of rgb or hex.

* Pasting highlighted text isn't supported within text components, so behaviors that work in Chrome might not work in Firefox or Safari.

* We recommend adding colors of pasted content in hex code format (#rrggbbaa to add opacity, or you can use #rrggbb).

  * The hash-tag (#) is required.
  * Hex codes start with a pound sign or hash-tag (#) followed by 6 letters if there is no color opacity, or 8 letters if there is color opacity.
  * The 8-character syntax only works if it is added to the element CSS through the edit-code feature. The color input field on the right-hand panel only accepts 6-character syntax.
  {#rce-copy-paste-source-code__ul_gmh_rjn_bfc}
* You can also open the edit code modal to adjust the rgba() colors of the component to hex code to reflect the styling.

{#rce-copy-paste-source-code__ul_cjv_2yg_bfc}

If certain styling isn't applied (for example Font name) or adjusting any of the settings for the pasted content doesn't work, try to clear the styling first by selecting the "x" next to Font name.
Figure 2. Font name ![Allows you to adjust font settings]()
* If your pasted content doesn't display as expected or behaves incorrectly, try to copy a smaller chunk instead of a big section at once.
* • If your pasted content is displayed differently before and after saving and reloading, it might be due to some script tags removed by the HTML sanitizer.
{#rce-copy-paste-source-code__ul_zbz_rkn_bfc}

## Deselected Areas {#rce-copy-paste-source-code__section_b3g_m4p_52c}

* If you select the Pink areas, it deselects any component that is selected on the canvas.

* If you select the Green areas, it keeps the current component selected.

{#rce-copy-paste-source-code__ul_hrv_s4p_52c} Figure 3. Rich Content Editor Canvas  
Note:  
Cutting and pasting highlighted text isn't supported within text components and experiences across browsers might behave differently. Behaviors that work in Chrome might not work in Firefox or Safari.

## Additional Rich Content Actions and Behaviors {#rce-copy-paste-source-code__section_sdx_ywt_52c}

Note:  
Content Managers and Admins have the option to apply background colors to selected canvas elements, including images. Available features include the use of solid and gradient colors, as well as adjustments for color opacity. These settings can be accessed in the right-hand panel under the Settings Styling tab when adding rich content to a canvas element.  
The ability to add color opacity to the canvas is a useful function available to you. The only limitation is that the copy and paste function styling is different when the colors are formatted in rgba() instead of rgb, or hex.

* Add colors in hex code format (`#rrggbbaa` to add opacity or just `#rrggbb`).
* Open the edit code modal to adjust the rgba() colors of the component to hex code to reflect the styling.
* Color Opacity shows the gradient and color layer options. Since background image layer is first, opacity isn't relevant. Gradient is FFFFFF and OOOOOO by default.
* Background color to canvas element shows the background options for
  gradient, color and image. Toggle on and then select background
  options.

{#rce-copy-paste-source-code__ul_hld_hsd_w2c}  
Note:  
Content is pasted at the end of the canvas when no component is selected.

* If a component is selected, content pastes underneath it.
* If a component is being edited, the following paste behavior occurs:
  * If the source is plain text, the content pastes into the current component, and matches the pasted text to the destination styling.
  * If the source is formatted, it's appended under the most current component.
  * If the component enables nested components (for example Tab, Accordion, or Row), then content is appended within the parent container.
  {#rce-copy-paste-source-code__ul_gmh_3xt_52c}
* If components are deselected when selected out of the canvas, it enables paste with source formatting.
{#rce-copy-paste-source-code__ul_w1h_bxt_52c}

For more information on editing source code, see [Editing source code in the Rich Content Editor](https://www.servicenow.com/docs/pYOrz3H4YtZLOa5wJ8xqug "Modify the HTML and CSS source code for all the elements in the canvas or for a specific element.")

