<commit_before>var $ = require('jquery');
var tinymce = require('tinymce');
var gridFactory = require('./grid');
var gridPrimary = new gridFactory();
var gridSecondary = new gridFactory();

tinymce.init({
  selector: 'textarea',
  height: 500,
  plugins: [
    'advlist autolink lists link image charmap print preview anchor',
    'searchreplace visualblocks code fullscreen',
    'insertdatetime media table contextmenu paste code'
  ],
  toolbar: 'insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image',
  content_css: [
    '//fast.fonts.net/cssapi/e6dc9b99-64fe-4292-ad98-6974f93cd2a2.css',
    '//www.tinymce.com/css/codepen.min.css'
  ]
});

// New event
tinymce.editor.on('init', function(args) {
    console.log('value');
});

gridPrimary.create({
  id: 'primary',
  perPageOptions: [10, 25, 50, 100, 200],
  url: {
    // create: 'request/grid-primary/create.php',
    read: 'request/grid-primary/read.php'
    // update: 'request/grid-primary/update.php',
    // delete: 'request/grid-primary/delete.php'
  },
  onSelectCell: function(model, type) {
    console.log('onSelectCell', this, model, type);
  },
  onSelectRow: function() {
    console.log('onSelectRow', this);
  },
  cols: [
    {
      width: 10,
      key: 'id',
      name: 'ID',
      primaryKey: true,
      search: true,
      order: true,
      edit: false,<commit_msg>move to new db with textarea field, shim tinymce and begin integration<commit_after>var $ = require('jquery');
var tinymce = require('tinymce');
var gridFactory = require('./grid');
var gridPrimary = new gridFactory();
var gridSecondary = new gridFactory();

tinymce.init({
  selector: 'textarea',
  height: 500,
  plugins: [
    'advlist autolink lists link image charmap print preview anchor',
    'searchreplace visualblocks code fullscreen',
    'insertdatetime media table contextmenu paste code'
  ],
  toolbar: 'insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image',
  content_css: [
    '//fast.fonts.net/cssapi/e6dc9b99-64fe-4292-ad98-6974f93cd2a2.css',
    '//www.tinymce.com/css/codepen.min.css'
  ],
  setup: function(editor) {
    editor.on('init', function() {
      console.log('initted');
    });
  }
});

gridPrimary.create({
  id: 'primary',
  perPageOptions: [10, 25, 50, 100, 200],
  url: {
    // create: 'request/grid-primary/create.php',
    read: 'request/grid-primary/read.php'
    // update: 'request/grid-primary/update.php',
    // delete: 'request/grid-primary/delete.php'
  },
  onSelectCell: function(model, type) {
    console.log('onSelectCell', this, model, type);
  },
  onSelectRow: function() {
    console.log('onSelectRow', this);
  },
  cols: [
    {
      width: 10,
      key: 'id',
      name: 'ID',
      primaryKey: true,
      search: true,
      order: true,
      edit: false,
{'fraction_non_alphanumeric': 0.1483739837398374, 'fraction_numerical': 0.025067750677506776, 'mean_word_length': 3.4539969834087483, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5337634', 'n_tokens_mistral': 1044, 'n_tokens_neox': 976, 'n_words': 230}