javascript - tinymce is undefined in plugin development using npm start -
i used on mac os x way described here.
my page:
<!doctype html> <html> <head> <script type="text/javascript" src="https://cloud.tinymce.com/stable/tinymce.min.js"></script> <script> tinymce.init({ selector:'textarea', plugins: 'myplugin', toolbar: 'myplugin' }); </script> </head> <body> <textarea>testing myplugin</textarea> </body> </html>
so npm start
, webpack 2.7.0
starts on port 8080. browser opens , see textarea.
but tinymce undefined
.
checking source , click link can see resource available.
for testing moved tinymce folder static
folder , changed
<script type="text/javascript" src="/tinymce/tinymce.min.js"></script>
but error then:
the resource “http://localhost:8080/tinymce/tinymce.min.js” blocked due mime type mismatch (x-content-type-options: nosniff).
i new using npm
has todo setup. can advise?
Comments
Post a Comment