Support for formatted descriptions

Created on 6 July 2023, 12 months ago
Updated 21 August 2023, 10 months ago

Problem/Motivation

The description of a paragraph currently only supports plain text. Sometimes editors would like to place a link here or add some formatting to highlight parts of the description. This is very useful for editors in places where the description is output.

Proposed resolution

Change the field to input the description from type "textarea" to "text_format".

Remaining tasks

...

User interface changes

-none-

API changes

A new function getDescriptionFormat() is added to ParagraphsTypeInterface to get the saved format of the description.
Function getDescription() still returns the description, only that it may contain formatted text now and the text is running through check_plain().

Original summary

It will be great if we can attach a link to the paragraph. Basically, I have hundreds of paragraphs that an editor can use and I want to attach a reference link to each paragraph using which the editor can see the UI of that paragraph.

✨ Feature request
Status

Needs review

Version

1.0

Component

Code

Created by

🇮🇳India er.garg.karan Chandigarh

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024