Hi All,


I am try create Polymer element that use : 
https://alex-d.github.io/Trumbowyg/


<https://lh3.googleusercontent.com/-BA-iQiY6jjM/WR2vlJmybwI/AAAAAAAAAAk/cyMJT_K1tAkRKqobdnTpkjoToq5rWvtfACLcB/s1600/Capture.PNG>



I did this:

 
<link rel="import" href="../bower_components/polymer/polymer.html">

<script src="//ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"
></script> 
<script src="../trumbowyg/dist/trumbowyg.min.js"></script> 

  
 <dom-module id="drtv-editor"> 


      <template> 

        <link rel="stylesheet" href="../trumbowyg/dist/ui/trumbowyg.min.css"
> 

        <style> 

          /* CSS rules for your element */ 

        </style> 


       <div id="editor">fgdfgfdgfd</div> <!-- data bindings in local DOM --> 

      </template> 

  

      <script> 

      

  


         Polymer({ 

            is: 'drtv-editor', 

            ready: function() { 

               $(this.$.editor).trumbowyg(); 

    
            } 

         }); 

      </script> 

</dom-module> 

 


But when I try use it I get this:


<https://lh3.googleusercontent.com/-Qbcz0WOSHMg/WR2v1eoULDI/AAAAAAAAAAo/qkCibIr8ZikCalX9bt-v-iiGbMQ2GbumgCLcB/s1600/Capture.PNG>

I get a lot of error, and render do not work!


Any idea?


Thanks

Follow Polymer on Google+: plus.google.com/107187849809354688692
--- 
You received this message because you are subscribed to the Google Groups 
"Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/polymer-dev/1e6aa442-98e2-442f-b269-51b5e12518e7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to