Skip to content

Commit

Permalink
webpack: configure copy patterns for TinyMCE
Browse files Browse the repository at this point in the history
  • Loading branch information
max-moser authored and ntarocco committed Nov 28, 2024
1 parent e4a4d38 commit b9e866f
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions invenio_app_rdm/theme/webpack.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
],
),
},
)

0 comments on commit b9e866f

Please sign in to comment.