<commit_before>CKEDITOR.editorConfig = function (config) {
  config.filebrowserImageBrowseLinkUrl = '/blog/admin/ckeditor/pictures';
  config.filebrowserImageBrowseUrl = '/blog/admin/ckeditor/pictures';
  config.filebrowserImageUploadUrl = '/blog/admin/ckeditor/pictures';
  config.filebrowserBrowseUrl = '/blog/admin/ckeditor/attachment_files';
  config.filebrowserUploadUrl = '/blog/admin/ckeditor/attachment_files';
  config.extraPlugins = 'sourcedialog';
  config.allowedContent = true;

  <% if ENV['RAILS_RELATIVE_URL_ROOT'] %>
    config.contentsCss = '/blog/assets/ckeditor/editor.css';
  <% else %>
    config.contentsCss = '/assets/ckeditor/editor.css';
  <% end %>

  config.toolbar =
  [
    {
      name: 'styles',
      items: ['Format']
    },
    {
      name: 'basicstyles',
      items: ['Bold', 'Italic', 'Underline', '-', 'RemoveFormat']
    },<commit_msg>Configure CKEDITOR image uploading and browsing paths with relative root<commit_after>CKEDITOR.editorConfig = function (config) {
  config.filebrowserImageBrowseLinkUrl = <%= "'#{Rails.application.config.relative_url_root}/admin/ckeditor/pictures';" %>
  config.filebrowserImageBrowseUrl = <%= "'#{Rails.application.config.relative_url_root}/admin/ckeditor/pictures';" %>
  config.filebrowserImageUploadUrl = <%= "'#{Rails.application.config.relative_url_root}/admin/ckeditor/pictures';" %>
  config.filebrowserBrowseUrl = <%= "'#{Rails.application.config.relative_url_root}/admin/ckeditor/attachment_files';" %>
  config.filebrowserUploadUrl = <%= "'#{Rails.application.config.relative_url_root}/admin/ckeditor/attachment_files';" %>
  config.extraPlugins = 'sourcedialog';
  config.allowedContent = true;
  config.contentsCss = <%= "'#{Rails.application.config.relative_url_root}/assets/ckeditor/editor.css';" %>

  config.toolbar =
  [
    {
      name: 'styles',
      items: ['Format']
    },
    {
      name: 'basicstyles',
      items: ['Bold', 'Italic', 'Underline', '-', 'RemoveFormat']
    },
{'fraction_non_alphanumeric': 0.16119252147549268, 'fraction_numerical': 0.0, 'mean_word_length': 4.609065155807365, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 12, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '4814229', 'n_tokens_mistral': 669, 'n_tokens_neox': 636, 'n_words': 77}