【问题标题】:rails 4 Uncaught TypeError: Cannot read property 'remove' of undefinedrails 4 Uncaught TypeError:无法读取未定义的属性“删除”
【发布时间】:2023-03-29 09:47:02
【问题描述】:

在带有 ckeditor 字段的 activeadmin 中显示错误: 在铬

Uncaught TypeError: Cannot read property 'remove' of undefined 

在 ff 中

TypeError: d is undefined

表示该字符串:

..].ltr?"ltr":"rtl"}});e.language_remove={label:d.remove,group:"language_remove",s...

后来一切正常。启动捆绑包更新,所有工作停止

【问题讨论】:

  • 包更新后在 3.2 中遇到同样的问题...

标签: ruby-on-rails-4 ckeditor activeadmin


【解决方案1】:

运行包更新后我遇到了同样的问题。就我而言,问题是由 ckeditor gem 版本 4.1.0 引起的。我通过在我的 Gemile 中设置回到 4.0.2 版:

gem "ckeditor", '4.0.2'

这解决了我的问题。

【讨论】:

  • 您是否在此更改后运行了捆绑安装?
猜你喜欢
  • 1970-01-01
  • 2021-04-28
  • 2017-07-20
  • 1970-01-01
  • 2020-03-28
  • 2023-04-11
  • 2016-04-22
  • 2015-06-08
  • 2014-03-17
相关资源
最近更新 更多