Browse Source

add basic table feature into the rich text editor

root 10 years ago
parent
commit
7bfdcc2b08
1 changed files with 4 additions and 1 deletions
  1. 4 1
      pod/pod/templates/pod.mak

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

@@ -120,7 +120,10 @@
120 120
           <a class="btn" data-edit="strikethrough" title="Strikethrough"><i class="fa fa-strikethrough"></i></a>
121 121
           <a class="btn" data-edit="underline" title="Underline (Ctrl/Cmd+U)"><i class="fa fa-underline"></i></a>
122 122
         </div>
123
-      % endif
123
+        <div class="btn-group">
124
+          <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>
125
+        </div>
126
+       % endif
124 127
       % if psMenuOptions.find('lists')>=0:
125 128
         <div class="btn-group">
126 129
           <a class="btn" data-edit="insertunorderedlist" title="Bullet list"><i class="fa fa-list-ul"></i></a>