Pretty simple, I need you to write a WYSIWYG editor for a textarea to support BBCode. It should have the ability to parse the bbcode inside the textarea and have a way to switch from "WYSIWYG View" and "Code View". The user will never see any html, for example - on 1 view they'll see the bolded text and on the other view they'll see [B]Bolded text[/B]
Heres the BBCode I want. Nothing more nothing less:
Bold: [B]text[/B]
Italic: [I]text[/I]
Underline: [U]text[/U]
Link: [URL][login to view URL][/URL] and [URL="[login to view URL]"]link text[/URL]
Unordered List: [UL][LI]List item 1[/LI][LI]List item 2[/LI][/UL]
Ordered List: [OL][LI]List item 1[/LI][LI]List item 2[/LI][/OL]
Quote: [QUOTE]text[/QUOTE] and [QUOTE="name"]text[/QUOTE]
Code: [CODE][/CODE]
That's it. You can use existing libraries and whatnot to get me my result faster. I have a vBulletin license so you can safely use their code if you want too (they have a WYSIWYG that does pretty much exactly what I want), or you can rip it off another forum software.
My only request is that you DO NOT use TinyMCE or any other extremely slow-loading editors. It needs to be lightweight and have buttons for only the BBCode that I need above.