cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
Not applicable

Reset the rich text editor (experimental)

Hi everybody!

 

It's great that the rich text editor is now available in PowerApps (even if its still experimental)! But is there any possibility to reset the editor? I want to reset the editor when another screen shows up. For other controls it's no problem by having "Reset(Name of the control)" in the OnVisible function of the screen. But unfortunatelly, with the rich text editor the reset function does not work.

 

Are there any workarounds or is it planned to enable the reset function for the rich text editor?

 

Thanks for your help!

 

Best regards

Mark

2 REPLIES 2
PowerApps Staff CarlosFigueira
PowerApps Staff

Re: Reset the rich text editor (experimental)

The reset functionality for that control is planned, and should be implemented in an upcoming release.

 

Currently, a possible workaround is to define the default value for the control in a variable, and update the value of that variable when you want to reset the control - any time a variable value is changed, it will trigger the data flow that will let the control know that it needs to re-evaluate that value. So if you set the Default property of the RichTextEditor to 'myDefault', you can set the following expression in the screen's OnVisible control:

UpdateContext({ myDefault: "" });
UpdateContext({
    myDefault:
    "<p>This is the <b>default</b> value.</p>" &
        "<p>And it has <span style="color: red;">two lines</span>.</p>" })

The attached app shows this expression in action.

Anonymous
Not applicable

Re: Reset the rich text editor (experimental)

Thanks for your help, Carlos!

Do you also know if the Padding is also coming for the rich text editor? And is there maybe also a workaround?

 

Best regards,

Mark

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 259 members 6,446 guests
Please welcome our newest community members: