I am hoping the second text editor is without tiny mce but the tinymce is still appearing how to delete it?

<!DOCTYPE html>
<html>
<head>
   <script src="<?php echo site_url('assets/tinymce/js/tinymce/tinymce.min.js'); ?>"></script>
  <!-- <script>tinymce.init({ selector:'textarea' });</script> -->

<script>  
tinymce.init({
  selector: 'textarea',
  height: 200,
  width: 600,
  menubar: false,
  plugins: [
    'advlist autolink lists link image charmap print preview anchor',
    'searchreplace visualblocks code fullscreen',
    'insertdatetime media table contextmenu paste code'
  ],
  toolbar: 'undo redo | insert | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image',
  content_css: '<?php echo base_url('assets/tinymce/css/codepen.min.css'); ?>',
  file_browser_callback: RoxyFileBrowser
});  

function RoxyFileBrowser(field_name, url, type, win) {
  var roxyFileman = '<?php echo base_url('assets/fileman/index.html'); ?>'
  if (roxyFileman.indexOf("?") < 0) {     
    roxyFileman += "?type=" + type;   
  }
  else {
    roxyFileman += "&type=" + type;
  }
  roxyFileman += '&input=' + field_name + '&value=' + win.document.getElementById(field_name).value;
  if(tinyMCE.activeEditor.settings.language){
    roxyFileman += '&langCode=' + tinyMCE.activeEditor.settings.language;
  }
  tinyMCE.activeEditor.windowManager.open({
     file: roxyFileman,
     title: 'File Manager',
     width: 800, 
     height: 400,
     resizable: "yes",
     plugins: "media",
     inline: "yes",
     close_previous: "no"  
  }, {     window: win,     input: field_name    });
  return false; 
}
</script>   

</head>
<body>
  <textarea>Easy! You should check out MoxieManager!</textarea><br><br>

  <textarea>I am hoping this one without tinymce</textarea>
</body>
</html>

I finally find the answer:

<!DOCTYPE html>
<html>
<head>
   <script src="<?php echo site_url('assets/tinymce/js/tinymce/tinymce.min.js'); ?>"></script>
  <!-- <script>tinymce.init({ selector:'textarea' });</script> -->

<script>  
tinymce.init({
  selector: 'textarea.number1',  
  height: 200,
  width: 600,
  menubar: false,
  plugins: [
    'advlist autolink lists link image charmap print preview anchor',
    'searchreplace visualblocks code fullscreen',
    'insertdatetime media table contextmenu paste code'
  ],
  toolbar: 'undo redo | insert | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image',
  content_css: '<?php echo base_url('assets/tinymce/css/codepen.min.css'); ?>',
  file_browser_callback: RoxyFileBrowser
});  

function RoxyFileBrowser(field_name, url, type, win) {
  var roxyFileman = '<?php echo base_url('assets/fileman/index.html'); ?>'
  if (roxyFileman.indexOf("?") < 0) {     
    roxyFileman += "?type=" + type;   
  }
  else {
    roxyFileman += "&type=" + type;
  }
  roxyFileman += '&input=' + field_name + '&value=' + win.document.getElementById(field_name).value;
  if(tinyMCE.activeEditor.settings.language){
    roxyFileman += '&langCode=' + tinyMCE.activeEditor.settings.language;
  }
  tinyMCE.activeEditor.windowManager.open({
     file: roxyFileman,
     title: 'File Manager',
     width: 800, 
     height: 400,
     resizable: "yes",
     plugins: "media",
     inline: "yes",
     close_previous: "no"  
  }, {     window: win,     input: field_name    });
  return false; 
}
</script>   

</head>
<body>
  <textarea class="number1"><textarea>Easy! You should check out MoxieManager!</textarea></div><br><br>

  <textarea>I am hoping this one without tinymce</textarea>
</body>
</html>

Okay. There is another prob. out of no where.

If I write the selector : selector: 'textarea.number1',

compare to this: selector: 'textarea';

It shows a completely different tinymce.

I wonder why?
(the firstone without image upload the second one with image upload)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.