use markdown editor

This commit is contained in:
2023-01-22 20:50:57 +02:00
parent e4364fc677
commit b2ca90ef49
9 changed files with 20 additions and 8 deletions

View File

@ -2,7 +2,7 @@
= f.error_notification
= f.input :name
= f.input :bio
= render "merged/form/editor" , object: @profile , field: :bio, form: f
= f.input :kind, :as => :hidden
.flex.h-16.mt-2
= image_tag(@profile.picture_url , class: "align-middle mr-2") if @profile.picture?

View File

@ -1,3 +1,6 @@
%script{:src => "https://cdn.jsdelivr.net/npm/vue@2.7.14/dist/vue.js"}
%script{:src => "https://cdn.jsdelivr.net/npm/marked/marked.min.js"}
.flex.justify-center
.column{class: "w-10/12 md:w-8/12 lg:w-5/12 xl:w-4/12"}
.text-xl.m-4

View File

@ -1,3 +1,6 @@
%script{:src => "https://cdn.jsdelivr.net/npm/vue@2.7.14/dist/vue.js"}
%script{:src => "https://cdn.jsdelivr.net/npm/marked/marked.min.js"}
.flex.justify-center
.column{class: "w-10/12 md:w-8/12 lg:w-5/12 xl:w-4/12"}
.text-xl.m-4