Skip to content

Doesn't work with libs using style-loader #16

@ostrolucky

Description

@ostrolucky

style-loader is webpack loader which allows libraries to import css into their js library. The way it works is it dynamically creates <style> element first time js library is used. This is used by eg ckeditor 5.

Now, here's a problem. Ajaxcom removes <style> elements each time there is new page load and injects the ones it got via backend. This dynamic <style> is of course not in there, so won't be re-added. Additionally, style-loader doesn't check for presence of this <style> in following runs.

What happens from user POV is that everything is ok when such library is used for a first time, but when ajaxcom loads page again, this <style> is missing now and html added by this library is unstyled.

ref: ckeditor/ckeditor5#960

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions