rails 3 + jquery + markdown editor = has no method -
i'm sort of new rails, , new jquery. trying markdown editor working similar 1 i'm writing in now. rails app uses twitter-bootstrap , social-share.
i testing jquery-wysiwym next error:
uncaught typeerror: object [object object] has no method 'wysiwym'
my page has next in head:
... <link href="/assets/statuses.css?body=1" media="all" rel="stylesheet" type="text/css" /> <link href="/assets/types.css?body=1" media="all" rel="stylesheet" type="text/css" /> <link href="/assets/wysiwym/wysiwym.css?body=1" media="all" rel="stylesheet"type="text/css" />
and @ bottom of page:
... <script src="/assets/social-share-button.js?body=1" type="text/javascript"></script> <script src="/assets/jquery.js?body=1" type="text/javascript"></script> <script src="/assets/jquery_ujs.js?body=1" type="text/javascript"></script> <script src="/assets/jquery-ui.js?body=1" type="text/javascript"></script> <script src="/assets/wysiwym/wysiwym.js?body=1" type="text/javascript"></script> ... <script src="/assets/application.js?body=1" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function() { $('.markdown').wysiwym(wysiwym.markdown); }); </script> </body>
any help appreciated i'm bit stuck.
jquery ruby-on-rails-3 markdown wysiwym
No comments:
Post a Comment