New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

ng2sf-tinymce

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng2sf-tinymce

A TinyMce widget for Angular2 Schema Form.

latest
Source
npmnpm
Version
1.0.7
Version published
Weekly downloads
10
-41.18%
Maintainers
1
Weekly downloads
 
Created
Source

TinyMCE widget for Angular2 Schema Form

Install

    npm install ng2sf-tinymce

Usage

Add Ng2SFTinyMCEModule wherever you need it in your dependency tree:


    import { SchemaFormModule } from "angular2-schema-form";
    import { Ng2SFTinyMCEModule } from "ng2sf-tinymce";

    @NgModule({
        imports: [
            BrowserModule,
            /*...*/
            SchemaFormModule,
            Ng2SFTinyMCEModule
        ],
        declarations: [AppComponent, /*...*/]
    })
    export class AppModule {}

Register the TinyMCEWidget in your WidgetRegistry:

    import { WidgetRegistry } from "angular2-schema-form"; 
	import { TinyMCEWidget } from "ng2sf-tinymce";

    @Component({/*...*/})
    export class AppComponent {
        constructor(widgetRegistry: WidgetRegistry) {
            widgetRegistry.register("tinymce", TinyMCEWidget);
        }
    }

Use the tinymce widget's id in your schema:

    {
        "type": "object",
        "properties": {
            "type": "string",
            "description": "A richtext input",
            "widget": "tinymce"
        }
    }

Keywords

tinymce

FAQs

Package last updated on 01 Nov 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts