我使用 Prototype JS 作为主要 JS 库,并且我已将最后一个 RedactorJS 与 jQuery 以无冲突模式集成,但我无法启动如下功能:
jQuery('#redactor').redactor('destroy');
或者
jQuery('#redactor').destroy();
错误:错误:Redactor 没有这样的“销毁”方法
你有办法解决这个问题吗?
最佳答案
使用 9.X 进行测试:
jQuery('#redactor').redactor('getObject').destroy();
使用 8.X 进行测试:
jQuery('#redactor').redactor('getObject').destroyEditor();
关于jQuery noConflict 编辑器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17170345/