抛出 "无法设置未定义的属性'dir'"的错误。
gem 'ckeditor', '~> 5.0'
ckeditor gem的5版本实际上包含了ckeditor-4,到目前为止。
还有一个ckeditor-5,它是基于webpack本身的,可以直接放到rails-6 webpack中,而不需要gem。
OTOH,虽然这可能是更有前途的方法,但ckeditor-5在很多方面都有不同,可能适合你的需求,也可能不适合。