Ledzz / angular2-tinymce

Angular 2 component for TinyMCE MCE WYSIWYG editor
https://angular2-tinymce.surge.sh
65 stars 37 forks source link

Issue with Angular 5 #73

Open pujoey opened 6 years ago

pujoey commented 6 years ago

I'm using Angular 5.2, can someone tell me which version of angular2-tinymce will work?

    "tinymce": "^4.8.3",
    "angular2-tinymce": "^3.3.0",
    "@angular/core": "^5.2.0",
WARNING in ./node_modules/angular2-tinymce/fesm5/angular2-tinymce.js
27:67-83 "export 'defineInjectable' was not found in '@angular/core'
    at HarmonyImportSpecifierDependency._getErrors (/Users/joey/code/blewski/node_modules/webpack/lib/dependencies/HarmonyImportSpecifierDependency.js:65:15)
    at HarmonyImportSpecifierDependency.getWarnings (/Users/joey/code/blewski/node_modules/webpack/lib/dependencies/HarmonyImportSpecifierDependency.js:39:15)
    at Compilation.reportDependencyErrorsAndWarnings (/Users/joey/code/blewski/node_modules/webpack/lib/Compilation.js:703:24)
    at Compilation.finish (/Users/joey/code/blewski/node_modules/webpack/lib/Compilation.js:561:9)
    at applyPluginsParallel.err (/Users/joey/code/blewski/node_modules/webpack/lib/Compiler.js:502:17)
    at /Users/joey/code/blewski/node_modules/tapable/lib/Tapable.js:289:11
    at _addModuleChain (/Users/joey/code/blewski/node_modules/webpack/lib/Compilation.js:507:11)
    at processModuleDependencies.err (/Users/joey/code/blewski/node_modules/webpack/lib/Compilation.js:477:14)
    at _combinedTickCallback (internal/process/next_tick.js:131:7)
    at process._tickCallback (internal/process/next_tick.js:180:9)
 @ ./node_modules/angular2-tinymce/fesm5/angular2-tinymce.js
 @ ./src/app/app.module.ts
 @ ./src/main.ts
 @ multi webpack-dev-server/client?http://0.0.0.0:0 ./src/main.ts
pujoey commented 6 years ago

This is the only version that works for me with Angular 5.2

"angular2-tinymce": "^2.0.0"

BhushanChandak commented 5 years ago

after changing version to 2.0.0, I am getting following error:

compiler.js:485 Uncaught Error: Template parse errors:There is no directive with "exportAs" set to "tinymce" ("<div class="row"> <div class="col-8"> <app-tinymce [(ngModel)]='htmlContent'[ERROR ->]#tinymce='tinymce' ></app-tinymce> </div>

Do you have any answer for this? I am also trying to integrate in angular 5.2 project