text: /*!
   * remark (http://getbootstrapadmin.com/remark)
   * Copyright 2017 amazingsurge
   * Licensed under the Themeforest Standard Licenses
   */
  (function(document, window, $) {
    'use strict';
  
    var Site = window.Site;
  
    $(document).ready(function($) {
      Site.run();
    });
  
    // Example Click to edit
    // ---------------------
    window.edit = function() {
      $('.click2edit').summernote({
        focus: true
      });
    };
    window.save = function() {
      $('.click2edit').summernote('destroy');
    };
  
    // Example Hint for words
    // ----------------------
    (function() {
      $("#exampleHint2Basic").summernote({
        height: 100,
        toolbar: false,
        placeholder: 'type with apple, orange, watermelon and lemon',
        hint: {
          words: ['apple', 'arange', 'watermelon', 'lemon'],
          match: /\b(\w{1,})$/,
          search: function(keyword, callback) {
            callback($.grep(this.words, function(item) {
              return item.indexOf(keyword) === 0;
            }));
          }
        }
      });
    })();
  
    // Example Hint for words
    // ----------------------
    (function() {
      $("#exampleHint2Mention").summernote({
        height: 100,
        toolbar: false,
        hint: {
          mentions: ['jayden', 'sam', 'alvin', 'david'],
          match: /\B@(\w*)$/,
          search: function(keyword, callback) {
            callback($.grep(this.mentions, function(item) {
              return item.indexOf(keyword) == 0;
            }));
          },
          content: function(item) {
            return '@' + item;
          }
        }
      });
    })();
  
    (function() {
      $(".summernote").summernote({
        height: 300,
        callbacks: {
          onChange: function(contents, $editable) {
            $(this).parent().children('span[data-content=true]').html(contents);
          }
        }
      });
    })();
  
  })(document, window, jQuery);
  