Title1

Title2

Title3

19-2 ckeditor 網頁編輯器

  1. 官網:http://ckeditor.com
  2. 下載:http://download.cksource.com/CKEditor/CKEditor/CKEditor%204.5.9/ckeditor_4.5.9_standard.zip
    請將下載至 class/ 
    解壓縮
  3. 套用ckeditor
    
    
                  <script src="{$smarty.const.WEB_URL}/class/ckeditor/ckeditor.js"></script>
                  <!-- 內容-->
                  <div class="row">
                    <div class="col-md-12">
                      <div class="form-group">
                        <label>內容</label>
                        <textarea class="form-control" rows="5" id="content" name="content">{$DBV.content}</textarea>
                      </div>
                    </div>
                  </div>
                  <script>
                      CKEDITOR.replace( 'content' );
                  </script>

     

  4.