josh asked this 3 years ago

Multiple tinyMCE instances, plugins not working properly

Hi,

I have multiple tinyMCE instances like 

<script src="//cdn.tinymce.com/4/tinymce.min.js"></script>
  <script type="text/javascript">
  tinymce.init({
    selector: '#mytextarea-1',
    menubar: false,
    plugins: 'link codesample image',
    toolbar: [
	      'bold italic | alignleft aligncenter alignright | blockquote link image codesample | undo redo'
								]
  });
  </script>
  
<script type="text/javascript">
  tinymce.init({
    selector: '#mytextarea-2',
    menubar: false,
    plugins: 'link codesample image',
    toolbar: [
	      'bold italic | alignleft aligncenter alignright | blockquote link image codesample | undo redo'
								]
  });
  </script>

and so on.....

But the plugins are not loading properly for multiple instances. When I click the insert code or link , it opens up a blank dialogue box. What is missing in the config?


No answers yet..