      [:div.form-group
       [:label {:for "claim"} (t :badge/Composeyourendorsement)  ]
       [:textarea.form-control {:id "claim"
-                               :rows "5"
-                               :cols "60"
+                               :rows "10"
+                               :cols "50"
                                :max-length "1500"
                                :type "text"
                                :value @(cursor state [:endorsement-comment])
                                :on-change #(do
                                              (reset! (cursor state [:endorsement-comment]) (.-target.value %))
                                              )
-                               #_:on-key-down #_(if (= (.-which %) 13)
+                               :on-key-down #(when (= (.-which %) 13)
+                                               (prn (clojure.string/split-lines @(cursor state [:endorsement-comment])))
+                                               ;(process-text "test" state)
+                                               ;(reset! (cursor state [:endorsement-comment]) (str (.-target.value %) "\n\n* ") )
+                                               ;(prn @(cursor state [:endorsement-comment]))
                                                #_(add-tag tags-atom new-tag-atom))}]]
      [:div
       [:button.btn.btn-primary {:on-click #(do

                (when (= "success" (:status data))
                  (reload-fn state)))}))

(defn delete-endorsement [id user_badge_id state]
  (ajax/DELETE
    (path-for (str "/obpv1/badge/endorsement/" user_badge_id "/" id))
    {:handler (fn [data]
                (when (= "success" (:status data))
                  (init-user-badge-endorsement state)))}))


(defn process-text [s state]

            [salava.core.ui.modal :as mo]
            [clojure.string :refer [blank?]]
            [reagent.session :as session]
            [salava.user.ui.helper :refer [profile-picture]]
            [reagent-modals.modals :as m]
            [salava.core.ui.layout :as layout]
            [salava.core.ui.error :as err]))


(defn endorsement-row [endorsement]
