angular项目集成tinymce富文本输入框
https://www.tiny.cloud/docs/integrations/angular/#tinymceangularintegrationquickstartguide
1. npm install --save @tinymce/tinymce-angular
2. npm install --save tinymce
3.
Using a text editor; open angular.json
and add TinyMCE to the assets
property.
"assets": [
{ "glob": "**/*", "input": "node_modules/tinymce", "output": "/tinymce/" }
]
4.
import { EditorModule, TINYMCE_SCRIPT_SRC } from '@tinymce/tinymce-angular'; /* ... */ @NgModule({ /* ... */ imports: [ EditorModule ], providers: [ { provide: TINYMCE_SCRIPT_SRC, useValue: 'tinymce/tinymce.min.js' } ] })