When using the following to get the content of an editor instace, quotes are being stripped from form control names and value statements. It only seams to be happening on IE6, as we generally work with firefox and haven't noticed this before. But when we check against IE6 and Firefox for the same form, control and content the quotes are gone in IE6 but not Firefox.
var oEditor = FCKeditorAPI.GetInstance('description');
var content = oEditor.EditorDocument.body.innerHTML;
What we see if with show the value of content in an alert statement using IE is:
<input name=frm_name value={frm_name}>
if we view the source code using the editor it shows as:
<input name="frm_name" value="{frm_name}">
and if look do the same in Firefox we see:
<input name="frm_name" value="{frm_name}">
Regards
var oEditor = FCKeditorAPI.GetInstance('description');
var content = oEditor.EditorDocument.body.innerHTML;
What we see if with show the value of content in an alert statement using IE is:
<input name=frm_name value={frm_name}>
if we view the source code using the editor it shows as:
<input name="frm_name" value="{frm_name}">
and if look do the same in Firefox we see:
<input name="frm_name" value="{frm_name}">
Regards
RE: IE 6 Stripping Quotes from form controls
RE: IE 6 Stripping Quotes from form controls
When we pull the forms html from the FCKEditors instance, under IE the quotes are missing, but not for Firefox.
As we're trying to save the content back to the database via AJAX, if IE doesn't give us the quotes they wont be saved to the database. Which is the case. Where as Firefox is all sweet.
RE: IE 6 Stripping Quotes from form controls
Please, DON'T DO THAT.
If you access the innerHTML then you get the raw content provided by the browser, and all the cleanup is missing. And if you try to protect some content with the ProtectedSource config settings then in fact you'll lose it.
Use the API if you want to use the editor directly: GetXHTML()