Skip to content

Instantly share code, notes, and snippets.

@MRdNk
Last active December 11, 2015 17:28
Show Gist options
  • Save MRdNk/4634181 to your computer and use it in GitHub Desktop.
Save MRdNk/4634181 to your computer and use it in GitHub Desktop.

In 'git bash'

mkdir behave && cd behave
git init
git pull https://github.com/jakiestfu/Behave.js.git master

Copy behave.js, into your local project.

<script type='text/javascript' src='js/behave.js'></script>
<script type='text/javascript'>
  var editor = new Behave({
    textarea: document.getElementById('myTextarea')
  });
</script>

<body>
  <div id='myTextarea'></div>
</body>

Bingo => myTextarea is now behavified.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment