Class: CKEditor5::Rails::Context::Props

Inherits:
Object
  • Object
show all
Defined in:
lib/ckeditor5/rails/context/props.rb

Instance Method Summary collapse

Constructor Details

#initialize(config) ⇒ Props

Returns a new instance of Props.



6
7
8
# File 'lib/ckeditor5/rails/context/props.rb', line 6

def initialize(config)
  @config = config
end

Instance Method Details

#to_attributesObject



10
11
12
13
14
15
# File 'lib/ckeditor5/rails/context/props.rb', line 10

def to_attributes
  {
    plugins: serialize_plugins,
    config: serialize_config
  }
end