Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

angular2-tinymce

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular2-tinymce - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

src/angular2-tinymce.default.ts

2

package.json
{
"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 @@ })

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc