Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
wagtail-gardentronic / admin / static_src / wagtailadmin / js / hallo-plugins / hallo-requireparagraphs.js
Size: Mime:
(function() {
    (function(jQuery) {
        return jQuery.widget('IKS.hallorequireparagraphs', {
            options: {
                editable: null,
                uuid: '',
                blockElements: ['dd', 'div', 'dl', 'figure', 'form', 'ul', 'ol', 'table', 'p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6']
            },
            cleanupContentClone: function(el) {
                // if the editable element contains no block-level elements wrap the contents in a <P>
                if (el.html().length && !jQuery(this.options.blockElements.toString(), el).length) {
                    this.options.editable.execute('formatBlock', 'p');
                }
            }
        });
    })(jQuery);
}).call(this);