Class: CKEditor5::Rails::Engine
- Inherits:
-
Rails::Engine
- Object
- Rails::Engine
- CKEditor5::Rails::Engine
show all
- Defined in:
- lib/ckeditor5/rails/engine.rb
Defined Under Namespace
Classes: ConfigurationProxy
Class Method Summary
collapse
Class Method Details
.base ⇒ Object
30
31
32
|
# File 'lib/ckeditor5/rails/engine.rb', line 30
def base
config.ckeditor5
end
|
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_preset ⇒ Object
34
35
36
|
# File 'lib/ckeditor5/rails/engine.rb', line 34
def default_preset
config.ckeditor5.presets.default
end
|