View Full Version : bb buttons
10-08-2008, 03:20 PM
i have write some bbcode but im struggling on adding the buttons like bold and italic to insert the [ code ] texts... how would i do this?
10-08-2008, 07:11 PM
add the button in the template. make it so when you click it checks for selected text in your textarea and then replaces the text with the text wrapped in your tags. if no selected text append it to the bottom of the text area value.
google "js get selected text"... there are tut's to show how to deal with it cross browser.
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.