JSVI - Javascript Vi for web forms

There are so many WYSIWYG editors for html forms, it's about time someone put together a decent web version of the Vi editor. JSVI is written in Javascript and seems to be fairly cross-browser compatible. With a few tweaks to your code, you can now make any textarea behave exactly like Vi. How cool is that?
To use it, download the GPLed vi.js file from the link below, include it in your html document, and then add an onfocus="editor(this);" to any textarea that you want vi enabled. If your textarea contains any preset information, the text will be loaded into the editor when the field is clicked. Saving the file with :wq will exit the editor and store the changes back in the input field.
Somewhere there must be a unix blog or forum that will adopt this for their submission and comment fields. Shame on them if they don't. That is, unless they are waiting for the emacs version.
JSVI - VI in JavaScript (demo)
Download vi.js
Posted by Jason Striegel |
Jun 28, 2008 08:39 PM
Ajax, Web |
Permalink
| Comments (0)
Recent Entries
- Objective-J and Cappuccino: Cocoa for the web
- JSVI - Javascript Vi for web forms
- Arduino VGA demo
- Flight instruments for an RC plane
- Image Fulgurator - subverting other people's photos
- Videos from past Shmoocons
- Algorithm Geeks
- How we made Google Apps Hacks
- Parallax scrolling in jQuery
- Twilight Hack for Wii v3.3
Bloggers
Welcome to the Hacks Blog!
Categories
- Ajax
- Amazon
- AppleTV
- Astronomy
- BlackBerry
- Blogging
- Body
- Cars
- Cryptography
- Data
- Design
- Education
- Electronics
- Energy
- Events
- Excel
- Excerpts
- Firefox
- Flash
- Flickr
- Flying Things
- Food
- Gaming
- Gmail
- Google Earth
- Google Maps
- Government
- Greasemonkey
- Hacks Series
- Hackszine Podcast
- Halo
- Hardware
- Home
- Home Theater
- iPhone
- iPod
- IRC
- iTunes
- Java
- Kindle
- Knoppix
- Language
- LEGO
- Life
- Lifehacker
- Linux
- Linux Desktop
- Linux Multimedia
- Linux Server
- Mac
- Mapping
- Math
- Microsoft Office
- Mind
- Mind Performance
- Mobile Phones
- Music
- MySpace
- MySQL
- NetFlix
- Network Security
- olpc
- OpenOffice
- Outdoor
- Parenting
- PCs
- PDAs
- Perl
- Philosophy
- Photography
- PHP
- Pleo
- Podcast
- Podcasting
- Productivity
- PSP
- Retro Computing
- Retro Gaming
- Science
- Screencasts
- Shopping
- Skype
- Smart Home
- Software Engineering
- Sports
- SQL
- Statistics
- Survival
- TiVo
- Transportation
- Travel
- Ubuntu
- Video
- Virtualization
- Visual Studio
- VoIP
- Web
- Web Site Measurement
- Windows
- Windows Server
- Wireless
- Word
- World
- Xbox
- Yahoo!
- YouTube
Archives
Recent Posts
- Objective-J and Cappuccino: Cocoa for the web
- JSVI - Javascript Vi for web forms
- Arduino VGA demo
- Flight instruments for an RC plane
- Image Fulgurator - subverting other people's photos
- Videos from past Shmoocons
- Algorithm Geeks
- How we made Google Apps Hacks
- Parallax scrolling in jQuery
- Twilight Hack for Wii v3.3
www.flickr.com
|





Leave a comment