This guide provides clear guidelines on the acceptable practices for copying and pasting content into Contentstack’s JSON RTE. Maintaining consistency and preventing formatting issues are essential to delivering high-quality content. This documentation outlines best practices, limitations, and recommended workflows to help users avoid formatting challenges and align with design expectations.
Copy-paste behavior in the JSON Rich Text Editor may vary depending on the source of the content (for example, Google Docs, Microsoft Word, or web pages). These sources often include hidden formatting or inline styles that are not always fully supported.
As a result:
For the most consistent results, paste content as plain text to remove hidden formatting.
This ensures that only clean text is inserted, allowing you to apply formatting directly within the JSON RTE.
After pasting:
If pasted content does not render as expected:
When pasting bulleted or numbered lists from external sources:
To resolve this:
To minimize formatting issues:
The table below outlines supported, partially supported, and unsupported formatting when pasting from Google Docs into the JSON RTE.
| Group | Formatting | Supported When Pasted |
|---|---|---|
| Font | Font color | Yes (Can be disabled via stack settings) |
| Font size | Yes (Can be disabled via stack settings) | |
| Underline | Yes | |
| Strikethrough | Yes | |
| Superscript | Yes | |
| Subscript | Yes | |
| Paragraph | Alignment | Yes |
| Indentation left | Yes | |
| Indentation right | Yes | |
| Spacing before | No | |
| Spacing after | No | |
| Line spacing | No | |
| Tabs | Alignment | No |
| Table Borders and Shading | Border Color | No |
| Background Color | No | |
| Bullet points and Numbering | General | Yes |
| Nested Lists | Yes | |
| Checkbox | No | |
| Horizontal Line | General | Yes |
| Emojis | General | Yes |
| Smart Chips | Date, People, Voting Chip, StopWatch, Timer, Variables | Yes (Pasted as normal text) |
| File, Calendar Events, Place | Yes (Pasted as links) | |
| Special Characters | General | Yes |
While the JSON RTE offers flexibility, some limitations may affect pasted content:
By following these recommendations, you can reduce formatting issues and ensure more consistent rendering across the editor and frontend.