Browse Source

add style to editable table

root 10 years ago
parent
commit
386ea5efc8
2 changed files with 7 additions and 1 deletions
  1. 6 0
      pod/pod/public/css/style.css
  2. 1 1
      pod/pod/templates/pod.mak

+ 6 - 0
pod/pod/public/css/style.css View File

@@ -163,6 +163,12 @@ tr:Hover td div.pod-toolbar {
163 163
   background-color: white;
164 164
 }
165 165
 
166
+.pod-table-editor, .pod-table-editor td {
167
+  border: 1px solid #CCC;
168
+  padding: 0.5em;
169
+  margin: 0.5em;
170
+}
171
+
166 172
 .pod-input-like-shadow {
167 173
   -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
168 174
   -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);

+ 1 - 1
pod/pod/templates/pod.mak View File

@@ -123,7 +123,7 @@
123 123
       % endif
124 124
       % if psMenuOptions.find('lists')>=0:
125 125
         <div class="btn-group">
126
-          <a class="btn" data-edit="insertHTML <table class='pod-table-editor'><tr><td>Val1</td><td>Val2</td></tr></table>" ><i class="fa fa-table"></i></a>
126
+          <a class="btn" data-edit="insertHTML <table class='pod-table-editor'><tr><td>cell1</td><td>cell2</td></tr><tr><td>cell3</td><td>cell4</td></tr></table>" ><i class="fa fa-table"></i></a>
127 127
         </div>
128 128
          <div class="btn-group">
129 129
           <a class="btn" data-edit="insertunorderedlist" title="Bullet list"><i class="fa fa-list-ul"></i></a>