2012-12-28 108 views
1

我已經下載了Ck編輯器3.6.4。按照文檔中給出的安裝步驟。我也整合在我的asp.net頁面。0在asp.net網站上使用CKEditor上傳圖片

ckEditor正在顯示。但在插入圖像時,會出現一個對話框。 我選擇了上傳標籤,瀏覽特定圖片後。 我點擊了「Send It server」按鈕。我收到了圖片網址丟失的消息。

以下是我的asp.net頁面中的代碼。

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 

<html xmlns="http://www.w3.org/1999/xhtml"> 
<head runat="server"> 
    <title></title> 
</head> 
<body> 
    <form id="form1" runat="server"> 
    <div> 


    <CKEditor:CKEditorControl ID="CKEditor1" runat="server" FilebrowserImageBrowseUrl='ckeditor/images/' FilebrowserImageUploadUrl='ckeditor/images/'></CKEditor:CKEditorControl> 


    </div> 
    </form> 
</body> 
</html> 

回答

1

在CKEditor的唯一的配置設置的上傳工具的路徑。

上傳工具負責將文件上傳到正確的目錄,並在單擊「確定」時將該目錄路徑返回給CKEditor。

「Image Source URL Is Missing」錯誤消息似乎表明上傳器沒有以CKEditor可以理解的方式將URL傳遞給CKEditor。

此頁面的開發者指南中介紹瞭如何將URL傳遞到CKEditor的: Integrating CKEditor with a Custom File Browser

關於網頁下半部是本節: 傳遞選定的文件的URL

謝謝,

Curtsy:http://ckeditor.com/forums/Support/Image-Source-URL-Missing-1

+0

感謝您的回答我介紹了鏈接....你能告訴我,如何在我的ckeditor中調用該javascript功能,我trie d如下所示,FilebrowserImageUploadUrl =「getUrlParam()」但我仍然收到了與圖像源URL相同的消息。 – gowthaman

+0

我沒有使用它。我剛剛找到了答案的鏈接,並認爲這與你正在遭受的痛苦是同一個問題,所以我已將它粘貼在一起。您可以從該論壇找到答案。 – Dev

+0

誰能幫我解決上面提到的問題..... – gowthaman