cturner Posted July 15, 2007 Share Posted July 15, 2007 I am wondering if it is possible to do the following with PHP: 1. Select the text that needs to be bold 2. Click on the bold icon which should be above the text box 3. Then the text should appear bold 4. When the save button is clicked to bold text should be saved to a database as well as the rest of the text? I am wanting the bold text as well as the other text to be able to appear on another page. I don't want bbcode to appear both sides of the highlighted text. I am needing to create am admin section for a client of mine. That is why I am asking. Thanks in advance. Quote Link to comment Share on other sites More sharing options...
infid3l Posted July 15, 2007 Share Posted July 15, 2007 I am wondering if it is possible to do the following with PHP: 1. Select the text that needs to be bold 2. Click on the bold icon which should be above the text box 3. Then the text should appear bold 4. When the save button is clicked to bold text should be saved to a database as well as the rest of the text? I am wanting the bold text as well as the other text to be able to appear on another page. I don't want bbcode to appear both sides of the highlighted text. I am needing to create am admin section for a client of mine. That is why I am asking. Thanks in advance. If you want the text to appear bold, you need to implement a textbox capable of rich text. This means you'll probably have to use some amount of Javascript. Quote Link to comment Share on other sites More sharing options...
drewbee Posted July 15, 2007 Share Posted July 15, 2007 Well, this would be done through Javascript, not PHP. Though the DB saving part will be PHP side. You need need to create a javascript function that intereprets a line of code as bold. Quote Link to comment Share on other sites More sharing options...
nloding Posted July 15, 2007 Share Posted July 15, 2007 I forget what it's called, and if someone knows, please remind me ... The text program that WordPress uses is opensource and very powerful. Look into that. Quote Link to comment Share on other sites More sharing options...
drewbee Posted July 15, 2007 Share Posted July 15, 2007 My favorite one is TinyMC. It is a very good WYSIWYG editor. Quote Link to comment Share on other sites More sharing options...
AndyB Posted July 15, 2007 Share Posted July 15, 2007 TinyMCE link - http://tinymce.moxiecode.com/ FCKeditor is another excellent one - http://www.fckeditor.net/ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.