ngx-quill-editor
ngx-quill-editor copied to clipboard
Where is the index.js
Hi,
I am using Angular-seed project which is using SystemJS. It requires the index.js instead of index.ts. Any ideas?
为什么没有index.js文件呢?
不太明白...
Can you compile all the .ts files to .js files? And that is what other libs have been done. As SystemJS is requiring .js files by default.
Thanks. Cheng
Hi,
The ng2-ckeditor is doing the same thing - wrapping the ckeditor. And I could get it working with my Angular-seed project. Can you have a look at how tsconfig.json is woking in that project.
Thanks Cheng
@tonychangcheng The operation of export * from './quillEditor.module'; in index.ts just export QuillEditorModule to any other module. So the index.ts is just the wrapper for importing QuillEditorModule. In other words, import { QuillEditorModule } from './index' is equal to import { QuillEditorModule } from './quillEditor.module'. So this index.ts file is not your angular2 project entry. Hoping this helps.
Thanks for the response. My issue is that Angular-seed is by default loading .js files. And I could not change this setting as it would cause other problems. Which means, instead of loading .ts files SystemJS will require .ts.js files and of course will fail. I will raise a issue in the Angular-seed as well.
@tonychangcheng .ts file means TypeScript file. So you need to compile .ts to .js file by TypeScript compiler first. Hoping this helps.
I just created a issue in Angular-seed project and the author claimed that a Javascript bundle is better practice for production. The issue is here https://github.com/mgechev/angular-seed/issues/1753
@tonychangcheng Hi, in fact I do not know how to build the index.js file you need, do you have any better suggestions?
The other project ngx-quill has fixed the same issue. Maybe you can have a look. https://github.com/KillerCodeMonkey/ngx-quill/issues/4
Ngx-Quill seems to be the better choice for an Angular Implementation of Quill