I am working on an internal application in ColdFusion Server 9, which comes with fckEditor version 2.6.4.1 Build 23187 built-in; as I am not the CFAdmin, upgrading to a more recent version is not an option.
I am getting a JavaScript "unterminated string constant" error message whenever I try to edit content that contains an unordered list/line items element. I'm sure that it's the line items that are breaking the string, but I'm not sure where to put the "replace()" function, nor what I should be replacing what with what.
Basically put, one page of this application has areas that (when clicked on) will open a CFWINDOW that contains a CFFORM with a CFTEXTAREA with richtext turned on. Once this "window" is finished loading, a JavaScript function grabs the innerHTML of the div that was clicked and loads it into the CFTEXTAREA.
It isn't breaking in FireFox or Chrome; just IE7. But IE7 is the company standard browser and users are not given the option to install another browser.
Any suggestions?
CF9_dev
I am getting a JavaScript "unterminated string constant" error message whenever I try to edit content that contains an unordered list/line items element. I'm sure that it's the line items that are breaking the string, but I'm not sure where to put the "replace()" function, nor what I should be replacing what with what.
Basically put, one page of this application has areas that (when clicked on) will open a CFWINDOW that contains a CFFORM with a CFTEXTAREA with richtext turned on. Once this "window" is finished loading, a JavaScript function grabs the innerHTML of the div that was clicked and loads it into the CFTEXTAREA.
function load_content(obj_id){ var edit_box = document.forms['edit'].edit_box.id; ColdFusion.RichText.setValue(edit_box, $("#"+obj_id).html()); }
It isn't breaking in FireFox or Chrome; just IE7. But IE7 is the company standard browser and users are not given the option to install another browser.
Any suggestions?
CF9_dev
Re: CF9/fckEditor "unterminated string constant" error
CF9_dev
Re: CF9/fckEditor "unterminated string constant" error
1. Read the documentation
2. Check the nightly build
3. If the problem isn't reported, file a ticket about it
Re: CF9/fckEditor "unterminated string constant" error
1. Okay.
2. For what? I can't upgrade to a newer version, I'm using what was included with CF Server 9.
3. I'll consider it.