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
Solved! Go to Solution.
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
Hi @Yerlasdutco :
You could consider using HtmlText control to display the content of multiple line text.(Just set the HtmlText control's HtmlText proeprty)
Best Regards,
Bof
But problem is, that richtexteditor and htmltext doesn't see line breaks in multiline text from SP.
There are any ways to add them?
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
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)
Best Regards,
Bof
Yes, it works only for words added manually to Default, but not if I read from multiline text from SP
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
User | Count |
---|---|
122 | |
87 | |
86 | |
75 | |
67 |
User | Count |
---|---|
214 | |
180 | |
137 | |
96 | |
83 |