Skip to content

Commit b77cd16

Browse files
committed
webpack: configure copy patterns for TinyMCE
1 parent 85ac8cc commit b77cd16

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

invenio_app_rdm/theme/webpack.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,22 @@
7272
"@js/invenio_app_rdm": "js/invenio_app_rdm",
7373
"@translations/invenio_app_rdm": "translations/invenio_app_rdm",
7474
},
75+
copy=[
76+
# Copy some assets into "static/dist", as TinyMCE requires that
77+
# Note that the base path for all entries is the `config.json` directory
78+
{
79+
"from": "../node_modules/tinymce/skins/content/default/content.css",
80+
"to": "../../static/dist/js/skins/content/default",
81+
},
82+
{
83+
"from": "../node_modules/tinymce/skins/ui/oxide/skin.min.css",
84+
"to": "../../static/dist/js/skins/ui/oxide",
85+
},
86+
{
87+
"from": "../node_modules/tinymce/skins/ui/oxide/content.min.css",
88+
"to": "../../static/dist/js/skins/ui/oxide",
89+
},
90+
],
7591
),
7692
},
7793
)

0 commit comments

Comments
 (0)