Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
I had to look up https://www.tiny.cloud/blog/how-to-get-content-and-set-content-in-tinymce/ to use their script to get the RTE value, and got this working in Joget v6 and DX. The code is in two parts:
You can then use the return value from 2nd part to assign to another form field (The field is "Copy" in this example).
<script> $(document).ready( function(){ $('#assignmentComplete, #submit').click(function() { var rteValue = tinymce.get( FormUtil.getField("RichTextField").attr("id") ).getContent(); $('[name$=Copy]').val( rteValue ); }); }); </script>
Tq very much! Its working.
Hi,
I think something is wrong with your jquery selector. It's missing double quote :
$('[name$="LogRemark"]').val($('[name$="log_remark"]').val());
This works fine on Joget v4 and v5.
<script>
$(document).ready( function(){
$('#assignmentComplete,#submit').click(function() {
$('[name$=LogRemark]').val($('[name$=log_remark]').val()); <------ here the column for rich text editor
$('[name$=LogStatus]').val($('[name$=status]').val());
$('[name$=LogPosition]').val($('[name$=Position]').val());
});
});
</script>
On Joget v6 only the column with rich text editor input didnt work (only submit blank input). other input just working fine.
Hi,
Is there different compability? When submit data for Rich Text Editor input for subform table, it didnt work. Data didnt save. Before this, using Joget v4 and v5 works fine. After upgrade to v6 i faced this issue. Text area and input fields just working fine.
<script>
$(document).ready( function(){
$('#assignmentComplete,#submit').click(function() {
$('[name$=LogRemark]').val($('[name$=log_remark]').val()); <------ here the column for rich text editor
$('[name$=LogStatus]').val($('[name$=status]').val());
$('[name$=LogPosition]').val($('[name$=Position]').val());
});
});
</script>