So I have a social website and I want users to be able to add news to it. Obviously I need to create a form that would pass the data to my mysql. But at the same time I would need a simple text editor that would enable common tags, such as inserting pictures. Any ideas on how to implement this kind of editor into a form? Any examples of code? I can't google up what exactly I need
I already have this code setup on my admin page, but I have no idea how to edit it. This code will work only from the admin page which is a problem. <div class="menuHeader" id="textLTinyMCE">Add</div> <div class="menuBody coolDiv" id="textOptions"> <form id="textForm" onsubmit="saveFCK(); return false;"> <input type="hidden" name="option" value="add" /> <input type="text" name="title" /><br /><br /> <div id="fckeditor"></div> </form> </div> Code (markup): But the bad part about it is that I have no idea how to create it in "barebone html" to make it work in another page. Also, I need to add another hidden field in the parse.
If your admin already uses fckeditor, then you are best heading off to their website to see some usage examples, so you can figure out how to implement it on other pages. http://www.fckeditor.net/