<commit_before>
CKEDITOR.editorConfig = (config) ->
  config.height = '500'
  config.allowedContent = true
  
  config.language = 'es'
  config.scayt_sLang = 'es_ES'
  config.scayt_autoStartup = true

  config.toolbar_Pure = [
    { name: 'document',    items: [ 'Source','-','Save','Preview','-','Templates' ] },
    { name: 'clipboard',   items: [ 'Undo','Redo' ] },
    { name: 'editing',     items: [ 'Find','Replace','-','SpellChecker', 'Scayt' ] },
    { name: 'tools',       items: [ 'Maximize', 'ShowBlocks' ] }
    '/',
    { name: 'basicstyles', items: [ 'Bold','Italic','Underline','Strike','Subscript','Superscript','-','RemoveFormat' ] },
    { name: 'paragraph',   items: [ 'NumberedList','BulletedList','-','Outdent','Indent','-','Blockquote','-','JustifyLeft','JustifyCenter','JustifyBlock' ] },
    { name: 'insert',      items: [ 'Link','Unlink','Anchor', 'Image','Table','HorizontalRule','SpecialChar' ] },
    '/',
    { name: 'styles',      items: [ 'Styles','Format','Font','FontSize' ] },
    { name: 'colors',      items: [ 'TextColor','BGColor' ] },
  ]
  config.toolbar = 'Pure'
  config.toolbarCanCollapse = true
  config.toolbarStartupExpanded = false
  true<commit_msg>Make links in CKEditor text target _blank by default. Fixes #16<commit_after>
CKEDITOR.editorConfig = (config) ->
  config.height = '500'
  config.allowedContent = true

  config.language = 'es'
  config.scayt_sLang = 'es_ES'
  config.scayt_autoStartup = true

  config.toolbar_Pure = [
    { name: 'document',    items: [ 'Source','-','Save','Preview','-','Templates' ] },
    { name: 'clipboard',   items: [ 'Undo','Redo' ] },
    { name: 'editing',     items: [ 'Find','Replace','-','SpellChecker', 'Scayt' ] },
    { name: 'tools',       items: [ 'Maximize', 'ShowBlocks' ] }
    '/',
    { name: 'basicstyles', items: [ 'Bold','Italic','Underline','Strike','Subscript','Superscript','-','RemoveFormat' ] },
    { name: 'paragraph',   items: [ 'NumberedList','BulletedList','-','Outdent','Indent','-','Blockquote','-','JustifyLeft','JustifyCenter','JustifyBlock' ] },
    { name: 'insert',      items: [ 'Link','Unlink','Anchor', 'Image','Table','HorizontalRule','SpecialChar' ] },
    '/',
    { name: 'styles',      items: [ 'Styles','Format','Font','FontSize' ] },
    { name: 'colors',      items: [ 'TextColor','BGColor' ] },
  ]
  config.toolbar = 'Pure'
  config.toolbarCanCollapse = true
  config.toolbarStartupExpanded = false
  true

CKEDITOR.on "dialogDefinition", (ev) ->
  ev.data.definition.getContents("target").get("linkTargetType")["default"] = "_blank"  if ev.data.name is "link"
{'fraction_non_alphanumeric': 0.22277799153520586, 'fraction_numerical': 0.0030781069642170067, 'mean_word_length': 4.231388329979879, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '5318022', 'n_tokens_mistral': 883, 'n_tokens_neox': 875, 'n_words': 138}