diff --git a/app/views/application/_editor.haml b/app/views/application/_editor.haml index cbbf736a..521cc1d1 100644 --- a/app/views/application/_editor.haml +++ b/app/views/application/_editor.haml @@ -1,4 +1,4 @@ .sutty-editor.sutty-editor-prosemirror{'data-sutty-identifier' => identifier} -%textarea.form-control.sutty-editor.sutty-editor-content{:rows => "8", - 'data-sutty-identifier' => identifier, - :name => name}= markdown +%textarea.form-control.sutty-editor.sutty-editor-content{rows: '8', + 'data-sutty-identifier': identifier, + name: name}= markdown diff --git a/app/views/posts/attributes/_content.haml b/app/views/posts/attributes/_content.haml index ec5789d5..b5d467f5 100644 --- a/app/views/posts/attributes/_content.haml +++ b/app/views/posts/attributes/_content.haml @@ -2,13 +2,6 @@ = label_tag "post_#{attribute}", post_label_t(attribute, post: post) = render 'posts/attribute_feedback', post: post, attribute: attribute, metadata: metadata - //= rich_text_area_tag "post[#{attribute}]", - // sanitize_markdown(metadata.value, tags: all_html_tags), - // **field_options(attribute, metadata), class: '' = render 'application/editor', markdown: metadata.value, identifier: "#{post.id}-#{attribute}", name: "post[#{attribute}]" - //:javascript - // new SuttyEditor({ - // element: document.getElementById('editor') - // })