Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/bulk-email-tool/text-editor/TextEditor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import 'tinymce/plugins/codesample';
import '@edx/tinymce-language-selector';

import contentUiCss from 'tinymce/skins/ui/oxide/content.css';
import contentCss from 'tinymce/skins/content/default/content.css';
import contentCss from 'tinymce/skins/content/default/content.css?raw';
Copy link
Contributor

@brian-smith-tcril brian-smith-tcril Sep 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The !!raw-loader version of this was updating both the contentUiCss import and the contentCss import. Was the contentUiCss change not needed or should that have ?raw added too?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. I missed that. @Lunyachek?


export default function TextEditor(props) {
const {
Expand Down
7 changes: 6 additions & 1 deletion webpack.dev.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,13 @@ const webpack5esmInteropRule = {
},
};

const rawAssetRule = {
resourceQuery: /raw/,
type: 'asset/source',
};

const otherRules = config.module.rules;

config.module.rules = [webpack5esmInteropRule, ...otherRules];
config.module.rules = [rawAssetRule, webpack5esmInteropRule, ...otherRules];

module.exports = config;
7 changes: 6 additions & 1 deletion webpack.prod.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,13 @@ const webpack5esmInteropRule = {
},
};

const rawAssetRule = {
resourceQuery: /raw/,
type: 'asset/source',
};

const otherRules = config.module.rules;

config.module.rules = [webpack5esmInteropRule, ...otherRules];
config.module.rules = [rawAssetRule, webpack5esmInteropRule, ...otherRules];

module.exports = config;