It was not possible to properly load the XML response from the web server.
XML Parsing Error: not well-formed Location: http://127.0.0.1:7101/TestContent-ViewC ... u4eptq9_49 Line Number 44, Column 14: if (false && hash && hash.length > 0) -------------^
Raw response from the server: http://127.0.0.1:7101/TestContent-ViewC ... f1nl23g_14

Re: Browse server of ckfinde option is not working showing e
Ckeditor 3.6.5(java) in chrome readonly not working
hi,
i m using ckeditor with ckfinder for java in ADF.facing the issue that readonly is not working in chrome.
I used the ckeditor in follwoing way.
1.used ckeditor tag in JSF follwoed by the javascript
as shown.
<af:panelLabelAndMessage label="#{com_ofss_fc_ui_view_messageTemplateUI.LBL_MESSAGE_DATA}"
binding="#{MessageTemplateUIMaintenance.plam4}"
id="plam2" showRequired="true">
<ckfinder:setupCKEditor basePath="ckfinder/" editor="ckeditor"/>
<ckeditor:editor basePath="ckeditor/" editor="ckeditor" value="${bindings.templateBuffer.inputValue}"></ckeditor:editor>
<trh:script id="s1" generatesContent="true">
createUpdateEditor('ckeditor', false);
</trh:script>
</af:panelLabelAndMessage>
and method createUpdateEditor as shown below:
function createUpdateEditor(editor, taskflow){
try{
if (CKEDITOR.instances[editor]) {
CKEDITOR.remove(CKEDITOR.instances[editor]);
}
var ip = window.location.hostname+':'+window.location.port;
var basepath = null;
if(taskflow == false){
basepath = "com.ofss.fc.ui.view";
}else{
basepath = "/workflow/com.ofss.fc.workflow.ui.common.approval/";
}
var editorInsatnce = CKEDITOR.replace(editor,
{"filebrowserImageBrowseUrl":"http:\/\/"+ip+"\/"+basepath+"\/ckfinder\/ckfinder.html?type=Images",
"filebrowserBrowseUrl":"http:\/\/"+ip+"\/"+basepath+"\/ckfinder\/ckfinder.html",
"filebrowserFlashBrowseUrl":"http:\/\/"+ip+"\/"+basepath+"\/ckfinder\/ckfinder.html?type=Flash",
"filebrowserUploadUrl":"\/"+basepath+"\/ckfinder\/core\/connector\/java\/connector.java?command=QuickUpload&type=Files",
"filebrowserImageUploadUrl":"\/"+basepath+"\/ckfinder\/core\/connector\/java\/connector.java?command=QuickUpload&type=Images",
"filebrowserFlashUploadUrl":"\/"+basepath+"\/ckfinder\/core\/connector\/java\/connector.java?command=QuickUpload&type=Flash"});
CKFinder.setupCKEditor(editorInsatnce, 'ckfinder/');
} catch(e){
alert("instance is not ready");
}
CKEDITOR.appendTo(editor,
{"filebrowserImageBrowseUrl":"http:\/\/"+ip+"\/"+basepath+"\/ckfinder\/ckfinder.html?type=Images",
"filebrowserBrowseUrl":"http:\/\/"+ip+"\/"+basepath+"\/ckfinder\/ckfinder.html",
"filebrowserFlashBrowseUrl":"http:\/\/"+ip+"\/"+basepath+"\/ckfinder\/ckfinder.html?type=Flash",
"filebrowserUploadUrl":"\/"+basepath+"\/ckfinder\/core\/connector\/java\/connector.java?command=QuickUpload&type=Files",
"filebrowserImageUploadUrl":"\/"+basepath+"\/ckfinder\/core\/connector\/java\/connector.java?command=QuickUpload&type=Images",
"filebrowserFlashUploadUrl":"\/"+basepath+"\/ckfinder\/core\/connector\/java\/connector.java?command=QuickUpload&type=Flash"});
}
Scenarios:
First time page loads ckeditor load in read mode with content editable false.
Once data is read and value in puted then ckeitor button seems disable but editing area allowing to edit the data in chrome , but working peoperly in mozilla and IE.
code for making readonly in java ADF.
script.append("if(typeof (CKEDITOR.instances.ckeditor) != 'undefined')" +
"{CKEDITOR.instances.ckeditor.setReadOnly();" +
"CKEDITOR.instances.ckeditor.contentEditable=false;" +
"document.getElementsByName(\"ckeditor\")[0].readOnly=true;}");
script.append( "CKEDITOR.instances.ckeditor.setReadOnly();");
Please help on this issue.