Try our conversational search powered by Generative AI!

Text Formatting in String Fields

Vote:
 

My team already has things developed in our website and we cannot easily change some of our fields from strings to XhtmlString objects. Our authors want a way to italicize some text in these string fields, and without adding custom frontend code to check for substrings (that the authors enter in the input fields) like, "some text <em>the italicized text</em> some other text" and formatting it that way, is there an easer way to achieve allowing our authors to have the ability to format code within string fields?

#300708
Edited, Apr 25, 2023 18:30
Vote:
 

You can add your own editor to string-properties in CMS.

Here's an example of adding a Markdown editor, https://tedgustaf.com/blog/2016/custom-markdown-editor-for-string-properties-in-episerver/

#300757
Apr 26, 2023 8:04
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.