codex-team / codex-team/editor.js

[Question] Content Security Policy inline style

Open
#1,334 10 comments 3 reactions 1 assignee Claimed by @neSpecc View on GitHub
Dominant language
TypeScript
Stars
31.9k
Forks
2.2k
Avg merge
1d 1h
Merged PRs (30d)
1

Description

Hi,

I'm working on a project with Content Security Policy enabled.

When I import this library I get errors like this in the console:
Refused to apply inline style because it violates the following Content Security Policy

Screenshot 2020-09-29 at 10 15 09

Screenshot 2020-09-29 at 10 17 53

1) Does this library support a way to remove inline styles?

2) Is there a recommended approach to extracting inline css styles and moving them to a dedicated css file?

Relaxing CSP to allow inline/unsafe styles isn't an option.

Thanks.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.