{"issue":{"created_at":"2011-11-19T00:59:43Z","state":"open","updated_at":"2011-11-19T00:59:43Z","comments":0,"user":{"gravatar_id":"f5379056e5acd03d4415b9997b20875f","id":591103,"url":"https://api.github.com/users/Sweetchuck","login":"Sweetchuck","avatar_url":"https://secure.gravatar.com/avatar/f5379056e5acd03d4415b9997b20875f?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"I had try to integrate WYMeditor into a Drupal 7 based website.\r\nThe  wysiwyg module only works with WYMeditor v0.5 \r\nBut I would like to use the latest version of WYMeditor.\r\n\r\nI wrote a very-very simple drupal module with the following JS code\r\n\r\n```javascript\r\n(function ($) {\r\n\r\nDrupal.behaviors.mymodule = {\r\n  attach: function(context) {\r\n    $('.wymeditor:not(mymodule-processed)', context)\r\n      .addClass('mymodule-processed')\r\n      .wymeditor()\r\n    ;\r\n  }\r\n}\r\n\r\n})(jQuery);\r\n```\r\nI had got some erros in the browser console:\r\n\"$ is not a function\"\r\nThen I replace (almost each)\r\n$.\r\nto\r\njQuery.\r\n\r\nand\r\n$(\r\nto\r\njQuery(\r\n\r\nin wymeditor/jquery.wymeditor.js then the WYMeditor works fine :-)\r\n\r\nIs this a bug in wymeditor, or do I something with wrong?","assignee":null,"id":2286381,"labels":[],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"number":308,"title":"Drupal integration","closed_at":null,"html_url":"https://github.com/wymeditor/wymeditor/issues/308","milestone":null,"url":"https://api.github.com/repos/wymeditor/wymeditor/issues/308"},"action":"opened"}