php text editor
Hi all i'd like to ask you to give me a simple text editor script. I mean something like the one we use to post here or simpler cause all i need is the text manipulation. I'm using php with mysql and i store the text in a field. Do i need anymore fields for the format? Thank you.
|
Have you tried Kate? (Just asking)
|
There are quite a few out there, search on google for "wysiwyg rich text editor html"
One that is used a lot is TinyMCE |
thx i'll give it a shot, but i'd really appreciate it if someone could give me the php script, cause i'm really interested in learning how this is done.
|
I don't understand what you want?
Do you want a text editor to edit PHP code? Or do you want to create a webpage with a text input field and a button and when you click the button it writes the text in a database? If so, search for a PHP/MySql tutorial. Some links; the original version (no longer available) of the first one is how I learned http://dev.mysql.com/tech-resources/...dws/index.html http://www.webmonkey.com/programming...tutorial4.html |
i want the second one thx.
|
I've made a couple of basic ones before, all following the same basic idea: Search the input string for different pre-defined things (such as \n) and replace it with what you want stored (such as <br />). If I could dredge up the code I used, I might give you an example, but basically you just need some search & replace functions. Look up ereg, and various other regular expression functions.
|
Quote:
|
thank you all. i guess i have to do a lot of research. i'm a novice you see :D
|
May be you should ask this on specialized PHP forums... that's what I do :)
|
Here are the tutorials (since updated) that I used many moons ago to learn PHP MySQL programming:
http://www.sitepoint.com/article/php...1-installation http://www.sitepoint.com/article/php-mysql-tutorial I hope that helps. |
Hey there,
I've done this with http://www.wyzz.info/ It's pretty good filled with features and you can configure to remove features as well. The one I got running is not a 100% up to the task. Mainly because the html the wyzz creates messes up parts of the web page it's not supposed to. I haven't figured out a way to solve that, if you come into that problem and figure out a way to solve that issue (maybe by using div tags, or something) let me know. Hope that helps, vxc |
thank you. I really appreciate your help. maybe next time i can help you too :D
|
wyzz did the job nicely. ty
|
All times are GMT -5. The time now is 01:49 AM. |