100
Views
5
Comments
Solved
[CKEditor] setup guide for CKEditor
Question
Forge component by Matthias Preuter
29
Published on 25 Aug 2020

Hi All

total noob question here.

Is there a walkthrough or setup guide for the CKEditor?

I have added it to my app (via reference) and linked it to my text input field, but when testing it I can't get styled text to save and show up on the frontend.

instead, I get hit with "String or binary data would be truncated. the statement terminated" error on save.


I am sure I must've skipped a step in the install. 


Any way I can get an OutSystems install guide?



Rank: #9158
Solution

Craig Schrickker wrote:

Thanks that got me further.

now the saved content isn't styled instead, its shows the source HTML string 

I believe it is normal that the html tags are saved in the DB.

When displaying the saved data, if the data is displayed within the same Field that the CKEditor is using, it will remove the tags.

If you display the data in an expression, you will need to use SanitizeHTML() function. This is added as part of the Sanitization Extension


Rank: #9158

Does your text field size matches your entity field size? I have a feeling your entity field size is smaller than your text field size

Rank: #2853

Thanks that got me further.

now the saved content isn't styled instead, its shows the source HTML string 

Rank: #2853

Thank you very much, it seems to be working