yabab-dev / ng2-ckeditor

Angular2 CKEditor component
MIT License
358 stars 96 forks source link

Will ng2-ckeditor work with angular 2.0.0? #316

Closed ShubhamTANDF closed 3 years ago

ShubhamTANDF commented 3 years ago

We have angular app which runs on angular 2.0.0. will ng2-ckeditor work for it. If yes then any specific versions we need to install

kzimny commented 3 years ago

Angular version 2.0.0 is pretty old! I would recommend to update your angular to newer version. If you can not update you project you can use one of the previous ng2-ckeditor releases, maybe v.1.1.19.

ShubhamTANDF commented 3 years ago

thank you so much will use v.1.1.19. Any reference links or something on how to use older versions of ng2-ckeditor in angular 2.0.0

kzimny commented 3 years ago

Install the package with npm install ng2-ckeditor@1.1.19 --save. In your own component declare the ckeditor as any. The rest should work, if not update your angular framework to newer version.

ShubhamTANDF commented 3 years ago

ERROR in main.bd776877e098544e9e6a.bundle.js from UglifyJs SyntaxError: Unexpected token: name (CKButtonDirective) [main.bd776877e098544e9e6a.bundle.js:24786,6]

getting this error. can you tell me a work around to resolve this

kzimny commented 3 years ago

AFAIK version 1.1.19 is the last with angular 2.0.0 compatible release. It's possible that CKButtonDirective has been added after release 1.1.19. Try without the ckbuttons in your html code.

ShubhamTANDF commented 3 years ago

there is no 1.1.19 version, using 1.1.14 to integrate with angular 2.0.0 still not successful..I m trying

ShubhamTANDF commented 3 years ago

I am not using ckbuttons anywhere in my code..but still I am getting this error