Replies: 1 comment 2 replies
-
Could you calculate the value before calling |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We use Webpack which has asset versioning enabled, this means that the URL to the CSS and JS files for example may change after each rebuild (they contain content hashes). The actual URL looks like
/static/site.57f5daf0.css
This means that
content_css
which takes a string or an array of strings cannot be dynamically populated using a function.However, I have discovered
setup
andinit_instance_callback
and tried using them in.init({})
like so:and also tested like so:
The test with
setup
did work as far aseditor.content_css
actually contains the correct path to the CSS file (but TinyMCE does not load the file), but theinit_instance_callback
did not work at all. What is wrong here?Beta Was this translation helpful? Give feedback.
All reactions