Giter Site home page Giter Site logo

boatzako / ngx-froala Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 17 KB

Angular 9+ plugin for Froala Editor

License: MIT License

JavaScript 8.92% TypeScript 91.08%
angular6 angular7 angular angularjs froala froala-editor wysiwyg-editor wysiwyg angular9

ngx-froala's Introduction

ngx-froala

dependencies Status devDependencies Status

Angular 9+ bindings for Froala WYSIWYG Editor. See Demo

Getting Started

You can install ngx-froala by using npm.

npm install ngx-froala froala-editor --save

Add Froala editor to angular app

Open angular.json file

  • insert a new entry into the styles array
"styles": [
  "node_modules/froala-editor/css/froala_editor.pkgd.css",
  "..."
],
  • insert a new entry into the scripts array
"scripts": [
  "node_modules/froala-editor/js/froala_editor.pkgd.min.js",
  "..."
],

Usage

Import ngx-froala module

import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppComponent } from './app.component';

import { NgxFroalaModule } from 'ngx-froala'; // <-- add

@NgModule({
  imports: [
    BrowserModule, 
    NgxFroalaModule  // <-- add
  ],
  declarations: [ 
    AppComponent,
  ],
  bootstrap: [ AppComponent ]
})
export class AppModule { }

Then in HTML

<div froalaEditor [options]="options" [(ngModel)]="text"></div>

Froala editor directive

Input

[options]

  • type: FroalaOptions
  • require: false
  • description: option for froala editor. see document

Output

[oncreated]

  • return: Froala instance
  • description: trigger when created the froala editor

Froala view

<ngx-froala-view [text]="text"></ngx-froala-view>

Input

[text]

  • type: string
  • require: true

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details

ngx-froala's People

Contributors

boatzako avatar

Watchers

 avatar

Forkers

sivajid788

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.