How to set dynamic default value for Rich text Editor

hung pham asked on January 26, 2022 10:53

I am using WYSIWYG Froala for my widget. Now I want it to have default value depend on which page it was on. Can someone please help me this?

Also, can I set the default text to be in H1?

Recent Answers


Prashant Verma answered on January 27, 2022 06:10

Hi Hung,

You can write a custom form control and integrate WYSIWYG Froala, then you can write your custom logic to parse the value based on your business logic to st default value, for more information on how to create custom form control please refer to this document.

Thanks

Prashant Verma

4 votesVote for this answer Mark as a Correct answer

hung pham answered on January 27, 2022 11:32

Hi Prashant,

My situation is I am working with widget using Rich text Editor, I want the widget rich text default is depended on the page with the logic in widget controller. However since I am not be able to access to CMS solution so I think that Custom Form Control is out of question? Is there any other solution for this?

Thanks,

Hung Pham

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.