我有一个简单的页面...我使用ckeditor它工作得很好o本地主机但我发布到azure它剂量 - 工作了...这里是网站 http://testckedit.azurewebsites.net/ 代码:
bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
                  "~/Scripts/bootstrap.js",
                  "~/Scripts/respond.js",
                  "~/Scripts/ckeditor/ckeditor.js"
                  ));
Run Code Online (Sandbox Code Playgroud)
和观点:
@{
     ViewBag.Title = "Index";
 }
<h2>Index</h2>
<div class='description'>
    <p>
    This editor is using an <code><iframe></code> element-based editing area, provided by the <strong>Wysiwygarea</strong> plugin.
</p>
</div>
<textarea cols="80" id="editor1" name="editor1" rows="10"></textarea>
@section scripts{
    <script>
        $(document).ready(function () {
        // This call can be placed at any point after the
        // <textarea>, or inside a <head><script> in a
        // window.onload event handler.
        // Replace the <textarea id="editor"> with an CKEditor
        // instance, using default configurations.
        CKEDITOR.replace("editor1");
    });
    </script>}
<p>
    <input type="submit" value="Submit">
</p>
Run Code Online (Sandbox Code Playgroud)
我在控制台上遇到了一些错误:
Failed to load resource: the server responded with a status of 404 (Not Found)        /config.js?t=DBAA
Failed to load resource: the server responded with a status of 404 (Not Found) /skins/moono/editor.css?t=DBAA
Failed to load resource: the server responded with a status of 404 (Not Found) /lang/ro.js?t=DBAA
Uncaught TypeError: Cannot set property 'dir' of undefined 
Run Code Online (Sandbox Code Playgroud)
    小智 7
正确设置window.CKEDITOR_BASEPATH,如window.CKEDITOR_BASEPATH =' http:// localhost/public/resources/ckeditor / ';
window.CKEDITOR_BASEPATH应该有ckeditor文件夹的正确路径,其中包含插件,皮肤和其他文件夹,带有实用程序功能的js文件.
window.CKEDITOR_BASEPATH将自动设置CKEDITOR.basePath.
在要求ckeditor.js之前尝试设置window.CKEDITOR_BASEPATH
|   归档时间:  |  
           
  |  
        
|   查看次数:  |  
           8812 次  |  
        
|   最近记录:  |