Gathering detailed insights and metrics for angular2-tinymce
Gathering detailed insights and metrics for angular2-tinymce
Gathering detailed insights and metrics for angular2-tinymce
Gathering detailed insights and metrics for angular2-tinymce
ng2sf-tinymce
A TinyMce widget for Angular2 Schema Form.
ng2-tinymce
Angular2 TinyMCE component
ng2-tinymce-alt
Angular 2 component for TinyMCE MCE WYSIWYG editor based on 'angular2-tinymce'('https://www.npmjs.com/package/angular2-tinymce')
bludata-angular-tinymce
Angular component for TinyMCE MCE WYSIWYG editor , this is a copy with personal changes from Ledzz angular2-tinymce cause I needed ASAP this changes. I'll request the changes at his package and deprecate this one. Please use the original at https://github
npm install angular2-tinymce
Typescript
Module System
Node Version
NPM Version
TypeScript (84.6%)
JavaScript (10.7%)
HTML (4.36%)
CSS (0.34%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
65 Stars
40 Commits
36 Forks
11 Watchers
1 Branches
9 Contributors
Updated on Aug 28, 2024
Latest Version
3.3.0
Package Id
angular2-tinymce@3.3.0
Unpacked Size
292.07 kB
Size
61.23 kB
File Count
32
NPM Version
6.2.0
Node Version
10.8.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
3
Now compatible with Angular 6!
First, install tinymce and this lib via npm:
npm install --save tinymce angular2-tinymce
Then copy lightgray skin files from node_modules/tinymce
to the /assets
folder. So, i.e. there must be available /assets/tinymce/skins/lightgray/skin.min.css
and /assets/tinymce/skins/lightgray/content.min.css
file.
You can override skin path by specifying skin_url
option (default /assets/tinymce/skins/lightgray
).
To support AOT mode in Angular 6 and higher you also need to include tinymce in your scripts section in angular.json config file:
1 "scripts": [ 2 "node_modules/tinymce/tinymce.min.js", 3 ... 4]
Import TinymceModule
in you app.module.ts
like this:
1import { TinymceModule } from 'angular2-tinymce'; 2 3@NgModule({ 4 imports: [ 5 ... 6 TinymceModule.withConfig({}) 7 ], 8 ... 9}) 10export class AppModule { }
Then use it:
1<app-tinymce [formControl]='contentControl'></app-tinymce>
or
1<app-tinymce [(ngModel)]='content'></app-tinymce>
You can also use template variable tinymce
to get instance of tinymce:
1<app-tinymce [(ngModel)]='content' #tinymce='tinymce'></app-tinymce>
then in component.ts:
1@ViewChild('tinymce') tinymce; 2ngAfterViewInit() { 3 console.log(this.tinymce); 4}
You can configure TinyMCE globally:
1import { TinymceModule } from 'angular2-tinymce'; 2 3@NgModule({ 4 imports: [ 5 ... 6 TinymceModule.withConfig({ 7 ... //any TinyMCE config here 8 }) 9 ], 10 ... 11}) 12export class AppModule { }
Please note that config is extended a bit.
Besides the original config angular2-tinymce supports baseURL
for providing, i.e., custom plugins paths.
auto_focus
option is boolean instead of string.
You cannot specify selector
option (and you don't need to, right?).
setup
and init_instance_callback
are executed after the components'.
You can view more info about supported options here
Also you can override options in each instance like that:
1<app-tinymce [(ngModel)]='title' [options]='{ branding:false }'></app-tinymce>
You can use outputs to catch tinymce events. You can see full list of available outputs here.
1<app-tinymce [(ngModel)]='title' (init)='log($event)' (keydown)='log($event)'></app-tinymce>
If you need other plugins than standart (link paste table advlist autoresize lists code
) you should create plugins folder in the baseURL
(default '/assets/tinymce'
) and place your plugins in it.
Example:
Place emoticons plugin to an /assets/tinymce/plugins
folder, then:
1import { TinymceModule } from 'angular2-tinymce'; 2 3@NgModule({ 4 imports: [ 5 ... 6 TinymceModule.withConfig({ 7 plugins: ['emoticons'], 8 toolbar: 'emoticons' 9 }) 10 ], 11 ... 12}) 13export class AppModule { }
Alternativaly you can npm install tinymce --save
and import plugins like that:
1import 'tinymce/plugins/emoticons/plugin.js';
Please feel free to leave your PRs, issues, feature requests.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
186 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More