hi,
i m using ckeditor with ckfinder for java in ADF.facing the issue while clicking on browse server gives error of :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: but i found that when the url is modify (removing faces part ) in browser to http://127.0.0.1:7101/TestContent-ViewC ... f1nl23g_14 whcich loads folder structure.why this is happening. Please help.
-----------------------------
config.xml----------------------------------------------------------------------
<baseDir>/home/sudhirma/Oracle/Middleware/jdeveloper/system11.1.1.4.37.59.23/o.j2ee/drs/TestContent/ViewControllerWebApp.war/userfiles</baseDir>
<baseURL>http://127.0.0.1:7101/TestContent-ViewController-context-root/faces/userfiles/</baseURL>
Mon, 10/08/2012 - 09:17
#1
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.