Browse Source

add data_content to event api

damien 11 years ago
parent
commit
e719a67549
1 changed files with 16 additions and 2 deletions
  1. 16 2
      pboard/pboard/templates/master.mak

+ 16 - 2
pboard/pboard/templates/master.mak View File

@@ -128,14 +128,28 @@ tr:Hover td div.pod-toolbar {
128 128
                   "emphasis": true, //Italics, bold, etc. Default true
129 129
                   "lists": true, //(Un)ordered lists, e.g. Bullets, Numbers. Default true
130 130
                   "html": true, //Button which allows you to edit the generated HTML. Default false
131
-                  "link": false, //Button to insert a link. Default true
132
-                  "image": false, //Button to insert an image. Default true,
131
+                  "link": true, //Button to insert a link. Default true
132
+                  "image": true, //Button to insert an image. Default true,
133 133
                   // "color": true //Button to change color of font  
134 134
                 });
135 135
                 $('#current_node_textarea').css('margin-bottom', '0');
136 136
                 $('#current_node_textarea').css("min-height", "12em");
137 137
                 $('#current_node_textarea').addClass("span5");
138 138
 
139
+                $('#add_event_data_content_textarea').wysihtml5({
140
+                  "font-styles": false, //Font styling, e.g. h1, h2, etc. Default true
141
+                  "emphasis": true, //Italics, bold, etc. Default true
142
+                  "lists": false, //(Un)ordered lists, e.g. Bullets, Numbers. Default true
143
+                  "html": true, //Button which allows you to edit the generated HTML. Default false
144
+                  "link": true, //Button to insert a link. Default true
145
+                  "image": true, //Button to insert an image. Default true,
146
+                  // "color": true //Button to change color of font  
147
+                });
148
+                $('#add_event_data_content_textarea').css('margin-bottom', '0');
149
+                $('#add_event_data_content_textarea').css("height", "4em");
150
+                $('#add_event_data_content_textarea').addClass("span3");
151
+
152
+
139 153
 
140 154
                 /* Edit title form */
141 155
                 $("#current-document-title-edit-form" ).css("display", "none");