Commits

Kai Diefenbach committed ceba92e

Using textarea for carousel text.

Comments (0)

Files changed (1)

lfs_carousel/templates/lfs_carousel/items.html

           action="{% url lfs_carousel_update_items ct.pk obj.pk %}"
           method="post">
 
-        <table class="lfs-manage-table carousel-items">
+        <table class="lfs-manage-table top carousel-items">
             <tr>
                 <th class="tiny">
                     <input type="checkbox"
                         <input type="text" name="link-{{ item.id }}" value="{{ item.link }}" style="width:300px" />
                     </td>
                     <td class="small">
-                        <input type="text" name="text-{{ item.id }}" value="{{ item.text }}" style="width:300px" />
+                        <textarea class="carousel_description" name="text-{{ item.id }}" style="width:200px">{{ item.text }}</textarea>
                     </td>
                     <td class="right-padding">
                         <input type="text" name="position-{{ item.id }}" value="{{ item.position }}" size="3" />
 </div>
 <script>
     $(function () {
+        addEditor(".carousel_description", true, 200);
         $('#file_upload').fileUploadUI({
             uploadTable: $('#files'),
             multiFileRequest : true,
         });
     });
 </script>
-</div>
+</div>