Skip to content
This repository has been archived by the owner on Mar 11, 2020. It is now read-only.

styleUrls and styles in QuillEditorComponent #14

Closed
manofearth opened this issue May 19, 2017 · 1 comment
Closed

styleUrls and styles in QuillEditorComponent #14

manofearth opened this issue May 19, 2017 · 1 comment

Comments

@manofearth
Copy link

manofearth commented May 19, 2017

QuillEditorComponent has both styleUrls and styles in settings:

@Component({
...
  styleUrls: [
    './quillEditor.component.css'
  ],
  styles: [
    require('quill/dist/quill.core.css'),
    require('quill/dist/quill.snow.css'),
    require('quill/dist/quill.bubble.css')
  ],
...
})

It is the problem when I use @angular/cli, cause it compile in:

QuillEditorComponent = QuillEditorComponent_1 = __decorate([
    core_1.Component({
        selector: 'quill-editor',
        template: "<div class=\"quill-editor\"></div>",
        styles: [__webpack_require__(557)],
        styles: [
            __webpack_require__(559),
            __webpack_require__(560),
            __webpack_require__(558)
        ],
        providers: [{
                provide: forms_1.NG_VALUE_ACCESSOR,
                useExisting: core_1.forwardRef(function () { return QuillEditorComponent_1; }),
                multi: true
            }],
        encapsulation: core_1.ViewEncapsulation.None
    }),
    __metadata("design:paramtypes", [typeof (_e = typeof core_1.ElementRef !== "undefined" && core_1.ElementRef) === "function" && _e || Object])
], QuillEditorComponent);
exports.QuillEditorComponent = QuillEditorComponent;

So, styleUrls become styles somehow and it is the problem. Is it possible to use styleUrls or styles setting, but not both of them?

@manofearth
Copy link
Author

This is not an issue now: https://github.com/surmon-china/ngx-quill-editor/blob/master/quillEditor.component.ts#L20

I had to use yarn add ngx-quill-editor instead of yarn add ng2-quill-editor

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant