2013-03-06 61 views
0

我有一個ckeditor和jquery對話窗口的問題。 我有一個窗體,我把一個div拖到一個可排序的表格中。拖動時,我克隆div並打開包含ckeditor的jquery對話框。 編輯器在對話框的打開方法上創建,並在關閉時被銷燬。 第一次拖動edtior後,它會在對話框中打開,但是頁面中的所有對話框都不會打開。 我收到此錯誤:Uncaught TypeError: Object [object Object] has no method 'dialog'當試圖打開另一個對話框或用編輯器拖動另一個div。 我的代碼是:CKEditor禁用所有jquery對話框

var CKEditor 
$("#dialog_editor").dialog({ 
    autoOpen: false, 
    height: 500, 
    width: $("#td_form").width(), 
    modal: true, 
    zIndex: -1, 
    buttons: [ 
     { 
      text: "Save", 
      "class": 'btn btn_content', 
      click: function() { 
       saveEditorContent(); 
      } 
     } 
    ], 
    open: function (type, data) { 
     $(this).parent().appendTo("#form"); 

     CKEditor = CKEditor = CKEDITOR.replace('text_editor', { 
      extraPlugins: 'autogrow', 
      removePlugins: 'resize' 
     }); 
    }, 
    close: function() { 
     CKEditor.destroy(); 
    } 
}); 

我已經搜索所有網站上,仍然沒有找到答案。 我嘗試添加了adapters/jquery.js,目前仍是同樣的問題...

回答

0

我發現這個問題是在我加入一個名爲「Uploadcare」

+1

嘗試更新uploadcare插件,問題在一段時間之前得到修復。 – 2013-08-19 12:32:50

1

你應該嘗試更新「Uploadcare」的CKEditor的一個插件插件到當前版本,一切都應該罰款之後。