hassank1 Posted April 28, 2008 Share Posted April 28, 2008 hi I am working on a system (like a forum) however .. I was wondering can I find an already made (text editor) like the one I am currently wrting on with the above buttons (bold , italic etc...) and in what language they usually program it ? Quote Link to comment https://forums.phpfreaks.com/topic/103318-text-editor/ Share on other sites More sharing options...
davey_b_ Posted April 28, 2008 Share Posted April 28, 2008 I found this one to be decent but you might want to look around... http://www.openwebware.com/products/openwysiwyg/ Hope it helps. Quote Link to comment https://forums.phpfreaks.com/topic/103318-text-editor/#findComment-529153 Share on other sites More sharing options...
dptr1988 Posted April 28, 2008 Share Posted April 28, 2008 If you want a full blown WYSIWYG editor, I can reccomend 'http://www.fckeditor.net/' and 'http://tinymce.moxiecode.com/'. Text editors like the ones on these forums are simple textareas with JavaScript buttons that will insert bbcode. Quote Link to comment https://forums.phpfreaks.com/topic/103318-text-editor/#findComment-529160 Share on other sites More sharing options...
hassank1 Posted April 28, 2008 Author Share Posted April 28, 2008 thx for both of u .. well the problem that if I used an advanced text editor .. ( that doesn't use bbcode ) .. it would be difficult to transfer the contents of the textbox into bbcode ... right ? btw I've a function bbcode2html($text) ... so would it be easy to convert if I used it ? Quote Link to comment https://forums.phpfreaks.com/topic/103318-text-editor/#findComment-529162 Share on other sites More sharing options...
dptr1988 Posted April 28, 2008 Share Posted April 28, 2008 And advanced editor like fckeditor will return HTML contents, so there is no need to use bbcode. ( IE. HTML is greater then BBCode) If you want to use BBCode use a simple textare like in these forums. Quote Link to comment https://forums.phpfreaks.com/topic/103318-text-editor/#findComment-529165 Share on other sites More sharing options...
hassank1 Posted April 28, 2008 Author Share Posted April 28, 2008 And advanced editor like fckeditor will return HTML contents, so there is no need to use bbcode. ( IE. HTML is greater then BBCode) If you want to use BBCode use a simple textare like in these forums. yes I totally agree .. but what if user inject scripts tags into the text editor ex : " <script> //an unallowed script code </script> ... etc... Quote Link to comment https://forums.phpfreaks.com/topic/103318-text-editor/#findComment-529174 Share on other sites More sharing options...
dptr1988 Posted April 28, 2008 Share Posted April 28, 2008 When you go to process that text with PHP, you strip out or disable all HTML tags. Then tag the approved BBCode tags and convert them to HTML. Also I want to double check that you understand that JavaScript or any script that can be put between <script></script> tags can not be run on your server and only can cause trouble on the clients web browser when it is redisplayed by the PHP script. Quote Link to comment https://forums.phpfreaks.com/topic/103318-text-editor/#findComment-529175 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.