Files
nairobi/config/initializers/ckeditor.rb
Senén Rodero Rodríguez 58645d0146 Enable pastefromword plugin
2020-04-20 22:12:28 +02:00

15 lines
656 B
Ruby

Ckeditor.setup do |config|
# ==> ORM configuration
# Load and configure the ORM. Supports :active_record (default), :mongo_mapper and
# :mongoid (bson_ext recommended) by default. Other ORMs may be
# available as additional gems.
require "ckeditor/orm/active_record"
config.authorize_with :cancan
config.assets_languages = Rails.application.config.i18n.available_locales.map { |l| l.to_s.downcase }
config.assets_plugins = %w[balloonpanel balloontoolbar copyformatting image
link magicline pastefromword scayt table tableselection wsc]
config.assets.reject! { |asset| asset =~ /\Ackeditor\/samples\// }
end