5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-10-05 06:16:56 +00:00
This commit is contained in:
void 2019-10-18 23:29:34 -03:00
parent a6e103390a
commit c0b3c4f8bc
2 changed files with 3 additions and 10 deletions

View file

@ -1,4 +1,4 @@
.sutty-editor.sutty-editor-prosemirror{'data-sutty-identifier' => identifier} .sutty-editor.sutty-editor-prosemirror{'data-sutty-identifier' => identifier}
%textarea.form-control.sutty-editor.sutty-editor-content{:rows => "8", %textarea.form-control.sutty-editor.sutty-editor-content{rows: '8',
'data-sutty-identifier' => identifier, 'data-sutty-identifier': identifier,
:name => name}= markdown name: name}= markdown

View file

@ -2,13 +2,6 @@
= label_tag "post_#{attribute}", post_label_t(attribute, post: post) = label_tag "post_#{attribute}", post_label_t(attribute, post: post)
= render 'posts/attribute_feedback', = render 'posts/attribute_feedback',
post: post, attribute: attribute, metadata: metadata 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', = render 'application/editor',
markdown: metadata.value, markdown: metadata.value,
identifier: "#{post.id}-#{attribute}", name: "post[#{attribute}]" identifier: "#{post.id}-#{attribute}", name: "post[#{attribute}]"
//:javascript
// new SuttyEditor({
// element: document.getElementById('editor')
// })