<commit_before><html>
    <head>
        <title>Quill Test</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
        <meta charset="utf-8">

        <!-- Style -->
        <link rel="stylesheet" href="//cdn.quilljs.com/1.3.1/quill.snow.css">
        <link rel="stylesheet" href="//cdn.quilljs.com/1.3.1/quill.bubble.css">

        <style>
            ng-quill-editor.ng-invalid .ql-container {
                border: 1px dashed red;
            }

            .ql-snow .ql-picker.ql-size .ql-picker-item[data-value="14"]::before {
                content: '14';
            }

            .ql-snow .ql-picker.ql-size .ql-picker-item[data-value="16"]::before {
                content: '16';
            }

            .ql-snow .ql-picker.ql-size .ql-picker-item[data-value="18"]::before {
                content: '18';
            }
        </style>

        <!-- Scripts -->
        <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/angular.js/1.6.5/angular.min.js"></script>
        <script type="text/javascript" src="//cdn.quilljs.com/1.3.1/quill.js"></script>
        <script type="text/javascript" src="src/ng-quill.js"></script>
        <script>

          // declare a module and load quillModule
          var myAppModule = angular.module('quillTest', ['ngQuill'])
          myAppModule.config(['ngQuillConfigProvider', function (ngQuillConfigProvider) {
            ngQuillConfigProvider.set(null, null, 'custom placeholder')
          }])
          myAppModule.controller('AppCtrl', [
            '$scope',
            '$timeout',
            function ($scope, $timeout) {
              $scope.title = 'Quill works'
              $scope.readOnly = false
              $scope.test = ''
              $scope.customOptions = [{
                import: 'attributors/style/size',
                whitelist: ['14', '16', '18']
              }]
              $scope.customModules = {
                toolbar: [
                  [{'size': [false, '14', '16', '18']}]
                ]
              }

              $timeout(function () {
                $scope.title += ' awsome!!!'
              }, 2000)

              $scope.editorCreated = function (editor) {
                console.log(editor)
              }
              $scope.contentChanged = function (editor, html, text, delta, oldDelta, source) {
                console.log('editor: ', editor, 'html: ', html, 'text:', text, 'delta: ', delta, 'oldDelta:', oldDelta, 'source:', source)
              }
              $scope.selectionChanged = function (editor, range, oldRange, source) {<commit_msg>Fix demo with overwritten custom options<commit_after><html>
    <head>
        <title>Quill Test</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
        <meta charset="utf-8">

        <!-- Style -->
        <link rel="stylesheet" href="//cdn.quilljs.com/1.3.1/quill.snow.css">
        <link rel="stylesheet" href="//cdn.quilljs.com/1.3.1/quill.bubble.css">

        <style>
            ng-quill-editor.ng-invalid .ql-container {
                border: 1px dashed red;
            }

            .ql-snow .ql-picker.ql-size .ql-picker-item[data-value="14"]::before {
                content: '14';
            }

            .ql-snow .ql-picker.ql-size .ql-picker-item[data-value="16"]::before {
                content: '16';
            }

            .ql-snow .ql-picker.ql-size .ql-picker-item[data-value="18"]::before {
                content: '18';
            }
        </style>

        <!-- Scripts -->
        <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/angular.js/1.6.5/angular.min.js"></script>
        <script type="text/javascript" src="//cdn.quilljs.com/1.3.1/quill.js"></script>
        <script type="text/javascript" src="src/ng-quill.js"></script>
        <script>

          // declare a module and load quillModule
          var myAppModule = angular.module('quillTest', ['ngQuill'])
          myAppModule.config(['ngQuillConfigProvider', function (ngQuillConfigProvider) {
            ngQuillConfigProvider.set(null, null, 'custom placeholder')
          }])
          myAppModule.controller('AppCtrl', [
            '$scope',
            '$timeout',
            function ($scope, $timeout) {
              $scope.title = 'Quill works'
              $scope.readOnly = false
              $scope.test = ''
              $scope.customOptions = [{
                import: 'attributors/style/size',
                whitelist: ['14', '16', '18', 'small', 'large', 'huge']
              }]
              $scope.customModules = {
                toolbar: [
                  [{'size': [false, '14', '16', '18']}]
                ]
              }

              $timeout(function () {
                $scope.title += ' awsome!!!'
              }, 2000)

              $scope.editorCreated = function (editor) {
                console.log(editor)
              }
              $scope.contentChanged = function (editor, html, text, delta, oldDelta, source) {
                console.log('editor: ', editor, 'html: ', html, 'text:', text, 'delta: ', delta, 'oldDelta:', oldDelta, 'source:', source)
              }
              $scope.selectionChanged = function (editor, range, oldRange, source) {
{'fraction_non_alphanumeric': 0.16266964119724855, 'fraction_numerical': 0.01784718349135527, 'mean_word_length': 1.675285927399304, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 41, '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': '6130096', 'n_tokens_mistral': 1663, 'n_tokens_neox': 1568, 'n_words': 268}