[CKEditor.Reactive] Is there any documentation on how to use this component?

Forge Component
(1)
Published on 12 Nov (4 weeks ago) by Pedro Oliveira
1 vote
Published on 12 Nov (4 weeks ago) by Pedro Oliveira

I have a simple scenario, on some edit screen I want to save the html formatted text to DB, then on some view screen I would like to present previously saved formatted text. Can anyone help with this?

Hi,

For edit: Check the demo app, it should give you sample of how to store a html into a varaible, you can then use that variable to write into DB

For view: check solution of this post - https://www.outsystems.com/forums/discussion/53973/expression-escape-content-in-reactive-web/

Regards.

Solution

Hi Michal, 

You can check the demo app and find the sample to use this component. When you click the display HTML button it call an action that extracts the HTML content to be displayed into an web block HTML viewer available into this component too. So, you can use this content to be saved in database.

To display you need only to put the webblock and send the HTML content you read from dB as parameter. 


best regards 

Fabio

Solution

Prasad Rao wrote:

Hi,

For edit: Check the demo app, it should give you sample of how to store a html into a varaible, you can then use that variable to write into DB

For view: check solution of this post - https://www.outsystems.com/forums/discussion/53973/expression-escape-content-in-reactive-web/

Regards.

There's no need to put the data into variable, you can pass the data from editor to database model directly. I managed to do this using component's defined client actions as Fabio wrote:


Thanks.

Hi Michal,

Thx for clarification, it will help others when they come looking for solution to similar problem.

Regards.