2 Replies Latest reply: Aug 12, 2015 2:30 AM by Joel Lau RSS

    Qlik Sense Server Mashup - Referencing external javascript library

    Joel Lau

      Hi all,

       

      New to javascript so maybe asking a silly question here.

       

      I am trying to use an external text editor tinyMce (TinyMCE - Home) within my mashup but am having some difficulties in connecting to the js file.

       

      In my html file, I have referenced the file using the below code:

       

      <script src="//tinymce.cachefly.net/4.2/tinymce.min.js"></script>

       

      From here, I am not sure how to reference the external file in my javascript file.  I have the following code but it is throwing up a connection error:

       

      function outputText(){

          require(["//tinymce.cachefly.net/4.2/tinymce.min.js"]);

         

           tinyMCE.init({

              mode: "textareas",

              theme: "simple"

          });};

      error.PNG

       

      Would appreciate any assistance on this particular issue but also in general on how to use external libraries in conjunction with mashups!

       

      Cheers,

      Joel