ted_chou12 Posted May 5, 2007 Share Posted May 5, 2007 I wish to have a text area editor with buttons that allows the user to insert bbcodes such as {b} or similes into the textarea, however, the current javascript I have now is not very well formed with the textarea, and that it only adds the text at the end of the text in the text area, however, I wish that the javascript is able to let the users to highlight and modify, or have the crusor still in the textarea after the text is inserted into the textarea, but not to have the crusor to be on the buttons. Thanks, I just want a simple javascript coding, not too complicated please. If you still dont understand me very well, please feel free to reply. Thanks,Ted Quote Link to comment https://forums.phpfreaks.com/topic/50104-text-area-editor-javascripts/ Share on other sites More sharing options...
RichardRotterdam Posted May 5, 2007 Share Posted May 5, 2007 Hi, I've tried a couple of rich text editors now. And the ones that i have the best experience with are the FCKeditor and tinyMCE. FCKeditor has it's own free filebrowser to upload images but tinyMCE is much easier to implement to your html page by simply adding a couple of lines of javascript to your page. For a great comparison on these javascript applications check out this site http://www.geniisoft.com/showcase.nsf/WebEditors Hope it helps Quote Link to comment https://forums.phpfreaks.com/topic/50104-text-area-editor-javascripts/#findComment-246107 Share on other sites More sharing options...
ted_chou12 Posted May 5, 2007 Author Share Posted May 5, 2007 Thanks for your suggestions, but I wish to know the javascripts for inserting text at the cursor in order to implent my own codes into the page, I had a look at the different forums' source codes, however, they were far too complicated and unnecessary. So I just wish someone to post codes like those: 1.) Insert bold before and after the text highlighted. 2.) Insert codes at where the cursor is in the textarea. 3.) The cursor still stays in the textarea despite the insert links/buttons are pressed. Thanks. Ted Quote Link to comment https://forums.phpfreaks.com/topic/50104-text-area-editor-javascripts/#findComment-246116 Share on other sites More sharing options...
ted_chou12 Posted May 6, 2007 Author Share Posted May 6, 2007 bump! Quote Link to comment https://forums.phpfreaks.com/topic/50104-text-area-editor-javascripts/#findComment-246453 Share on other sites More sharing options...
ted_chou12 Posted May 6, 2007 Author Share Posted May 6, 2007 bump! Quote Link to comment https://forums.phpfreaks.com/topic/50104-text-area-editor-javascripts/#findComment-246604 Share on other sites More sharing options...
fenway Posted May 6, 2007 Share Posted May 6, 2007 As I said in the other thread, this solution has been posted at least 10 separate times -- search the threads on this board, there were many cross-browser implementations. Quote Link to comment https://forums.phpfreaks.com/topic/50104-text-area-editor-javascripts/#findComment-246645 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.