vectorsize / substance-text

Substance Text
substance.github.com/text
MIT License
282 stars 26 forks source link

Fixes for IE8, new options, methods #16

Closed alexblack closed 12 years ago

alexblack commented 12 years ago

Hi, proper.js is awesome, nice work!

  1. I hit a few problems testing in IE8, .map and .filter are not native methods, so I modified the code to use map and filter from underscore.js.
  2. I added an option called startEmpty, because I wanted the activate the control so that the placeholder text showed up, and the tools, but not to set focus.
  3. I added a method called contentStripped, which returns the stripped version of the content, so it can be validated for length for example.

I hope you can accept this pull request, let me know!

thx

alexblack commented 12 years ago

Oh, I also removed the << symbols around the placeholder, not sure if you want that. I figured this way the user could decide whether or not they wanted those symbols wrapped around the placeholder - I didn't.

michael commented 12 years ago

Merged in. Thanks a lot!