Skip to content
Open
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
6 changes: 5 additions & 1 deletion invenio_assets/assets/build/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,13 @@ var webpackConfig = {
dangerouslyAllowCleanPatternsOutsideProject: true,
cleanStaleWebpackAssets: process.env.NODE_ENV === "production", // keep stale assets in dev because of OS issues
}),
// Copying relevant CSS files as TinyMCE tries to import css files from the dist/js folder of static files
// Copying relevant CSS files as TinyMCE tries to import css files from the dist/js folder of static files
new CopyWebpackPlugin({
patterns: [
{
from: path.resolve(__dirname, '../node_modules/@wiris/mathtype-tinymce6/plugin.min.js'),
Copy link
Contributor

Choose a reason for hiding this comment

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

by adding this, we populate plugins for tinymce even for instances which do not have tinymce, I am not sure if it is the best approach

to: path.resolve(config.build.assetsPath, 'js/mathtype-tinymce6/plugin.min.js'),
},
{
from: path.resolve(__dirname, '../node_modules/tinymce/skins/content/default/content.css'),
to: path.resolve(config.build.assetsPath, 'js/skins/content/default'),
Expand Down