An open API service indexing awesome lists of open source software.

https://github.com/froala/angular-froala-systemjs-demo

A quick starter to use angular-froala with system js
https://github.com/froala/angular-froala-systemjs-demo

Last synced: about 1 year ago
JSON representation

A quick starter to use angular-froala with system js

Awesome Lists containing this project

README

          

# Angular Froala SystemJS - Demo
A quick starter to use angular-froala-wysiwyg with SystemJS

#### Add angular-froala-wysiwyg

- install `angular-froala-wysiwyg`

```bash
npm install angular-froala-wysiwyg --save
```

- open `src/app/app.module.ts` and add

```typescript
// Import all Froala Editor plugins.
// import 'froala-editor/js/plugins.pkgd.min.js';

// Import a single Froala Editor plugin.
// import 'froala-editor/js/plugins/align.min.js';

// Import a Froala Editor language file.
// import 'froala-editor/js/languages/de.js';

// Import Angular2 plugin.
import { FroalaEditorModule, FroalaViewModule } from 'angular-froala-wysiwyg';
...

@NgModule({
...
imports: [FroalaEditorModule.forRoot(), FroalaViewModule.forRoot(), ... ],
...
})
```

- open `angular.json` file and insert a new entry into the `styles` array

```json
"styles": [
"styles.css",
"./node_modules/froala-editor/css/froala_editor.pkgd.min.css",
"./node_modules/froala-editor/css/froala_style.min.css",
]
```

- open `src/app/app.component.ts` file and add to the template

```html

Hello, Froala!

```

-

#### Run app

```bash
npm run start
```