aurelia TinyMCE
Aurelia TinyMCE HTML Editor Plugin
Installation
- npm install aurelia-tinymce --save
- (aurelia-cli) add package to the dependencies in the aurelia.json file.
"name": "aurelia-tinymce" "path": "../node_modules/aurelia-tinymce/dist/amd" "main": "index" "deps": "./tinymce/tinymce" "resources": "**/*.{css,html}"
- create a
fonts
andimg
directory in the root of your project (if you dont already have them). - copy the contents of
node_modules/aurelia-tinymce/dist/amd/tinymce/fonts
to thefonts
folder you created. - copy the contents of
node_modules/aurelia-tinymce/dist/amd/tinymce/img
to theimg
folder you created.
Usage
- add the plugin to your main.ts file.
; { aureliause //<-- This line ; if environmentdebug aureliause; if environmenttesting aureliause; aureliastart;}
- add the element to the view where you want to editor to go.
My Html Editor <!--This line-->