Skip to main content
Nintex Community Menu Bar
Question

How to return a rich text field in the custom renderer


Forum|alt.badge.img+4

Hi I’d like to create a UI only field with rich text editor. Is that possible in Skuid? The text area field does not render the CKEditor controls. I see there is editor property on Field. How do I set that to use CKEditor control?

Translate
Did this topic help you find an answer to your question?
This topic has been closed for comments

4 replies

Forum|alt.badge.img+17
  • Nintex Employee
  • 3763 replies
  • July 10, 2024

This topic has two questions: 
1. The UI only field of type “Text area” does not render a Rich Text field - rather it renders a long text field. 

The question about exposing the CKEditor contorls without having a RTF in the back end field is still open.  Question for tomorrow. 

Translate

Forum|alt.badge.img+18

J…

Have you inspected the html on a real rich text field? There may be a way to enable CKeditor controls with jQuery by applying the same html/css to your textarea.

Translate

Forum|alt.badge.img+17
  • Nintex Employee
  • 3763 replies
  • July 10, 2024

You do need to add a little bit of Javascript to turn on the html editor in the rich text field.  Add an inline resource with the following code: 

(function(skuid){&nbsp; &nbsp; skuid.events.subscribe('skuid.models.initialized',function(){<br>&nbsp; &nbsp; &nbsp; &nbsp; skuid.$M('ModelName').getField('UIONLYFIELDNAME').htmlFormatted = true;<br>&nbsp; &nbsp; });<br>})(skuid);



Translate

Forum|alt.badge.img+4

The only issue that I have right now is when I try to read the UI only text area field by row.ui_field, it always returns null. The value gets set from the custom field renderer and it shows on UI correctly.

Translate

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings