tracker issue : CF-4206501

select a category, or use search below
(searches all categories and all time range)
Title:

CFTEXTAREA with richtext inside CFWINDOW does not submit form values as expected

| View in Tracker

Status/Resolution/Reason: To Track//PRNeedInfo

Reporter/Name(from Bugbase): Jürgen W. / ()

Created: 01/07/2020

Components: AJAX, UI Components

Versions: 2016

Failure Type: Incorrectly functioning

Found In Build/Fixed In Build: ColdFusion 2016 Update 13 /

Priority/Frequency: Normal / All users will encounter

Locale/System: English / Win 2012 Server x64

Vote Count: 0

Problem Description: I am using CFTEXTAREA with richtext inside a CFWINDOW. When submitting the values of the CFTEXTAREA fields are not submitted as expected. Instead all fields become the value of the first field. The form works correct without richtext and correct when not inside a CFWINDOW.

Steps to Reproduce: Put CFTEXTAREA inside a CFWINDOW (or in a CFDIV). 

Actual Result: Submission of all cftextarea form fields with the value of the first form field

Expected Result: Submission of all cftextarea form fields with the correct values

Any Workarounds: No

Attachments:

Comments:

Hi Jürgen, Can you please provide sample code to reproduce the issue ? And, let us know the browser version on which you are trying to execute the code ?  
Comment by Mukesh K.
31996 | January 21, 2020 06:45:57 AM GMT
I open a cfwindow with: <button type="button" id="edit_indivptext1" class="ui-button ui-corner-all" onclick="javascript:ColdFusion.Window.show('indivptext_editor'); ColdFusion.navigate('cfcs/repedit_form.cfc?method=show_indivptext&reporttype=1','indivptext_editor',updater,errorHandler,'POST','fapo_form');"> Within show_indivptext I have a cfloop generating several cftextarea: <cftextarea name="ipt_txt_x_#labnr#" id="ipt_txt_x_#labnr#" width="949" height="150" richtext="true" toolbar="Basic" basepath="/#Application.MainPath#/scripts/ckeditor/" >#text#</cftextarea> Submission of the form is made with: <button type="submit" name="submit_indivptext" id="submit_indivptext" class="ui-button ui-corner-all edit_submit" onclick="ColdFusion.navigate('cfcs/repedit_form.cfc?method=update_indivptext','indivptext_editor',updater,errorHandler,'POST','indivptext_form');"> As a frist workaround I changed the submit to: <button type="submit" name="submit_indivptext" id="submit_indivptext" class="ui-button ui-corner-all edit_submit" onclick="javascript:CKUpdate(); ColdFusion.navigate('cfcs/repedit_form.cfc?method=update_indivptext','indivptext_editor',updater,errorHandler,'POST','indivptext_form');"> And the function CKUpdate is the following: function CKUpdate(){ for(var name in CKEDITOR.instances){ CKEDITOR.instances[name].destroy();} for(var name in CKEDITOR.instances){ CKEDITOR.instances[name].updateElement();} } With this workaround it seems to work now.
Comment by Jürgen W.
31997 | January 21, 2020 07:40:26 AM GMT