web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / RichTextEditor issue
Power Apps
Answered

RichTextEditor issue

(0) ShareShare
ReportReport
Posted on by 118

I have an list in SP, that contains multiline text

 

I need to show them as preview.

I can do it with Label, but I need to make title bold. RichTextEditor can make separate words as bold, but read without line breaks.

Any ways to do it?

 

Please, see screenshots

3.PNG
2.PNG
1.PNG
Categories:
I have the same question (0)
  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @Yerlasdutco :

    You could consider using HtmlText control to display the content of multiple line text.(Just set the HtmlText control's HtmlText proeprty)

    1.PNG

    Best Regards,

    Bof

  • Yerlasdutco Profile Picture
    118 on at

    @v-bofeng-msft 

     

    But problem is, that richtexteditor and htmltext doesn't see line breaks in multiline text from SP.

    There are any ways to add them?

     

  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @Yerlasdutco :

    The key is that RichTextEditor parses text through HTML, and Char(10) has no meaning for it.

    Please use 

     

    "</br>"

     

    to replace

     

    Char(10)

     

    in RichTextEditor.

    Best Regards,

    Bof

  • Yerlasdutco Profile Picture
    118 on at

    @v-bofeng-msft 

    Not working for both

     

    Yerlasdutco_0-1619599959855.png

     

  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @Yerlasdutco :

    Could you tell me what RichTextEditor's Default property is?

    Have you edited the RichTextEditor? (This will cause its Default property to not work, you need to reset it first)

    1.PNG

    Best Regards,

    Bof

  • Yerlasdutco Profile Picture
    118 on at

    Yes, it works only for words added manually to Default, but not if I read from multiline text from SP

    Yerlasdutco_0-1619600523006.png

     

  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @Yerlasdutco :

    The key is that RichTextEditor parses text through HTML, and Char(10) has no meaning for it.

    Because there is no newline character "</br>" in your default string but only char(10), the characters in your RichTextEditor will never wrap.

    So,I suggest you replace all char(10) in the original text with "</br>":

    Substitute(DataCardValue,Char(10),"</br>")

    Best Regards,

    Bof

  • Yerlasdutco Profile Picture
    118 on at

    @v-bofeng-msft 

     

    Thank you! Now it works fine

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,027

#2
Valantis Profile Picture

Valantis 644

#3
11manish Profile Picture

11manish 626

Last 30 days Overall leaderboard