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;
});
|