theHollow
June 27th, 2006, 01:29 AM
When i create a new thread or add a post and i want to bold text or something i select the text and press the button and it wraps the forum bold tags around it. How is this done?
Brendan.
redrum87
June 27th, 2006, 02:15 AM
I've been trying to figure that out myself. I'm assuming you know about MySQL and PHP, so I'll skip that part.
The WYSIWYG text editor that you type in on this forum and can select text and bold it, etc, is a Javascript. I don't know Javascript, but I do know C++, PHP, and some others that have similar syntax, so I'm working on reverse engineering one I found online here:
http://www.dynamicdrive.com/dynamicindex16/richtexteditor/index.htm
One thing you can be sure of, anytime you press a button on a webpage and it instantly does something visual (like pops up a menu, some text, changes the color of something, or in this case wraps forum tags around text), it's probably Javascript.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.