{"id":13481086,"url":"https://github.com/froala/angular-froala-wysiwyg","last_synced_at":"2025-05-14T00:08:28.563Z","repository":{"id":10096830,"uuid":"63350161","full_name":"froala/angular-froala-wysiwyg","owner":"froala","description":"Angular 4, 5, 6, 7, 8 and 9 plugin for Froala WYSIWYG HTML Rich Text Editor.","archived":false,"fork":false,"pushed_at":"2025-04-29T07:59:47.000Z","size":1524,"stargazers_count":738,"open_issues_count":185,"forks_count":204,"subscribers_count":30,"default_branch":"master","last_synced_at":"2025-04-29T08:42:49.213Z","etag":null,"topics":["angular2","angular4","angular5","angular6","froala","html-editor","rich-text-editor","text-editor","wysiwyg","wysiwyg-editor"],"latest_commit_sha":null,"homepage":"https://froala.com/wysiwyg-editor","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/froala.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-07-14T15:56:12.000Z","updated_at":"2025-04-12T13:38:01.000Z","dependencies_parsed_at":"2024-06-14T09:48:07.763Z","dependency_job_id":"c6bad2c4-18fc-44e9-93f9-95e108aa8d22","html_url":"https://github.com/froala/angular-froala-wysiwyg","commit_stats":{"total_commits":233,"total_committers":33,"mean_commits":"7.0606060606060606","dds":0.6609442060085837,"last_synced_commit":"957d8e6434e4f2821e31d7f78900a43c6fe46c50"},"previous_names":["froala/angular2-froala-wysiwyg"],"tags_count":93,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/froala%2Fangular-froala-wysiwyg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/froala%2Fangular-froala-wysiwyg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/froala%2Fangular-froala-wysiwyg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/froala%2Fangular-froala-wysiwyg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/froala","download_url":"https://codeload.github.com/froala/angular-froala-wysiwyg/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254043996,"owners_count":22005055,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["angular2","angular4","angular5","angular6","froala","html-editor","rich-text-editor","text-editor","wysiwyg","wysiwyg-editor"],"created_at":"2024-07-31T17:00:48.563Z","updated_at":"2025-05-14T00:08:23.553Z","avatar_url":"https://github.com/froala.png","language":"TypeScript","funding_links":[],"categories":["Uncategorized","TypeScript","Awesome Angular [![Awesome TipeIO](https://img.shields.io/badge/Awesome%20Angular-@TipeIO-6C6AE7.svg)](https://github.com/gdi2290/awesome-angular) [![Awesome devarchy.com](https://img.shields.io/badge/Awesome%20Angular-@devarchy.com-86BDC1.svg)](https://github.com/brillout/awesome-angular-components)","Third Party Components"],"sub_categories":["Uncategorized","Angular \u003ca id=\"angular\"\u003e\u003c/a\u003e","Editors"],"readme":"# Angular Froala WYSIWYG Editor - [Demo](https://www.froala.com/wysiwyg-editor)\n\n[![npm](https://img.shields.io/npm/v/angular-froala-wysiwyg.svg)](https://www.npmjs.com/package/angular-froala-wysiwyg)\n[![npm](https://img.shields.io/npm/dm/angular-froala-wysiwyg.svg)](https://www.npmjs.com/package/angular-froala-wysiwyg)\n[![npm](https://img.shields.io/npm/l/angular-froala-wysiwyg.svg)](https://www.npmjs.com/package/angular-froala-wysiwyg)\n\n\u003eAngular 19+ versions bindings for Froala WYSIWYG Editor.\n\n![WYSIWYG HTML Editor](https://raw.githubusercontent.com/froala/wysiwyg-editor/v2/editor.jpg)\n\n## Table of contents\n1. [Installation instructions](#installation-instructions)\n2. [Update editor instructions](#update-editor-instructions)\n3. [Integration](#integration)\n   - [angular-cli](#use-with-angular-cli)\n   - [ionic v2 or v3](#use-with-ionic-v2-or-v3)\n   - [webpack/starter](#use-with-webpack)\n   - [System.js and JIT](#use-with-systemjs-and-jit)\n   - [AOT](#use-with-aot)\n4. [Usage](#usage)\n5. [Manual Initialization](#manual-initialization)\n6. [Displaying HTML](#displaying-html)\n7. [License](#license)\n8. [Development environment setup](#development-environment-setup)\n\n## Installation instructions\n\nInstall `angular-froala-wysiwyg` from `npm`\n\n```bash\nnpm install angular-froala-wysiwyg\n```\n\nYou will need CSS styles\n\n```html\n\u003c!-- index.html --\u003e\n\u003clink href=\"node_modules/froala-editor/css/froala_editor.pkgd.min.css\" rel=\"stylesheet\"\u003e\n```\n\n\u003eNote :  In case you want to use font-awesome icons , you can use them by installing it.\n- Run ` npm install font-awesome ` \n- Or in `index.hml` add given cdn  \n `\u003clink rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css\"\u003e`\n\n\n## Update editor instructions\n\n```bash\nnpm update froala-editor --save\n```\n\n## Integration\n\n### Use with Angular CLI\n\n#### Installing @angular/cli\n\n*Note*: you can skip this part if you already have application generated.\n\n```bash\nnpm install -g @angular/cli\nng new my-app\ncd my-app\n```\n\n#### Add angular-froala-wysiwyg\n\n- install `angular-froala-wysiwyg`\n\n```bash\nnpm install angular-froala-wysiwyg --save\n```\n\n- if you are adding Froala to an application that uses Server-side rendering, open `src/app/app.component.ts` and add\n\n```typescript\n// Import helpers to detect browser context\nimport { PLATFORM_ID, Inject } from '@angular/core';\nimport { isPlatformBrowser } from \"@angular/common\";\n// Import Angular plugin.\nimport { FroalaEditorModule, FroalaViewModule } from 'angular-froala-wysiwyg';\n...\n\n@Component({\n  ...\n  imports: [FroalaEditorModule, FroalaViewModule ... ],\n  ...\n})\n\nexport class AppComponent {\n  ...\n  constructor(@Inject(PLATFORM_ID) private platformId: Object) {}\n\n  ngOnInit() {\n    // Import Froala plugins dynamically only in the browser context\n    if (isPlatformBrowser(this.platformId)) {\n      // Import all Froala Editor plugins.\n      // @ts-ignore\n      // import('froala-editor/js/plugins.pkgd.min.js');\n\n      // Import a single Froala Editor plugin.\n      // @ts-ignore\n      // import('froala-editor/js/plugins/align.min.js');\n\n      // Import a Froala Editor language file.\n      // @ts-ignore\n      // import('froala-editor/js/languages/de.js');\n\n      // Import a third-party plugin.\n      // @ts-ignore\n      // import('froala-editor/js/third_party/font_awesome.min');\n      // @ts-ignore\n      // import('froala-editor/js/third_party/image_tui.min');\n      // @ts-ignore\n      // import('froala-editor/js/third_party/spell_checker.min';\n      // @ts-ignore\n      // import('froala-editor/js/third_party/embedly.min');\n    }\n  }\n  ...\n}\n```\n\n- alternatively, for non-SSR applications, open `src/app/app.module.ts` and add\n\n```typescript\n// Import all Froala Editor plugins.\n// import 'froala-editor/js/plugins.pkgd.min.js';\n\n// Import a single Froala Editor plugin.\n// import 'froala-editor/js/plugins/align.min.js';\n\n// Import a Froala Editor language file.\n// import 'froala-editor/js/languages/de.js';\n\n// Import a third-party plugin.\n// import 'froala-editor/js/third_party/font_awesome.min';\n// import 'froala-editor/js/third_party/image_tui.min';\n// import 'froala-editor/js/third_party/spell_checker.min';\n// import 'froala-editor/js/third_party/embedly.min';\n\n// Import Angular plugin.\nimport { FroalaEditorModule, FroalaViewModule } from 'angular-froala-wysiwyg';\n...\n\n@NgModule({\n   ...\n   imports: [FroalaEditorModule.forRoot(), FroalaViewModule.forRoot() ... ],\n   ...\n})\n```\n\n- open `angular.json` file and insert a new entry into the `styles` array\n\n```json\n\"styles\": [\n  \"styles.css\",\n  \"./node_modules/froala-editor/css/froala_editor.pkgd.min.css\",\n  \"./node_modules/froala-editor/css/froala_style.min.css\",\n]\n```\n\n- open `src/app/app.component.html` and add\n\n```html\n\u003cdiv [froalaEditor]\u003eHello, Froala!\u003c/div\u003e\n```\n\n#### Run angular-cli\n```bash\nng serve\n```\n\n\n\n### Use with `ionic v2 or v3`\n\n#### Create Ionic app\n\n*Note*: you can skip this part if you already have application generated.\n\n```bash\nnpm install -g cordova ionic\nionic start sample blank\ncd sample\n```\n\n#### Add angular-froala-wysiwyg\n\nFor v3 make sure that you use the latest version of ionic and also the latest version of angular.\n\nInstalling Froala Wysiwyg Editor in Ionic is fairly easy, it can be done using npm:\n```bash\nnpm install angular-froala-wysiwyg --save\n```\n\n- Inside `src/app/app.component.html` add\n\n```html\n\u003cion-app\u003e\n\u003cion-router-outlet\u003e\u003c/ion-router-outlet\u003e\n\u003cdiv [froalaEditor]\u003eHello, Froala!\u003c/div\u003e\n\u003c/ion-app\u003e\n```\n\n\n- open `src/app/app.module.ts` and add\n\n```typescript\n// Import all Froala Editor plugins.\n// import 'froala-editor/js/plugins.pkgd.min.js';\n\n// Import a single Froala Editor plugin.\n// import 'froala-editor/js/plugins/align.min.js';\n\n// Import a Froala Editor language file.\n// import 'froala-editor/js/languages/de.js';\n\n// Import a third-party plugin.\n// import 'froala-editor/js/third_party/font_awesome.min';\n// import 'froala-editor/js/third_party/image_tui.min';\n// import 'froala-editor/js/third_party/spell_checker.min';\n// import 'froala-editor/js/third_party/embedly.min';\n\n// Import Angular2 plugin.\nimport { FroalaEditorModule, FroalaViewModule } from 'angular-froala-wysiwyg';\n...\n\n```\nReplace  \n```\nimports: [BrowserModule, IonicModule.forRoot(), AppRoutingModule]\n```\nwith   \n```\nimports: [BrowserModule, IonicModule.forRoot(), AppRoutingModule,FroalaEditorModule.forRoot(), FroalaViewModule.forRoot()]\n```\n\n- Inside `src/app/app-routing.module.ts` remove the line\n```\n{ path: '', redirectTo: 'home', pathMatch: 'full' }  \n```\n\n- Inside `src/index.html`\n\n```html\n\u003clink rel=\"stylesheet\" href=\"assets/css/font-awesome.min.css\"\u003e  \n\u003clink rel=\"stylesheet\" href=\"assets/css/froala_editor.pkgd.min.css\"\u003e\n\u003clink rel=\"stylesheet\" href=\"assets/css/froala_style.min.css\"\u003e\n```\n\n- In `angular.json` change outpath of build to  \"outputPath\": \"src/assets\" and insert following inside `assets`array  of build:\n```javascript\n\"assets\":[\n ...,\n \n  {\n    \"glob\": \"**/*\",\n    \"input\": \"node_modules/froala-editor/css\",\n    \"output\": \"css\"\n  },\n  {\n    \"glob\": \"**/*\",\n    \"input\": \"node_modules/font-awesome/css\",\n    \"output\": \"css\"\n  },\n  {\n    \"glob\": \"**/*\",\n    \"input\": \"node_modules/font-awesome/fonts\",\n    \"output\": \"fonts\"\n  },\n  {\n    \"glob\": \"**/*\",\n    \"input\": \"node_modules/froala-editor/js\",\n    \"output\": \"js\"\n  }\n ]\n```\n\n#### Run your App\n\n```bash\nionic build\nionic serve\n```\n\n\n\n### Use with `webpack/starter`\n\n#### Create webpack app\n\n*Note*: you can skip this part if you already have application generated.\n\n```bash\ngit clone --depth 1 https://github.com/AngularClass/angular-starter.git\ncd angular-starter\nnpm install\nnpm install rxjs@6.0.0 --save\nnpm install @types/node@10.1.4\n```\n\n#### Add angular-froala-wysiwyg\n\n- install `angular-froala-wysiwyg`\n\n```bash\nnpm install angular-froala-wysiwyg --save\n```\n\n- open `src/app/app.module.ts` and add\n\n```typescript\n// Import all Froala Editor plugins.\n// import 'froala-editor/js/plugins.pkgd.min.js';\n\n// Import a single Froala Editor plugin.\n// import 'froala-editor/js/plugins/align.min.js';\n\n// Import a Froala Editor language file.\n// import 'froala-editor/js/languages/de.js';\n\n// Import a third-party plugin.\n// import 'froala-editor/js/third_party/font_awesome.min';\n// import 'froala-editor/js/third_party/image_tui.min';\n// import 'froala-editor/js/third_party/spell_checker.min';\n// import 'froala-editor/js/third_party/embedly.min';\n\n// Import Angular plugin.\nimport { FroalaEditorModule, FroalaViewModule } from 'angular-froala-wysiwyg';\n...\n\n@NgModule({\n   ...\n   imports: [FroalaEditorModule.forRoot(), FroalaViewModule.forRoot(), ... ],\n   ...\n})\n```\n\n- open `src/app/app.component.ts` and add to the template\n\n```html\n\u003cdiv [froalaEditor]\u003eHello, Froala!\u003c/div\u003e\n```\n\n- open `config/webpack.common.js`\n\n```javascript\nvar webpack = require('webpack');\n```\n\n\n- open `config/webpack.common.js` and add the following to `CopyWebpackPlugin`\n\n```javascript\n{\n  from: 'node_modules/froala-editor/css/',\n  to: 'assets/froala-editor/css/',\n},\n```\n\n- open `config/head-config.common.js` and add a new entry to link\n\n```javascript\n{ rel: 'stylesheet', href: '/assets/froala-editor/css/froala_editor.pkgd.min.css' },\n{ rel: 'stylesheet', href: '/assets/froala-editor/css/froala_style.min.css' }\n```\n\n#### Run webpack app\n\n```bash\nnpm run start\n```\n\n### Use with `system.js` and `JIT`\n\n#### Create Angular app\n\n*Note*: you can skip this part if you already have application generated.\n\n```bash\ngit clone https://github.com/froala/angular-froala-systemjs-demo\ncd angular-froala-systemjs-demo\nnpm install\n```\n\n#### Add angular-froala-wysiwyg\n\n- install `angular-froala-wysiwyg`\n\n```bash\nnpm install angular-froala-wysiwyg --save\n```\n\n- open `src/index.html` and add\n\n```html\n\u003clink rel=\"stylesheet\" href=\"node_modules/froala-editor/css/froala_editor.pkgd.min.css\"\u003e\n\u003clink rel=\"stylesheet\" href=\"node_modules/froala-editor/css/froala_style.min.css\"\u003e\n```\n\n- open `src/app/app.module.ts` and add\n\n```typescript\n// Import all Froala Editor plugins.\n// import 'froala-editor/js/plugins.pkgd.min.js';\n\n// Import a single Froala Editor plugin.\n// import 'froala-editor/js/plugins/align.min.js';\n\n// Import a Froala Editor language file.\n// import 'froala-editor/js/languages/de.js';\n\n// Import a third-party plugin.\n// import 'froala-editor/js/third_party/font_awesome.min';\n// import 'froala-editor/js/third_party/image_tui.min';\n// import 'froala-editor/js/third_party/spell_checker.min';\n// import 'froala-editor/js/third_party/embedly.min';\n\n// Import Angular2 plugin.\nimport { FroalaEditorModule, FroalaViewModule } from 'angular-froala-wysiwyg';\n...\n\n@NgModule({\n   ...\n   imports: [FroalaEditorModule.forRoot(), FroalaViewModule.forRoot(), ... ],\n   ...\n})\n```\n\n- open `src/app/app.component.ts` file and add to the template\n\n```html\n\u003cdiv [froalaEditor]\u003eHello, Froala!\u003c/div\u003e\n```\n\n#### Run app\n\n```bash\nnpm run start\n```\n\n\n\n### Use with `aot`\n\n#### Create Angular app\n\n1. ng new froala-aot\n\n```javascript\n{\n  \"glob\": \"**/*\",\n  \"input\": \"./node_modules/froala-editor\",\n  \"output\": \"assets/froala-editor/\"\n},\n{\n  \"glob\": \"**/*\",\n  \"input\": \"./node_modules/font-awesome\",\n  \"output\": \"assets/font-awesome/\"\n},\n{\n  \"glob\": \"**/*\",\n  \"input\": \"./node_modules/jquery\",\n  \"output\": \"assets/jquery/\"\n}\n```\n- Go to `package.json` and update `scripts.build` to `ng build --aot` and `scripts.start` to `ng serve --aot`\n\n#### Add angular-froala-wysiwyg\n\n- install `angular-froala-wysiwyg`\n\n In case you want to use font-awesome icons , you can use them by installing it.\n\n- Run ` npm install font-awesome ` and add in `app.module.ts`\n```\nimport 'froala-editor/js/third_party/font_awesome.min';\n```\n\n- Go to `angular.json` and change `architect.build.options.outputPath` to `src/dist` and add following json to `architect.build.options.assets array` \n\n```bash\nnpm install angular-froala-wysiwyg --save\n```\n\n- open `src/index.html` and add\n\n```html\n\u003clink rel=\"stylesheet\" href=\"assets/font-awesome/css/font-awesome.min.css\"\u003e\n\u003clink rel=\"stylesheet\" href=\"assets/froala-editor/css/froala_editor.pkgd.min.css\"\u003e\n```\n\n- open `src/app/app.module.ts` and add\n\n```typescript\n// Import all Froala Editor plugins.\n// import 'froala-editor/js/plugins.pkgd.min.js';\n\n// Import a single Froala Editor plugin.\n// import 'froala-editor/js/plugins/align.min.js';\n\n// Import a Froala Editor language file.\n// import 'froala-editor/js/languages/de.js';\n\n// Import a third-party plugin.\n// import 'froala-editor/js/third_party/image_tui.min';\n// import 'froala-editor/js/third_party/spell_checker.min';\n// import 'froala-editor/js/third_party/embedly.min';\n\n// Import Angular2 plugin.\nimport { FroalaEditorModule, FroalaViewModule } from 'angular-froala-wysiwyg';\n...\n\n@NgModule({\n   ...\n   imports: [FroalaEditorModule.forRoot(), FroalaViewModule.forRoot(), ... ],\n   ...\n})\n```\n\n- open `src/app/app.component.ts` file and add to the template\n\n```html\n\u003cdiv [froalaEditor]\u003eHello, Froala!\u003c/div\u003e\n```\n\n#### Run app\n\n```bash\nnpm run build\nnpm run start\n```\n\n\n## Usage\n\n### Options\n\nYou can pass editor options as Input (optional).\n\n`[froalaEditor]='options'`\n\nYou can pass any existing Froala option. Consult the [Froala documentation](https://www.froala.com/wysiwyg-editor/docs/options) to view the list of all the available options:\n\n```typescript\npublic options: Object = {\n  placeholderText: 'Edit Your Content Here!',\n  charCounterCount: false\n}\n```\n\nAdditional option is used:\n* **immediateAngularModelUpdate**: (default: false) This option synchronizes the angular model as soon as a key is released in the editor. Note that it may affect performances.\n\n\n\n### Events and Methods\n\nEvents can be passed in with the options, with a key events and object where the key is the event name and the value is the callback function.\n\n```typescript\npublic options: Object = {\n  placeholder: \"Edit Me\",\n  events : {\n    'focus' : function(e, editor) {\n      console.log(editor.selection.get());\n    }\n  }\n}\n```\n\nUsing the editor instance from the arguments of the callback you can call editor methods as described in the [method docs](http://froala.com/wysiwyg-editor/docs/methods).\n\nFroala events are described in the [events docs](https://froala.com/wysiwyg-editor/docs/events).\n\n\n\n### Model\n\nThe WYSIWYG HTML editor content model.\n\n`[(froalaModel)]=\"editorContent\"`\n\nPass initial content:\n\n```typescript\npublic editorContent: string = 'My Document\\'s Title'\n```\n\nUse the content in other places:\n\n```html\n\u003cinput [ngModel]=\"editorContent\"/\u003e\n\u003cinput [(ngModel)]=\"editorContent\"/\u003e \u003c!-- For two way binding --\u003e\n```\n\nOther two way binding example:\n\n```html\n\u003cdiv [froalaEditor] [(froalaModel)]=\"editorContent\"\u003e\u003c/div\u003e\n\u003cdiv [froalaEditor] [(froalaModel)]=\"editorContent\"\u003e\u003c/div\u003e\n```\n\nUse it with reactive forms:\n\n```html\n\u003cform [formGroup]=\"form\" (ngSubmit)=\"onSubmit()\"\u003e\n  \u003ctextarea [froalaEditor] formControlName=\"formModel\"\u003e\u003c/textarea\u003e\n  \u003cbutton type=\"submit\"\u003eSubmit\u003c/button\u003e\n\u003c/form\u003e\n```\n\nIf you want to use two-way binding to display the form model in other places you must include `[(froalaModel)]`:\n\n```html\n\u003cform [formGroup]=\"form\" (ngSubmit)=\"onSubmit()\"\u003e\n  \u003ctextarea [froalaEditor] formControlName=\"formModel\" [(froalaModel)]=\"form.formModel\"\u003e\u003c/textarea\u003e\n  \u003cdiv [froalaView]=\"form.formModel\"\u003e\u003c/div\u003e\n  \u003cbutton type=\"submit\"\u003eSubmit\u003c/button\u003e\n\u003c/form\u003e\n```\n\nIf you want to wrap froalaEditor directive into a component that supports reactive forms please see [froala.component.ts](https://github.com/froala/angular-froala-wysiwyg/blob/master/projects/demo/src/app/froala.component.ts) from demo.\n\n### Extend functionality\n\nYou can extend the functionality by adding a custom button like bellow:\n\n```typescript\n// Import Froala Editor.\nimport FroalaEditor from 'froala-editor';\n\n// We will make usage of the Init hook and make the implementation there.\nimport { Component, OnInit  } from '@angular/core';\n\n@Component({\n  selector: 'app-demo',\n  template: `\u003cdiv class=\"sample\"\u003e\n               \u003ch2\u003eSample 11: Add Custom Button\u003c/h2\u003e\n               \u003cdiv [froalaEditor]=\"options\" [(froalaModel)]=\"content\" \u003e\u003c/div\u003e\n             \u003c/div\u003e`,\n\n\nexport class AppComponent implements OnInit{\n\n  ngOnInit () {\n    FroalaEditor.DefineIcon('alert', {NAME: 'info'});\n    FroalaEditor.RegisterCommand('alert', {\n      title: 'Hello',\n      focus: false,\n      undo: false,\n      refreshAfterCallback: false,\n\n      callback: () =\u003e {\n        alert('Hello!', this);\n      }\n    });\n  }\n\n  public options: Object = {\n    charCounterCount: true,\n    toolbarButtons: ['bold', 'italic', 'underline', 'paragraphFormat','alert'],\n    toolbarButtonsXS: ['bold', 'italic', 'underline', 'paragraphFormat','alert'],\n    toolbarButtonsSM: ['bold', 'italic', 'underline', 'paragraphFormat','alert'],\n    toolbarButtonsMD: ['bold', 'italic', 'underline', 'paragraphFormat','alert'],\n  };\n}\n```\n\n\n### Special tags\nNote: In order to use special tags in `app.module.ts` add\n```\n// Import all Froala Editor plugins.\n import 'froala-editor/js/plugins.pkgd.min.js';\n```\n\nYou may also use the editor on **img**, **button**, **input** and **a** tags:\n\n```html\n\u003cimg [froalaEditor] [(froalaModel)]=\"imgObj\"/\u003e\n```\n\nThe model must be an object containing the attributes for your special tags. Example:\n\n```typescript\npublic imgObj: Object = {\n  src: 'path/to/image.jpg'\n};\n```\n\nThe froalaModel will change as the attributes change during usage.\n\n* froalaModel can contain a special attribute named **innerHTML** which inserts innerHTML in the element: If you are using 'button' tag, you can specify the button text like this:\n\n```typescript\npublic buttonModel: Object = {\n  innerHTML: 'Click Me'\n};\n```\nAs the button text is modified by the editor, the **innerHTML** attribute from buttonModel model will be modified too.\n\n\n\n### Specific option for special tags\n\n* **angularIgnoreAttrs**: (default: null) This option is an array of attributes that you want to ignore when the editor updates the froalaModel:\n\n```typescript\npublic inputOptions: Object = {\n  angularIgnoreAttrs: ['class', 'id']\n};\n```\n\n\n\n## Manual Initialization\n\nGets the functionality to operate on the editor: create, destroy and get editor instance. Use it if you want to manually initialize the editor.\n\n`(froalaInit)=\"initialize($event)\"`\n\nWhere `initialize` is the name of a function in your component which will receive an object with different methods to control the editor initialization process.\n\n```typescript\npublic initialize(initControls) {\n  this.initControls = initControls;\n  this.deleteAll = function() {\n  \tthis.initControls.getEditor()('html.set', '');\n  };\n}\n```\n\nThe object received by the function will contain the following methods:\n\n- **initialize**: Call this method to initialize the Froala Editor\n- **destroy**: Call this method to destroy the Froala Editor\n- **getEditor**: Call this method to retrieve the editor that was created. This method will return *null* if the editor was not yet created\n\n\n\n\n## Displaying HTML\n\nTo display content created with the froala editor use the froalaView directive.\n\n`[froalaView]=\"editorContent\"`\n\n```html\n\u003cdiv [froalaEditor] [(froalaModel)]=\"editorContent\"\u003e\u003c/div\u003e\n\u003cdiv [froalaView]=\"editorContent\"\u003e\u003c/div\u003e\n```\n\n\n\n## License\n\nThe `angular-froala-wyswiyg` project is under MIT license. However, in order to use Froala WYSIWYG HTML Editor plugin you should purchase a license for it.\n\nFroala Editor has [3 different licenses](http://froala.com/wysiwyg-editor/pricing) for commercial use.\nFor details please see [License Agreement](http://froala.com/wysiwyg-editor/terms).\n\n\n\n## Development environment setup\n\nIf you want to contribute to angular-froala-wyswiyg, you will first need to install the required tools to get the project going.\n\n#### Prerequisites\n\n* [Node Package Manager](https://npmjs.org/) (NPM)\n* [Git](http://git-scm.com/)\n\n#### Install dependencies\n\n    $ npm install\n\n#### Build\n\n    $ npm run demo.build\n\n#### Run Demo\n\n    $ npm run start\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffroala%2Fangular-froala-wysiwyg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffroala%2Fangular-froala-wysiwyg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffroala%2Fangular-froala-wysiwyg/lists"}