mirror of
https://0xacab.org/sutty/sutty
synced 2025-02-24 20:01:47 +00:00
cleanup
This commit is contained in:
parent
a6e103390a
commit
c0b3c4f8bc
2 changed files with 3 additions and 10 deletions
|
@ -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
|
||||||
|
|
|
@ -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')
|
|
||||||
// })
|
|
||||||
|
|
Loading…
Reference in a new issue