Class: CKEditor5::Rails::Engine

Inherits:
Rails::Engine
  • Object
show all
Defined in:
lib/ckeditor5/rails/engine.rb

Defined Under Namespace

Classes: ConfigurationProxy

Class Method Summary collapse

Class Method Details

.baseObject



30
31
32
# File 'lib/ckeditor5/rails/engine.rb', line 30

def base
  config.ckeditor5
end

.configure(&block) ⇒ Object



38
39
40
41
# File 'lib/ckeditor5/rails/engine.rb', line 38

def configure(&block)
  proxy = ConfigurationProxy.new(config.ckeditor5)
  proxy.instance_eval(&block)
end

.default_presetObject



34
35
36
# File 'lib/ckeditor5/rails/engine.rb', line 34

def default_preset
  config.ckeditor5.presets.default
end