This plugin provides more control over tables and solves a JS error thrown when user clicks on "Cell properties" ckeditor feature. https://ckeditor.com/cke4/addon/tabletools
15 lines
614 B
Ruby
15 lines
614 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[image link magicline pastefromword table tableselection
|
|
tabletools]
|
|
config.assets.reject! { |asset| asset =~ /\Ackeditor\/samples\// }
|
|
end
|