Skip to content

[AR-1206] - Rich Text Data Type#38

Merged
Canopix merged 1 commit intomainfrom
feat/rich-editor
Jun 5, 2025
Merged

[AR-1206] - Rich Text Data Type#38
Canopix merged 1 commit intomainfrom
feat/rich-editor

Conversation

@Canopix
Copy link
Contributor

@Canopix Canopix commented Jun 5, 2025

Jira Ticket: https://ariessolutions.atlassian.net/browse/AR-1206

✨ Feature: Add support for “Rich Text” data type in custom object schema

This PR introduces a new "Rich Text" data type that can be added to a container’s schema. This allows users to define rich text fields when configuring a schema and edit those fields using the Lexical Editor.


✅ Changes included

  • Added new "Rich Text" option to the available data types in the schema configuration.
  • When editing a custom object that includes a Rich Text field, the Lexical editor is rendered dynamically.
  • On save, the Rich Text content is serialized to JSON using Lexical’s native generateJSON() API and stored as part of the custom object payload.

🖼️ Screenshots

Screenshot 2025-06-05 at 12 57 29 PM Screenshot 2025-06-05 at 12 56 36 PM

🧪 How to test

  1. Go to schema builder and add a new field with type Rich Text.
  2. Create a new custom object using that schema.
  3. Type into the rich text editor (e.g. bold, bullet list).
  4. Save the object and confirm JSON is saved in the backend.
  5. Reopen the object and confirm content is restored correctly.

@Canopix Canopix merged commit 7ebd666 into main Jun 5, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants