Canvas Apps Controls Expressions

R – Rich Text Editor – Why is it useful?

And old version of Microsoft Word
And old version of Microsoft Word

Introduction

Rich text editor is one such Power Apps control with which you will most likely have a love-hate relationship. Love because it lets users to enter text in a formatted manner. Why hate? Let's leave it for another post as I want to keep this tip short and sweet. Just like many of my posts, this is yet another one that comes from an app I created just for fun.

Rich Text Editor in Teleprompter

A few days/weeks/months ago, I created a teleprompter using Power Apps (to read more about and download it, click here). For the teleprompter, I wanted to support creating a mirror image of the text. For this I had to translate or convert user entered text into HTML. I looked for API's, websites and any way to make this happen. Finally, one of my coworkers suggested me to use the rich text editor instead of the text input control for the users to enter their text. Reason? The following formula gives you the HTML version of the text entered in a rich text editor:

RichTextEditor.HTMLText

Here is a quick demo (on the left is a rich text editor and on the right is a label with its Text property set to the above formula):

Rich Text Editor demo
Demo

To learn more about this control, click here.

Stay tuned for the remaining 8 tips!

Recent articles

Leave a Reply