Problem/Motivation

When using this module and CKeditor5 you get the following notice in your browser console when ckeditor is opened when you edit something:
ckeditor5.js?rpuymr:112 Stylesheet https://fonts.googleapis.com/css2?family=PT+Sans:wght@400;700&display=swap not included in CKEditor reset due to the browser's CORS policy.

Proposed resolution

Add crossorigin: anonymous to the offcanvas-font library.
Change:
//fonts.googleapis.com/css2?family=PT+Sans:wght@400;700&display=swap: { type: external, minified: true }
Into:
//fonts.googleapis.com/css2?family=PT+Sans:wght@400;700&display=swap: { type: external, minified: true, attributes: { crossorigin: anonymous }}

CommentFileSizeAuthor
#2 bootstrap_styles-ckeditor5-cors-notice.patch575 bytesflyke

Comments

flyke created an issue. See original summary.

flyke’s picture

StatusFileSize
new575 bytes