core icon indicating copy to clipboard operation
core copied to clipboard

Add support for Language Variables in Rich Text (WYSIWYG) Fields

Open oidacra opened this issue 4 months ago • 0 comments

Parent Issue

No response

User Story

As a content editor, I want to be able to use Language Variables in Rich Text (WYSIWYG) fields, so I can create dynamic, multilingual content more efficiently.

Acceptance Criteria

  • Rich Text (WYSIWYG) fields support the insertion of Language Variables
  • Language Variables are properly rendered when viewing content in different languages
  • The WYSIWYG editor provides an intuitive interface for selecting and inserting Language Variables
  • Language Variables in Rich Text fields are correctly processed when content is published

Proposed Objective

Please Select

Proposed Priority

Please Select

External Links... Slack Conversations, Support Tickets, Figma Designs, etc.

https://github.com/user-attachments/assets/197005f3-a5d9-4197-9e5d-880428295173

Final Design Image

Endpoints

GET {{serverURL}}/api/v2/languages/variables

Response

{
    "entity": {
        "total": 1,
        "variables": {
            "title": {
                "en-us": {
                    "identifier": "3b52d52b0b3559c95ed64d61121aaeff",
                    "value": "title"
                },
                "es-es": {
                    "identifier": "3b52d52b0b3559c95ed64d61121aaeff",
                    "value": "título"
                }
            }
        }
    },
    "errors": [],
    "i18nMessagesMap": {},
    "messages": [],
    "pagination": null,
    "permissions": []
}

Assumptions & Initiation Needs

No response

Quality Assurance Notes & Workarounds

No response

Sub-Tasks & Estimates

No response

oidacra avatar Oct 02 '24 18:10 oidacra