all files / block-manager/renderer/blocks/ paragraph.js

100% Statements 13/13
100% Branches 0/0
100% Functions 4/4
100% Lines 13/13
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24   1390×   5527× 5527× 5527×           5527× 5527×        
define(["require", "exports", "@syncfusion/ej2-base"], function (require, exports, ej2_base_1) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    var ParagraphRenderer = (function () {
        function ParagraphRenderer(manager) {
            this.parent = manager;
        }
        ParagraphRenderer.prototype.renderParagraph = function (block) {
            var paragraphProps = block.properties;
            paragraphProps.placeholder = this.parent.getPlaceholderValue(block);
            var paragraph = ej2_base_1.createElement('p', {
                attrs: {
                    contenteditable: 'true',
                    placeholder: paragraphProps.placeholder
                }
            });
            this.parent.blockRenderer.contentRenderer.renderContent(block, paragraph);
            return paragraph;
        };
        return ParagraphRenderer;
    }());
    exports.ParagraphRenderer = ParagraphRenderer;
});