Hello,
I wasn't too sure if this was a problem with ckeditor or ckfinder so have posted it in both forums as had no response to the one in the ckfinder forum. And need an answer asap.
i have previously installed ckeditor and ckfinder on a another website on the same server and all works fine. However i have just done exactly the same for another site and am running into a few problems.
The ckfinder allows me to upload a file ok into the relevant folder on my webserver, however normally it redirects to the 'image info' tab and puts the url in with the image dimensions etc. Then i press 'ok' and it inserts it into the ckeditor window.
However on this occasion once i upload the file it just stays on the same tab/page and when i click ok it says 'Image Source URL is Missing' - but when i click on 'browse server' the image is there and has uploaded fine.
Does anyone know why this might be happening as this is really bugging me.
thanks,
Dakey
I wasn't too sure if this was a problem with ckeditor or ckfinder so have posted it in both forums as had no response to the one in the ckfinder forum. And need an answer asap.
i have previously installed ckeditor and ckfinder on a another website on the same server and all works fine. However i have just done exactly the same for another site and am running into a few problems.
The ckfinder allows me to upload a file ok into the relevant folder on my webserver, however normally it redirects to the 'image info' tab and puts the url in with the image dimensions etc. Then i press 'ok' and it inserts it into the ckeditor window.
However on this occasion once i upload the file it just stays on the same tab/page and when i click ok it says 'Image Source URL is Missing' - but when i click on 'browse server' the image is there and has uploaded fine.
Does anyone know why this might be happening as this is really bugging me.
thanks,
Dakey

Re: image source URL is Missing
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; GTB6; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30729; WinNT-PAI 26.07.2009)
Timestamp: Wed, 10 Feb 2010 04:51:15 UTC
Message: Permission denied
Line: 1
Char: 1
Code: 0
URI: http://www.harrietdewinton.com/ckfinder ... angCode=en
Re: image source URL is Missing
Permission denied for <http://www.harrietdewinton.com> to get property Window.CKEDITOR from <http://office.harrietdewinton.com>.
http://www.harrietdewinton.com/ckfinder ... angCode=en
Line 1
Re: image source URL is Missing
image source URL is Missing
Hi,
Its an old topic but same problem for me.I have installed ckeditor latest version and formed image browser.After i uploaded an image,image url doesnt pass to "cke_111_textInput" textbox and warn me like that.im using asp.net mvc4 and my controller like this;
public ActionResult Upload(HttpPostedFileBase uploadFile, string CKEditorFuncNum, string CKEditor, string langCode)
{
foreach (string name in Request.Files)
{
ViewData["Callback"] = Request.QueryString["CKEditorFuncNum"];
var file = HttpContext.Request.Files[name];
var fullPath = Server.MapPath("~/Content/" + Path.GetFileName(file.FileName));
ViewData["Url"] = fullPath;
file.SaveAs(fullPath);
// echo "<script type='text/javascript'>window.parent.CKEDITOR.tools.callFunction($funcNum, '$url', '$message');</script>";
HttpContext.Response.Write("<script type='text/javascript'> alert('deneme');" + " window.onunload = function() {window.opener.getUrlParam(paramName," + "mgm" + ");}" + "</script>");
HttpContext.Response.Flush();
HttpContext.Response.End();
}
return View();
}
my view;
@{
ViewBag.Title = "Index";
}
<h2>Index</h2>
<b>test</b>
<input type="text" name="tt" id="tt"><br>
<textarea class="ckeditor" rows="4" cols="50" id="test">
At w3schools.com you will learn how to make a website. We offer free tutorials in all web development technologies.
</textarea>
@section Scripts {
<script type="text/javascript">
$(document).ready(function () {
$('#cke_193_uiElement').click(function () {
alert("test");
});
});
function CkEditorURLTransfer(url) {
$('#cke_111_textInput').val(url);
}
</script>
}
and my config file;
CKEDITOR.editorConfig = function( config ) {
// Define changes to default configuration here. For example:
config.language = 'tr';
config.filebrowserBrowseUrl = '/Test/BrowseImage';
config.filebrowserImageBrowseUrl = '/Test/BrowseImage';
config.filebrowserUploadUrl = '/Test/Upload';
config.filebrowserImageUploadUrl = '/Test/Upload';
};
i tried these possible solutions generally for php;
http://docs.cksource.com/CKEditor_3.x/Developers_Guide/File_Browser_%28Uploader%29/Custom_File_Browser
im appreciated for your help.tnx.
mgm
actually i was near the
actually i was near the solution,im really blind :P
my controller;
public ActionResult Upload(HttpPostedFileBase uploadFile, string CKEditorFuncNum, string CKEditor, string langCode)
{
foreach (string name in Request.Files)
{
ViewData["Callback"] = Request.QueryString["CKEditorFuncNum"];
var file = HttpContext.Request.Files[name];
var fullPath = Server.MapPath("~/Content/" + Path.GetFileName(file.FileName));
var path = "/Content/" + Path.GetFileName(file.FileName);
file.SaveAs(fullPath);
// echo "<script type='text/javascript'>window.parent.CKEDITOR.tools.callFunction($funcNum, '$url', '$message');</script>";
//window.opener.CKEDITOR.tools.callFunction(1, 'c://');
var script = "<script type='text/javascript'>" +
" window.parent.CKEDITOR.tools.callFunction(1, '" + path + "', '');" + "</script>";
HttpContext.Response.Write(script);
HttpContext.Response.Flush();
HttpContext.Response.End();
}
return View();
}
and view;
<script type="text/javascript">
$(document).ready(function () {
CKEDITOR.replace( 'editor1',
{
filebrowserBrowseUrl : '/Test/BrowseImage',
filebrowserImageBrowseUrl : '/Test/BrowseImage',
filebrowserUploadUrl : '/Test/Upload',
filebrowserImageUploadUrl : '/Test/Upload'
}
);
});
function CkEditorURLTransfer(url) {
// window.opener.CKEDITOR.tools.callFunction(1, url);
// window.close();
$('#cke_111_textInput').val(url);
}
</script>