lib/alchemy/forms/builder.rb in alchemy_cms-7.1.0.pre.b2 vs lib/alchemy/forms/builder.rb in alchemy_cms-7.1.0.pre.rc1

- old
+ new

@@ -41,9 +41,16 @@ date_field = input attribute_name, as: :string, input_html: input_options template.content_tag("alchemy-datepicker", date_field, type: type) end + # Renders a simple_form input that displays a richtext editor + # + def richtext(attribute_name, options = {}) + text_area = input(attribute_name, options.merge(as: :text)) + template.content_tag("alchemy-tinymce", text_area) + end + # Renders a button tag wrapped in a div with 'submit' class. # def submit(label, options = {}) options = { wrapper_html: {class: "submit"},