I have a custom renderer that displays edit components for multiple fields in an object: a picklist, a rich text and a checkbox that all appear in a single table cell.
My first problem is that I can only get the rich text to render if it is the parameter for the custom renderer (i.e. the custom renderer is on the rich text field).
var $ = skuid.$, field = argumentst0],<br> value = argumentst1];<br>var textAreaElement = skuid.ui.fieldRenderers.TEXTAREA.edit(field, value);<br>field.element.append(textAreaElement);
That works okay, but only because “field” is the rich text field. If the custom render was on a different field (e.g. the picklist or checkbox), is there still a way to call the field renderer on the rich text? What if I wanted to render 2 rich text fields in a single custom renderer?
My second problem, which is more pressing, is that I need to get a reference to the inline CKEDITOR object that has been generated for the rich text field. I need to add an onChange event to it and customise it in other ways. Because it’s an inline CKEDITOR it’s no longer a textarea at all, so I can’t do that the usual way. How can I get that reference?