Fork me on GitHub

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' }
    ]
  })

 

posted @ 2020-12-07 22:58  Something_Diffrent  阅读(318)  评论(0编辑  收藏  举报