Using CKEditor / TinyMCE with Meteor

What is the best approach to use complex JS packages like CKEditor or TinyMCE with Meteor? Both of them rely on a specific directory tree to dynamically load JS files or CSS at run time, making it difficult to create a Meteor package from them.

It also sounds redundant to try to get Meteor to download and integrate CKEditor along with the rest of the Meteor code and application. I tried just putting it in a shared directory (loading it by adding a tag <script>in the header), but Meteor tried to upload the files anyway and crashed:

node.js:201
    throw e; // process.nextTick error, or 'error' event on first tick
          ^
Error: watch EMFILE
   at errnoException (fs.js:636:11)
    at FSWatcher.start (fs.js:663:11)
    at Object.watch (fs.js:691:11)
    at [object Object]._scan (/var/www/meteor/app/meteor/run.js:322:12)
    at Array.forEach (native)
    at Function.<anonymous> (/var/www/meteor/app/lib/third/underscore.js:76:11)
    at new <anonymous> (/var/www/meteor/app/meteor/run.js:264:5)
    at /var/www/meteor/app/meteor/run.js:455:17
    at /var/www/meteor/app/meteor/run.js:512:5
    at /var/www/meteor/app/meteor/run.js:570:9
+5
source share
1 answer

, , , Meteor . , :

<script type="text/javascript" src="/public/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript">
    tinyMCE.init({
        mode : "textareas",
        theme : "simple"
    });
</script>

, ,

+4

All Articles