UNPKG

angular-froala-wysiwyg-2.7.1

Version:

Angular 2 and Angular 4 bindings for Froala WYSIWYG HTML rich text editor

1 lines 23.6 kB
{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///webpack/bootstrap 1ef80bb750711e5f3aee","webpack:///external \"@angular/core\"","webpack:///./src/editor/index.ts","webpack:///./src/view/index.ts","webpack:///./src/editor/editor.directive.ts","webpack:///./src/view/view.directive.ts","webpack:///./src/editor/editor.module.ts","webpack:///./src/index.ts","webpack:///./src/view/view.module.ts","webpack:///external \"@angular/forms\""],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;ACVA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA,mDAA2C,cAAc;;AAEzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAK;AACL;AACA;;AAEA;AACA;AACA;AACA,mCAA2B,0BAA0B,EAAE;AACvD,yCAAiC,eAAe;AAChD;AACA;AACA;;AAEA;AACA,8DAAsD,+DAA+D;;AAErH;AACA;;AAEA;AACA;;;;;;;AChEA,+C;;;;;;;;;;;ACA2D;AACN;;;;;;;;;;;;ACDE;AACN;;;;;;;;;;;;;;;;;;;;;;ACDyE;AAEnD;AAavE;IA2BE,+BAAY,EAAc,EAAW,IAAY;QAAZ,SAAI,GAAJ,IAAI,CAAQ;QAzBjD,iBAAiB;QACT,UAAK,GAAQ;YACnB,2BAA2B,EAAE,KAAK;YAClC,kBAAkB,EAAE,IAAI;SACzB,CAAC;QAKM,iBAAY,GAAa,CAAC,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,CAAC,CAAC;QACzD,oBAAe,GAAW,WAAW,CAAC;QACtC,mBAAc,GAAY,KAAK,CAAC;QAQhC,qBAAgB,GAAa,EAAE,CAAC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EP;AAMvD;IAAA;IAIA,CAAC;yBAJY,gBAAgB;IACb,wBAAO,GAArB;QACE,MAAM,CAAC,EAAC,QAAQ,EAAE,kBAAgB,EAAE,SAAS,EAAE,EAAE,EAAC,CAAC;IACrD,CAAC;IAHU,gBAAgB;QAJ5B,8EAAQ,CAAC;YACR,YAAY,EAAE,CAAC,4EAAmB,CAAC;YACnC,OAAO,EAAE,CAAC,4EAAmB,CAAC;SAC/B,CAAC;OACW,gBAAgB,CAI5B;IAAD,uBAAC;;CAAA;AAJ4B;;;;;;;ACR7B,+C","file":"angular-froala-wysiwyg.umd.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"@angular/core\"), require(\"@angular/forms\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"@angular/core\", \"@angular/forms\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"angular-froala-wysiwyg.umd\"] = factory(require(\"@angular/core\"), require(\"@angular/forms\"));\n\telse\n\t\troot[\"angular-froala-wysiwyg.umd\"] = factory(root[\"@angular/core\"], root[\"@angular/forms\"]);\n})(this, function(__WEBPACK_EXTERNAL_MODULE_0__, __WEBPACK_EXTERNAL_MODULE_8__) {\nreturn \n\n\n// WEBPACK FOOTER //\n// webpack/universalModuleDefinition"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// identity function for calling harmony imports with the correct context\n \t__webpack_require__.i = function(value) { return value; };\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 6);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 1ef80bb750711e5f3aee","module.exports = __WEBPACK_EXTERNAL_MODULE_0__;\n\n\n//////////////////\n// WEBPACK FOOTER\n// external \"@angular/core\"\n// module id = 0\n// module chunks = 0","export { FroalaEditorDirective } from './editor.directive';\nexport { FroalaEditorModule } from './editor.module';\n\n\n// WEBPACK FOOTER //\n// ./src/editor/index.ts","export { FroalaViewDirective } from './view.directive';\nexport { FroalaViewModule } from './view.module';\n\n\n// WEBPACK FOOTER //\n// ./src/view/index.ts","import { Directive, ElementRef, Renderer, Input, Output, Optional, EventEmitter, forwardRef, NgZone} from '@angular/core';\n\nimport {ControlValueAccessor, NG_VALUE_ACCESSOR} from \"@angular/forms\";\n\ndeclare var $: JQueryStatic;\n\n\n@Directive({\n selector: '[froalaEditor]',\n providers: [{\n provide: NG_VALUE_ACCESSOR,useExisting:\n forwardRef(() => FroalaEditorDirective),\n multi: true\n }]\n})\nexport class FroalaEditorDirective implements ControlValueAccessor {\n\n // editor options\n private _opts: any = {\n immediateAngularModelUpdate: false,\n angularIgnoreAttrs: null\n };\n\n // jquery wrapped element\n private _$element: any;\n\n private SPECIAL_TAGS: string[] = ['img', 'button', 'input', 'a'];\n private INNER_HTML_ATTR: string = 'innerHTML';\n private _hasSpecialTag: boolean = false;\n\n // editor element\n private _editor: any;\n\n // initial editor content\n private _model: string;\n\n private _listeningEvents: string[] = [];\n\n private _editorInitialized: boolean = false;\n\n private _oldModel: string = null;\n\n constructor(el: ElementRef, private zone: NgZone) {\n\n let element: any = el.nativeElement;\n\n // check if the element is a special tag\n if (this.SPECIAL_TAGS.indexOf(element.tagName.toLowerCase()) != -1) {\n this._hasSpecialTag = true;\n }\n\n // jquery wrap and store element\n this._$element = (<any>$(element));\n\n this.zone = zone;\n }\n\n // Begin ControlValueAccesor methods.\n onChange = (_) => {};\n onTouched = () => {};\n\n // Form model content changed.\n writeValue(content: any): void {\n this.updateEditor(content);\n }\n\n registerOnChange(fn: (_: any) => void): void { this.onChange = fn; }\n registerOnTouched(fn: () => void): void { this.onTouched = fn; }\n // End ControlValueAccesor methods.\n\n // froalaEditor directive as input: store the editor options\n @Input() set froalaEditor(opts: any) {\n this._opts = opts || this._opts;\n }\n\n // froalaModel directive as input: store initial editor content\n @Input() set froalaModel(content: any) {\n this.updateEditor(content);\n }\n\n // Update editor with model contents.\n private updateEditor(content: any) {\n\n if (JSON.stringify(this._oldModel) == JSON.stringify(content)) {\n return;\n }\n this._model = content;\n\n if (this._editorInitialized) {\n this.setContent();\n }\n }\n\n // froalaModel directive as output: update model if editor contentChanged\n @Output() froalaModelChange: EventEmitter<any> = new EventEmitter<any>();\n\n // froalaInit directive as output: send manual editor initialization\n @Output() froalaInit: EventEmitter<Object> = new EventEmitter<Object>();\n\n // update model if editor contentChanged\n private updateModel() {\n this.zone.run(() => {\n\n let modelContent: any = null;\n\n if (this._hasSpecialTag) {\n\n let attributeNodes = this._$element[0].attributes;\n let attrs = {};\n\n for (let i = 0; i < attributeNodes.length; i++ ) {\n\n let attrName = attributeNodes[i].name;\n if (this._opts.angularIgnoreAttrs && this._opts.angularIgnoreAttrs.indexOf(attrName) != -1) {\n continue;\n }\n\n attrs[attrName] = attributeNodes[i].value;\n }\n\n if (this._$element[0].innerHTML) {\n attrs[this.INNER_HTML_ATTR] = this._$element[0].innerHTML;\n }\n\n modelContent = attrs;\n } else {\n\n let returnedHtml: any = this._$element.froalaEditor('html.get');\n if (typeof returnedHtml === 'string') {\n modelContent = returnedHtml;\n }\n }\n\n this._oldModel = modelContent;\n\n // Update froalaModel.\n this.froalaModelChange.emit(modelContent);\n\n // Update form model.\n this.onChange(modelContent);\n\n })\n }\n\n // register event on jquery element\n private registerEvent(element, eventName, callback) {\n\n if (!element || !eventName || !callback) {\n return;\n }\n\n this._listeningEvents.push(eventName);\n element.on(eventName, callback);\n }\n\n private initListeners() {\n\n let self = this;\n\n // bind contentChange and keyup event to froalaModel\n this.registerEvent(this._$element, 'froalaEditor.contentChanged',function () {\n setTimeout(function (){\n self.updateModel();\n }, 0);\n });\n if (this._opts.immediateAngularModelUpdate) {\n this.registerEvent(this._editor, 'keyup', function () {\n setTimeout(function (){\n self.updateModel();\n }, 0);\n });\n }\n }\n\n // register events from editor options\n private registerFroalaEvents() {\n\n if (!this._opts.events) {\n return;\n }\n\n for (let eventName in this._opts.events) {\n\n if (this._opts.events.hasOwnProperty(eventName)) {\n this.registerEvent(this._$element, eventName, this._opts.events[eventName]);\n }\n }\n }\n\n private createEditor() {\n\n if (this._editorInitialized) {\n return;\n }\n\n this.setContent(true);\n\n // Registering events before initializing the editor will bind the initialized event correctly.\n this.registerFroalaEvents();\n\n // init editor\n this.zone.runOutsideAngular(() => {\n console.log (this._opts)\n this._editor = this._$element.froalaEditor(this._opts).data('froala.editor').$el;\n })\n\n this.initListeners();\n\n this._editorInitialized = true;\n }\n\n private setHtml() {\n this._$element.froalaEditor('html.set', this._model || '', true);\n\n //This will reset the undo stack everytime the model changes externally. Can we fix this?\n this._$element.froalaEditor('undo.reset');\n this._$element.froalaEditor('undo.saveStep');\n }\n\n private setContent(firstTime = false) {\n\n let self = this;\n // set initial content\n if (this._model || this._model == '') {\n this._oldModel = this._model;\n if (this._hasSpecialTag) {\n\n let tags: Object = this._model;\n\n // add tags on element\n if (tags) {\n\n for (let attr in tags) {\n if (tags.hasOwnProperty(attr) && attr != this.INNER_HTML_ATTR) {\n this._$element.attr(attr, tags[attr]);\n }\n }\n\n if (tags.hasOwnProperty(this.INNER_HTML_ATTR)) {\n this._$element[0].innerHTML = tags[this.INNER_HTML_ATTR];\n }\n }\n } else {\n if (firstTime) {\n this.registerEvent(this._$element, 'froalaEditor.initialized', function () {\n self.setHtml();\n });\n } else {\n self.setHtml();\n }\n\n }\n }\n }\n\n private destroyEditor() {\n if (this._editorInitialized) {\n this._$element.off(this._listeningEvents.join(\" \"));\n this._editor.off('keyup');\n this._$element.froalaEditor('destroy');\n this._listeningEvents.length = 0;\n this._editorInitialized = false;\n }\n }\n\n private getEditor() {\n if (this._$element) {\n return this._$element.froalaEditor.bind(this._$element);\n }\n\n return null;\n }\n\n // send manual editor initialization\n private generateManualController() {\n let self = this;\n let controls = {\n initialize: this.createEditor.bind(this),\n destroy: this.destroyEditor.bind(this),\n getEditor: this.getEditor.bind(this),\n };\n this.froalaInit.emit(controls);\n }\n\n // TODO not sure if ngOnInit is executed after @inputs\n ngOnInit() {\n\n // check if output froalaInit is present. Maybe observers is private and should not be used?? TODO how to better test that an output directive is present.\n if (!this.froalaInit.observers.length) {\n this.createEditor();\n } else {\n this.generateManualController();\n }\n }\n\n ngOnDestroy() {\n this.destroyEditor();\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/editor/editor.directive.ts","import { Directive, ElementRef, Renderer, Input, Output, Optional, EventEmitter } from '@angular/core';\n\n@Directive({\n selector: '[froalaView]'\n})\nexport class FroalaViewDirective {\n\n private _element: HTMLElement;\n private _content: any;\n\n constructor(private renderer: Renderer, element: ElementRef) {\n this._element = element.nativeElement;\n }\n\n // update content model as it comes\n @Input() set froalaView(content: string){\n this._element.innerHTML = content;\n }\n\n ngAfterViewInit() {\n this.renderer.setElementClass(this._element, \"fr-view\", true);\n }\n}\n\n\n// WEBPACK FOOTER //\n// ./src/view/view.directive.ts","import { NgModule, ModuleWithProviders } from '@angular/core';\n\nimport { FroalaEditorDirective } from './editor.directive';\n\n@NgModule({\n declarations: [FroalaEditorDirective],\n exports: [FroalaEditorDirective]\n})\n\nexport class FroalaEditorModule {\n public static forRoot(): ModuleWithProviders {\n return {ngModule: FroalaEditorModule, providers: []};\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/editor/editor.module.ts","import { ModuleWithProviders, NgModule } from '@angular/core';\n\nimport {FroalaEditorModule} from './editor';\nimport {FroalaViewModule} from './view';\n\nexport {\n FroalaEditorDirective,\n FroalaEditorModule\n} from './editor';\n\nexport {\n FroalaViewDirective,\n FroalaViewModule\n} from './view';\n\nconst MODULES = [\n FroalaEditorModule,\n FroalaViewModule\n]\n\n@NgModule({\n imports: [\n FroalaEditorModule.forRoot(),\n FroalaViewModule.forRoot()\n ],\n exports: MODULES\n})\nexport class FERootModule {\n\n}\n\n\n// WEBPACK FOOTER //\n// ./src/index.ts","import { NgModule, ModuleWithProviders } from '@angular/core';\n\nimport { FroalaViewDirective } from './view.directive';\n\n@NgModule({\n declarations: [FroalaViewDirective],\n exports: [FroalaViewDirective]\n})\nexport class FroalaViewModule {\n public static forRoot(): ModuleWithProviders {\n return {ngModule: FroalaViewModule, providers: []};\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/view/view.module.ts","module.exports = __WEBPACK_EXTERNAL_MODULE_8__;\n\n\n//////////////////\n// WEBPACK FOOTER\n// external \"@angular/forms\"\n// module id = 8\n// module chunks = 0"],"sourceRoot":""}