diff --git a/app/assets/stylesheets/simple_discussion.scss b/app/assets/stylesheets/simple_discussion.scss
index c63f794..a26e5a1 100644
--- a/app/assets/stylesheets/simple_discussion.scss
+++ b/app/assets/stylesheets/simple_discussion.scss
@@ -296,3 +296,27 @@
.thread-page-container {
padding: 24px;
}
+
+.preview::before {
+ content: "Preview";
+ width: 80px;
+}
+
+.simple_discussion .forum-post p,
+.CodeMirror p {
+ font-size: 18px;
+}
+
+.simple_discussion .forum-post blockquote,
+.CodeMirror blockquote {
+ border-left: 5px solid #e9ecef;
+ padding: 10px 20px;
+ margin: 10px 0;
+ font-size: 18px;
+ font-weight: 500;
+ color: #6c757d;
+}
+
+.CodeMirror-line span {
+ font-size: 18px;
+}
diff --git a/app/views/layouts/simple_discussion.html.erb b/app/views/layouts/simple_discussion.html.erb
index c4f1dd5..bfede7c 100644
--- a/app/views/layouts/simple_discussion.html.erb
+++ b/app/views/layouts/simple_discussion.html.erb
@@ -76,6 +76,9 @@
<% parent_layout("application") %>
+
+
+
+
diff --git a/app/views/simple_discussion/forum_posts/_form.html.erb b/app/views/simple_discussion/forum_posts/_form.html.erb
index 1a99524..d3a80c6 100644
--- a/app/views/simple_discussion/forum_posts/_form.html.erb
+++ b/app/views/simple_discussion/forum_posts/_form.html.erb
@@ -1,7 +1,7 @@
@@ -13,12 +13,8 @@
- <%= f.text_area :body, placeholder: t('add_a_comment'), rows: 8, class: "form-control simplemde", data: { behavior: "comment-body" } %>
+ <%= f.text_area :body, placeholder: t('add_a_comment'), rows: 8, class: "form-control", data: { behavior: "comment-body", simplemde_target: "textarea"} %>
<%= f.button "#{f.object.new_record? ? t('comment') : t('update_comment') }", class: "btn forum-primary-btn", style: "bottom: 10px; right: 10px", data: {disable_with: "
#{t('saving_comment')}"} %>
-
- <%# Describe text formatting options here with a link %>
- <%#= link_to "Parsed with Markdown", "https://guides.github.com/features/mastering-markdown/", target: "_blank" %>
-
<% end %>
diff --git a/app/views/simple_discussion/forum_threads/_form.html.erb b/app/views/simple_discussion/forum_threads/_form.html.erb
index 49e37e8..e0ab8cd 100644
--- a/app/views/simple_discussion/forum_threads/_form.html.erb
+++ b/app/views/simple_discussion/forum_threads/_form.html.erb
@@ -1,6 +1,6 @@
<%= form_for @forum_thread,
url: (@forum_thread.persisted? ? simple_discussion.forum_thread_path(@forum_thread) : simple_discussion.forum_threads_path),
- html: { data: {behavior: "comment-form"} } do |f| %>
+ html: { data: { behavior: "comment-form", controller: "simplemde" } } do |f| %>
<% if @forum_thread.errors.any? %>
@@ -24,7 +24,7 @@
<%= f.fields_for :forum_posts do |p| %>
<%= p.label :body, t('what_help_needed') %>
- <%= p.text_area :body, placeholder: t('add_a_comment'), rows: 10, class: "form-control simplemde", data: { behavior: "comment-body" } %>
+ <%= p.text_area :body, placeholder: t('add_a_comment'), rows: 10, class: "form-control simplemde", data: { behavior: "comment-body", simplemde_target: "textarea" } %>
<% end %>
<% end %>
diff --git a/app/views/simple_discussion/forum_threads/_forum_thread.html.erb b/app/views/simple_discussion/forum_threads/_forum_thread.html.erb
index bc62b3b..c0d03f2 100644
--- a/app/views/simple_discussion/forum_threads/_forum_thread.html.erb
+++ b/app/views/simple_discussion/forum_threads/_forum_thread.html.erb
@@ -27,11 +27,6 @@
<% end %>
-
-
- <%= truncate(forum_thread.forum_posts.first ? forum_thread.forum_posts.first.body : "No Posts", length: 400) %>
-
-
<%= t("created_by") %> <%= forum_thread.user.name %>• <%= time_ago_in_words(forum_thread.created_at) %> <%= t("ago") %>
diff --git a/app/views/simple_discussion/forum_threads/show.html.erb b/app/views/simple_discussion/forum_threads/show.html.erb
index fb4f016..3201d9f 100644
--- a/app/views/simple_discussion/forum_threads/show.html.erb
+++ b/app/views/simple_discussion/forum_threads/show.html.erb
@@ -27,6 +27,7 @@
+