angular2-tinymce
Advanced tools
Comparing version 1.1.1 to 1.1.2
{ | ||
"name": "angular2-tinymce", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Angular 2 component for TinyMCE MCE WYSIWYG editor", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
import { Component, OnDestroy, AfterViewInit, forwardRef, NgZone, Inject } from '@angular/core'; | ||
import { NG_VALUE_ACCESSOR, ControlValueAccessor } from '@angular/forms'; | ||
import { TinymceDefaultOptions } from './angular2-tinymce.default'; | ||
import { TinymceOptions } from './angular2-tinymce.config.interface'; | ||
@@ -42,3 +43,3 @@ | ||
) { | ||
this.options = Object.assign(new TinymceOptions(), this.config); | ||
this.options = Object.assign(new TinymceDefaultOptions(), this.config); | ||
this.options.selector = '#' + this.elementId; | ||
@@ -45,0 +46,0 @@ this.options.setup = editor => { |
@@ -1,19 +0,11 @@ | ||
export class TinymceOptions { | ||
export interface TinymceOptions { | ||
// Main options | ||
plugins?: Array<string> = [ | ||
'link', | ||
'paste', | ||
'table', | ||
'advlist', | ||
'autoresize', | ||
'lists', | ||
'code' | ||
]; | ||
skin_url?: string = '/assets/tinymce/skins/lightgray'; | ||
plugins?: Array<string>; | ||
skin_url?: string; | ||
selector?: string; | ||
setup?: any; | ||
init_instance_callback?: any; | ||
baseURL?: string = '/assets/tinymce'; // I.e. may be used for custom plugins | ||
baseURL?: string; // I.e. may be used for custom plugins | ||
contextmenu?: string; | ||
auto_focus?: boolean = true; // This is boolean instead of string | ||
auto_focus?: boolean; // This is boolean instead of string | ||
cache_suffix?: string; | ||
@@ -20,0 +12,0 @@ content_security_policy?: string; |
@@ -5,2 +5,4 @@ import { NgModule, ModuleWithProviders } from '@angular/core'; | ||
import { TinymceOptions } from './angular2-tinymce.config.interface'; | ||
import { TinymceDefaultOptions } from './angular2-tinymce.default'; | ||
import tinymce from 'tinymce/tinymce.js'; | ||
@@ -20,3 +22,3 @@ | ||
providers: [ | ||
{ provide: 'TINYMCE_CONFIG', useClass: TinymceOptions } | ||
{ provide: 'TINYMCE_CONFIG', useClass: TinymceDefaultOptions } | ||
] | ||
@@ -23,0 +25,0 @@ }) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24758
16
708