所见即所得 Froala Rails 未显示
WYSIWYG Froala Rails not show
我在我的 rails 项目中设置了所见即所得的 Froala,但总是不显示...
我创建了一个简单的项目进行测试,但问题仍然存在。
我可能错过了哪一步?
环境:Rails5.1.5,ruby2.4.1p111
rails new froala
rails g scaffold book title:string content:text
rails db:migrate
我添加了 Gemfile
gem 'font-awesome-rails'
gem 'wysiwyg-rails'
运行
bundle install
在下面添加application.js
//= require froala_editor.min.js
//= require plugins/align.min.js
//= require plugins/char_counter.min.js
//= require plugins/code_beautifier.min.js
//= require plugins/code_view.min.js
//= require plugins/colors.min.js
//= require plugins/emoticons.min.js
//= require plugins/entities.min.js
//= require plugins/file.min.js
//= require plugins/font_family.min.js
//= require plugins/font_size.min.js
//= require plugins/fullscreen.min.js
//= require plugins/image.min.js
//= require plugins/image_manager.min.js
//= require plugins/inline_style.min.js
//= require plugins/line_breaker.min.js
//= require plugins/link.min.js
//= require plugins/lists.min.js
//= require plugins/paragraph_format.min.js
//= require plugins/paragraph_style.min.js
//= require plugins/quick_insert.min.js
//= require plugins/quote.min.js
//= require plugins/save.min.js
//= require plugins/table.min.js
//= require plugins/url.min.js
//= require plugins/video.min.js
//= require languages/ja.js
在下面添加application.css
*= require froala_editor.min.css
*= require froala_style.min.css
*= require font-awesome
*= require plugins/char_counter.min.css
*= require plugins/code_view.min.css
*= require plugins/colors.min.css
*= require plugins/emoticons.min.css
*= require plugins/file.min.css
*= require plugins/fullscreen.min.css
*= require plugins/image_manager.min.css
*= require plugins/image.min.css
*= require plugins/line_breaker.min.css
*= require plugins/quick_insert.min.css
*= require plugins/table.min.css
*= require plugins/video.min.css
在下面添加_form.html.erb
我发现了问题,它是 rails 版本。
它现在在 rails 5.0.1 中工作。
我在我的 rails 项目中设置了所见即所得的 Froala,但总是不显示... 我创建了一个简单的项目进行测试,但问题仍然存在。 我可能错过了哪一步?
环境:Rails5.1.5,ruby2.4.1p111
rails new froala rails g scaffold book title:string content:text rails db:migrate
我添加了 Gemfile
gem 'font-awesome-rails' gem 'wysiwyg-rails'
运行
bundle install
在下面添加application.js
//= require froala_editor.min.js //= require plugins/align.min.js //= require plugins/char_counter.min.js //= require plugins/code_beautifier.min.js //= require plugins/code_view.min.js //= require plugins/colors.min.js //= require plugins/emoticons.min.js //= require plugins/entities.min.js //= require plugins/file.min.js //= require plugins/font_family.min.js //= require plugins/font_size.min.js //= require plugins/fullscreen.min.js //= require plugins/image.min.js //= require plugins/image_manager.min.js //= require plugins/inline_style.min.js //= require plugins/line_breaker.min.js //= require plugins/link.min.js //= require plugins/lists.min.js //= require plugins/paragraph_format.min.js //= require plugins/paragraph_style.min.js //= require plugins/quick_insert.min.js //= require plugins/quote.min.js //= require plugins/save.min.js //= require plugins/table.min.js //= require plugins/url.min.js //= require plugins/video.min.js //= require languages/ja.js
在下面添加application.css
*= require froala_editor.min.css *= require froala_style.min.css *= require font-awesome *= require plugins/char_counter.min.css *= require plugins/code_view.min.css *= require plugins/colors.min.css *= require plugins/emoticons.min.css *= require plugins/file.min.css *= require plugins/fullscreen.min.css *= require plugins/image_manager.min.css *= require plugins/image.min.css *= require plugins/line_breaker.min.css *= require plugins/quick_insert.min.css *= require plugins/table.min.css *= require plugins/video.min.css
在下面添加_form.html.erb
我发现了问题,它是 rails 版本。 它现在在 rails 5.0.1 中工作。