From c0b3c4f8bceb13e377d7e4ac14e0eec05f388125 Mon Sep 17 00:00:00 2001 From: void Date: Fri, 18 Oct 2019 23:29:34 -0300 Subject: [PATCH] cleanup --- app/views/application/_editor.haml | 6 +++--- app/views/posts/attributes/_content.haml | 7 ------- 2 files changed, 3 insertions(+), 10 deletions(-) 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') - // })