diff --git a/app/assets/stylesheets/admin/activities.css b/app/assets/stylesheets/admin/activities.css index 9347916db..d1c6f8127 100644 --- a/app/assets/stylesheets/admin/activities.css +++ b/app/assets/stylesheets/admin/activities.css @@ -149,3 +149,12 @@ .activity_table-cell--pseudo-hidden { color: transparent; } + +.quill-editor .ql-editor { + min-height: 200px; +} + +.ql-editor p, .ql-editor ol, .ql-editor ul { + margin-bottom: 1rem; + padding-left: 0; +} diff --git a/app/assets/stylesheets/members.css b/app/assets/stylesheets/members.css index 3d33fba1c..d60bc158e 100644 --- a/app/assets/stylesheets/members.css +++ b/app/assets/stylesheets/members.css @@ -11,6 +11,7 @@ *= require yeti *= require font_awesome5_webfont *= require lato + *= require quill/dist/quill.snow * *= require intl_tel_input * diff --git a/app/assets/stylesheets/members/activities.css b/app/assets/stylesheets/members/activities.css index f0c181a93..c97673cf0 100644 --- a/app/assets/stylesheets/members/activities.css +++ b/app/assets/stylesheets/members/activities.css @@ -259,3 +259,8 @@ div.container.col-md-9 { width: 25%; } } + +.ql-editor p, .ql-editor ol, .ql-editor ul { + margin-bottom: 1rem; + padding-left: 0; +} diff --git a/app/javascript/src/admin/activities.js b/app/javascript/src/admin/activities.js index 06b089899..16cd58054 100644 --- a/app/javascript/src/admin/activities.js +++ b/app/javascript/src/admin/activities.js @@ -35,6 +35,7 @@ function bind_activities() { // [POST] participants $("#btn-add-committee").on("click", addCommitteeMembers); } + // adds the committee members to the activity function addCommitteeMembers({ target }) { const activity_id = $(target).data("id"); @@ -46,6 +47,7 @@ function addCommitteeMembers({ target }) { }, ); } + /* * Participant namespace containing all participant related functions */ @@ -411,6 +413,8 @@ $(document).on("ready page:load turbolinks:load", function () { copyPromoToClipboard(); + $(".activity-description").editor(); + $("form#mail").mail(); $("#activity_is_viewable").on("click", function () { @@ -507,6 +511,7 @@ function addCollapseCallbackToTableHeader() { ); }); } + /* * Contains the poster related handlers */ diff --git a/app/javascript/src/admin/main.js b/app/javascript/src/admin/main.js index 263f4601f..a2ae705c6 100644 --- a/app/javascript/src/admin/main.js +++ b/app/javascript/src/admin/main.js @@ -18,9 +18,11 @@ $(document).on("ready page:load turbolinks:load", function () { $(window).on("keydown", (evt) => { // ,