Cant get tinymce to display












0















Im trying to install tinymce to use with my text editor to allow the user to have a text box just like the stack overflow one. I cant get it to display though



ive put this in the head of my index file



<script src='https://cloud.tinymce.com/stable/tinymce.min.js'></script>
<script src='https:https://cloud.tinymce.com/stable/tinymce.min.js'>
</script>
<script src="//tinymce.cachefly.net/4.1/tinymce.min.js"></script>
<script>
tinymce.init({selector:'infotextarea'});
</script>


then in my info page ive put



                      <textarea id="infotextarea">Your content here. 
</textarea>


can anyone explain why its not displaying










share|improve this question























  • Perhaps you can make a JS Fiddle or CodePen that shows the issue? Without running code it will be hard for folks to know why this is failing. I will note you appear to be loading TinyMCE 3 separate times - I have no idea why you would need to do that - loading it once should be all you need to do.

    – Michael Fromin
    Nov 15 '18 at 21:30
















0















Im trying to install tinymce to use with my text editor to allow the user to have a text box just like the stack overflow one. I cant get it to display though



ive put this in the head of my index file



<script src='https://cloud.tinymce.com/stable/tinymce.min.js'></script>
<script src='https:https://cloud.tinymce.com/stable/tinymce.min.js'>
</script>
<script src="//tinymce.cachefly.net/4.1/tinymce.min.js"></script>
<script>
tinymce.init({selector:'infotextarea'});
</script>


then in my info page ive put



                      <textarea id="infotextarea">Your content here. 
</textarea>


can anyone explain why its not displaying










share|improve this question























  • Perhaps you can make a JS Fiddle or CodePen that shows the issue? Without running code it will be hard for folks to know why this is failing. I will note you appear to be loading TinyMCE 3 separate times - I have no idea why you would need to do that - loading it once should be all you need to do.

    – Michael Fromin
    Nov 15 '18 at 21:30














0












0








0








Im trying to install tinymce to use with my text editor to allow the user to have a text box just like the stack overflow one. I cant get it to display though



ive put this in the head of my index file



<script src='https://cloud.tinymce.com/stable/tinymce.min.js'></script>
<script src='https:https://cloud.tinymce.com/stable/tinymce.min.js'>
</script>
<script src="//tinymce.cachefly.net/4.1/tinymce.min.js"></script>
<script>
tinymce.init({selector:'infotextarea'});
</script>


then in my info page ive put



                      <textarea id="infotextarea">Your content here. 
</textarea>


can anyone explain why its not displaying










share|improve this question














Im trying to install tinymce to use with my text editor to allow the user to have a text box just like the stack overflow one. I cant get it to display though



ive put this in the head of my index file



<script src='https://cloud.tinymce.com/stable/tinymce.min.js'></script>
<script src='https:https://cloud.tinymce.com/stable/tinymce.min.js'>
</script>
<script src="//tinymce.cachefly.net/4.1/tinymce.min.js"></script>
<script>
tinymce.init({selector:'infotextarea'});
</script>


then in my info page ive put



                      <textarea id="infotextarea">Your content here. 
</textarea>


can anyone explain why its not displaying







html css typescript tinymce angular5






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 15 '18 at 15:17









Aidan WardAidan Ward

327




327













  • Perhaps you can make a JS Fiddle or CodePen that shows the issue? Without running code it will be hard for folks to know why this is failing. I will note you appear to be loading TinyMCE 3 separate times - I have no idea why you would need to do that - loading it once should be all you need to do.

    – Michael Fromin
    Nov 15 '18 at 21:30



















  • Perhaps you can make a JS Fiddle or CodePen that shows the issue? Without running code it will be hard for folks to know why this is failing. I will note you appear to be loading TinyMCE 3 separate times - I have no idea why you would need to do that - loading it once should be all you need to do.

    – Michael Fromin
    Nov 15 '18 at 21:30

















Perhaps you can make a JS Fiddle or CodePen that shows the issue? Without running code it will be hard for folks to know why this is failing. I will note you appear to be loading TinyMCE 3 separate times - I have no idea why you would need to do that - loading it once should be all you need to do.

– Michael Fromin
Nov 15 '18 at 21:30





Perhaps you can make a JS Fiddle or CodePen that shows the issue? Without running code it will be hard for folks to know why this is failing. I will note you appear to be loading TinyMCE 3 separate times - I have no idea why you would need to do that - loading it once should be all you need to do.

– Michael Fromin
Nov 15 '18 at 21:30












3 Answers
3






active

oldest

votes


















0














It may be that at the time you run the tinymce.init function, it is not yet rendered and there is no textarea in the DOM.



Try debugging your code on the following line:



<script>
debugger;
tinymce.init({selector:'infotextarea'});
</script>


When the web's execution has stopped on that line, in the development console of your browser type the following:



$('#infotextarea').length


If the size is greater than 0, textarea exists at that moment and it is another problem, but if it shows 0 is that you have not yet created that view, this will help us get more information about your problem.






share|improve this answer
























  • thanks buddy ive got the text area to display but its only displaying as a normal text area

    – Aidan Ward
    Nov 15 '18 at 15:42



















0














If you want to target a <textarea> by ID you need to use a valid CSS selector.



selector: "#infotextarea"


(note the # at the beginning of the string)



I would also note you appear to be loading TinyMCE 3 separate times - I have no idea why you would need to do that - loading it once should be sufficient






share|improve this answer































    0














    Its not a perfect answer to my question, but i used ckeditor and it worked perfectly.
    I must have a mistake somewhere that i or my team could not find with tinymce






    share|improve this answer
























      Your Answer






      StackExchange.ifUsing("editor", function () {
      StackExchange.using("externalEditor", function () {
      StackExchange.using("snippets", function () {
      StackExchange.snippets.init();
      });
      });
      }, "code-snippets");

      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "1"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53322548%2fcant-get-tinymce-to-display%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      0














      It may be that at the time you run the tinymce.init function, it is not yet rendered and there is no textarea in the DOM.



      Try debugging your code on the following line:



      <script>
      debugger;
      tinymce.init({selector:'infotextarea'});
      </script>


      When the web's execution has stopped on that line, in the development console of your browser type the following:



      $('#infotextarea').length


      If the size is greater than 0, textarea exists at that moment and it is another problem, but if it shows 0 is that you have not yet created that view, this will help us get more information about your problem.






      share|improve this answer
























      • thanks buddy ive got the text area to display but its only displaying as a normal text area

        – Aidan Ward
        Nov 15 '18 at 15:42
















      0














      It may be that at the time you run the tinymce.init function, it is not yet rendered and there is no textarea in the DOM.



      Try debugging your code on the following line:



      <script>
      debugger;
      tinymce.init({selector:'infotextarea'});
      </script>


      When the web's execution has stopped on that line, in the development console of your browser type the following:



      $('#infotextarea').length


      If the size is greater than 0, textarea exists at that moment and it is another problem, but if it shows 0 is that you have not yet created that view, this will help us get more information about your problem.






      share|improve this answer
























      • thanks buddy ive got the text area to display but its only displaying as a normal text area

        – Aidan Ward
        Nov 15 '18 at 15:42














      0












      0








      0







      It may be that at the time you run the tinymce.init function, it is not yet rendered and there is no textarea in the DOM.



      Try debugging your code on the following line:



      <script>
      debugger;
      tinymce.init({selector:'infotextarea'});
      </script>


      When the web's execution has stopped on that line, in the development console of your browser type the following:



      $('#infotextarea').length


      If the size is greater than 0, textarea exists at that moment and it is another problem, but if it shows 0 is that you have not yet created that view, this will help us get more information about your problem.






      share|improve this answer













      It may be that at the time you run the tinymce.init function, it is not yet rendered and there is no textarea in the DOM.



      Try debugging your code on the following line:



      <script>
      debugger;
      tinymce.init({selector:'infotextarea'});
      </script>


      When the web's execution has stopped on that line, in the development console of your browser type the following:



      $('#infotextarea').length


      If the size is greater than 0, textarea exists at that moment and it is another problem, but if it shows 0 is that you have not yet created that view, this will help us get more information about your problem.







      share|improve this answer












      share|improve this answer



      share|improve this answer










      answered Nov 15 '18 at 15:35









      javimovijavimovi

      318110




      318110













      • thanks buddy ive got the text area to display but its only displaying as a normal text area

        – Aidan Ward
        Nov 15 '18 at 15:42



















      • thanks buddy ive got the text area to display but its only displaying as a normal text area

        – Aidan Ward
        Nov 15 '18 at 15:42

















      thanks buddy ive got the text area to display but its only displaying as a normal text area

      – Aidan Ward
      Nov 15 '18 at 15:42





      thanks buddy ive got the text area to display but its only displaying as a normal text area

      – Aidan Ward
      Nov 15 '18 at 15:42













      0














      If you want to target a <textarea> by ID you need to use a valid CSS selector.



      selector: "#infotextarea"


      (note the # at the beginning of the string)



      I would also note you appear to be loading TinyMCE 3 separate times - I have no idea why you would need to do that - loading it once should be sufficient






      share|improve this answer




























        0














        If you want to target a <textarea> by ID you need to use a valid CSS selector.



        selector: "#infotextarea"


        (note the # at the beginning of the string)



        I would also note you appear to be loading TinyMCE 3 separate times - I have no idea why you would need to do that - loading it once should be sufficient






        share|improve this answer


























          0












          0








          0







          If you want to target a <textarea> by ID you need to use a valid CSS selector.



          selector: "#infotextarea"


          (note the # at the beginning of the string)



          I would also note you appear to be loading TinyMCE 3 separate times - I have no idea why you would need to do that - loading it once should be sufficient






          share|improve this answer













          If you want to target a <textarea> by ID you need to use a valid CSS selector.



          selector: "#infotextarea"


          (note the # at the beginning of the string)



          I would also note you appear to be loading TinyMCE 3 separate times - I have no idea why you would need to do that - loading it once should be sufficient







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 16 '18 at 3:44









          Michael FrominMichael Fromin

          6,8472820




          6,8472820























              0














              Its not a perfect answer to my question, but i used ckeditor and it worked perfectly.
              I must have a mistake somewhere that i or my team could not find with tinymce






              share|improve this answer




























                0














                Its not a perfect answer to my question, but i used ckeditor and it worked perfectly.
                I must have a mistake somewhere that i or my team could not find with tinymce






                share|improve this answer


























                  0












                  0








                  0







                  Its not a perfect answer to my question, but i used ckeditor and it worked perfectly.
                  I must have a mistake somewhere that i or my team could not find with tinymce






                  share|improve this answer













                  Its not a perfect answer to my question, but i used ckeditor and it worked perfectly.
                  I must have a mistake somewhere that i or my team could not find with tinymce







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Nov 16 '18 at 16:28









                  Aidan WardAidan Ward

                  327




                  327






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Stack Overflow!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53322548%2fcant-get-tinymce-to-display%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Florida Star v. B. J. F.

                      Error while running script in elastic search , gateway timeout

                      Adding quotations to stringified JSON object values