elrte : dialog is not a function error

走远了吗. 提交于 2019-12-24 20:24:56

问题


When I click add image or add flash or add table button, especially when I click buttons that open a dialog box, I'm getting this error.

What is the problem do you think?

in firefox

    Error: jQuery("<div />").addClass(this.opts.class).dialog is not a function
    source file: elrte/js/elrte.min.js
    Line: 3

 in chrome

    Uncaught TypeError: Object [object Object] has no method 'dialog' elrte/js/elrte.min.js:3

回答1:


I think the problem is exactly as the error messages explain. Your jQuery object doesn't have a method named dialog.

jQuery doesn't have a dialog method by default, and apparently one hasn't been provided.

jQueryUI does have one, so you'd need to load that if that's the one you're intending to use.

Here's the demo page for jQueryUI dialogs.




回答2:


You should add jQuery UI CSS Framework (jquery-ui-1.8.13.custom.css)

Open dialogs in new Elrte 1.3 not working with old version jquery UI 1.7! Last version 1.3 working just jquery UI > 1.8.3



来源:https://stackoverflow.com/questions/6710041/elrte-dialog-is-not-a-function-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!