<commit_before>/*global hilary*/

hilary.register('gutentyp::core', {
    init: function (config, utils, components, toolbarBuilder) {
        "use strict";

        var loadGutenCore = function () {

            var areaIds = utils.initializeRichTextAreas();
            
            // Append toolbars to rich text areas
            toolbarBuilder.build();

            // Add an event that updates the textarea on each focusout
            utils.attachEvent({
                primarySelector: config.selectors.eventlessEditors,
                eventType: 'focusout',
                eventHandler: function (event) {
                    utils.updateTextarea(event.currentTarget);
                }
            });
            
            utils.addClass(config.selectors.editor, config.cssClasses.hasEvents);
        };
<commit_msg>fixes textarea events<commit_after>/*global hilary*/

hilary.register('gutentyp::core', {
    init: function (config, utils, components, toolbarBuilder) {
        "use strict";

        var loadGutenCore = function () {

            var areaIds = utils.initializeRichTextAreas();
            
            // Append toolbars to rich text areas
            toolbarBuilder.build();

            // Add an event that updates the textarea on each focusout
            utils.attachEvent({
                primarySelector: config.selectors.eventlessEditors,
                eventType: 'blur',
                eventHandler: function (event) {
                    utils.updateTextarea(event.target);
                }
            });
            
            utils.addClass(config.selectors.editor, config.cssClasses.hasEvents);
        };

{'fraction_non_alphanumeric': 0.09249249249249249, 'fraction_numerical': 0.0, 'mean_word_length': 1.744645799011532, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5581282', 'n_tokens_mistral': 420, 'n_tokens_neox': 402, 'n_words': 92}