angular-froala-wysiwyg-2.7.1
Version:
Angular 2 and Angular 4 bindings for Froala WYSIWYG HTML rich text editor
34 lines • 1.18 kB
JavaScript
import { Directive, ElementRef, Renderer, Input } from '@angular/core';
var FroalaViewDirective = (function () {
function FroalaViewDirective(renderer, element) {
this.renderer = renderer;
this._element = element.nativeElement;
}
Object.defineProperty(FroalaViewDirective.prototype, "froalaView", {
// update content model as it comes
set: function (content) {
this._element.innerHTML = content;
},
enumerable: true,
configurable: true
});
FroalaViewDirective.prototype.ngAfterViewInit = function () {
this.renderer.setElementClass(this._element, "fr-view", true);
};
FroalaViewDirective.decorators = [
{ type: Directive, args: [{
selector: '[froalaView]'
},] },
];
/** @nocollapse */
FroalaViewDirective.ctorParameters = function () { return [
{ type: Renderer, },
{ type: ElementRef, },
]; };
FroalaViewDirective.propDecorators = {
'froalaView': [{ type: Input },],
};
return FroalaViewDirective;
}());
export { FroalaViewDirective };
//# sourceMappingURL=view.directive.js.map