diff --git a/invenio_app_rdm/theme/webpack.py b/invenio_app_rdm/theme/webpack.py index 2b4ca7406..66df3c171 100644 --- a/invenio_app_rdm/theme/webpack.py +++ b/invenio_app_rdm/theme/webpack.py @@ -72,6 +72,22 @@ "@js/invenio_app_rdm": "js/invenio_app_rdm", "@translations/invenio_app_rdm": "translations/invenio_app_rdm", }, + copy=[ + # Copy some assets into "static/dist", as TinyMCE requires that + # Note that the base path for all entries is the `config.json` directory + { + "from": "../node_modules/tinymce/skins/content/default/content.css", + "to": "../../static/dist/js/skins/content/default", + }, + { + "from": "../node_modules/tinymce/skins/ui/oxide/skin.min.css", + "to": "../../static/dist/js/skins/ui/oxide", + }, + { + "from": "../node_modules/tinymce/skins/ui/oxide/content.min.css", + "to": "../../static/dist/js/skins/ui/oxide", + }, + ], ), }, )