Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example doesn't work in IE11 if bundle.js is in a different folder with index.html #1

Open
guangmiw8 opened this issue Mar 29, 2017 · 0 comments

Comments

@guangmiw8
Copy link

I added a public path in webpack config file in order to output bundle.js to a different directory. It looks like this:

module.exports = {
entry: './src/app.js',
output: {
path: path.join(__dirname, '../dist'),
publicPath: '/dist/',
filename: 'bundle.js'
},

This caused skin loading to fail in IE 11. I attached a debugger to tinymce.js and was able to track down the root cause. Tinymce tries to figure out the skin url by using document.currentScript, which is not supported by IE unfortunately. It works without the public path setting because the fallback is to use document (index.html) url, which happens to be the same location of the skins folder.

Do you have any ideas on how to solve this problem? In my own project, I have a lot of customized code bundled with tinymce that others can consume, so I can't guarantee the document url is the same with skin url.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant