storing default_attribute on the editable_element if a default attribute has been parsed.
This commit is contained in:
parent
95cd56cba2
commit
ea81025d33
@ -6,6 +6,7 @@ class EditableElement
|
|||||||
field :slug
|
field :slug
|
||||||
field :block
|
field :block
|
||||||
field :default_content
|
field :default_content
|
||||||
|
field :default_attribute
|
||||||
field :hint
|
field :hint
|
||||||
field :disabled, :type => Boolean, :default => false
|
field :disabled, :type => Boolean, :default => false
|
||||||
field :assignable, :type => Boolean, :default => true
|
field :assignable, :type => Boolean, :default => true
|
||||||
|
@ -26,6 +26,7 @@ module Locomotive
|
|||||||
:block => @context[:current_block].try(:name),
|
:block => @context[:current_block].try(:name),
|
||||||
:slug => @slug,
|
:slug => @slug,
|
||||||
:hint => @options[:hint],
|
:hint => @options[:hint],
|
||||||
|
:default_attribute => @options[:default],
|
||||||
:default_content => default_content,
|
:default_content => default_content,
|
||||||
:assignable => @options[:assignable],
|
:assignable => @options[:assignable],
|
||||||
:disabled => false,
|
:disabled => false,
|
||||||
|
Loading…
Reference in New Issue
Block a user