LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   php text editor (https://www.linuxquestions.org/questions/programming-9/php-text-editor-634446/)

lamtab 04-10-2008 01:12 PM

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.

anupamsr 04-10-2008 05:07 PM

Have you tried Kate? (Just asking)

graemef 04-10-2008 05:53 PM

There are quite a few out there, search on google for "wysiwyg rich text editor html"

One that is used a lot is TinyMCE

lamtab 04-11-2008 03:29 AM

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.

Wim Sturkenboom 04-11-2008 04:10 AM

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

lamtab 04-11-2008 08:32 AM

i want the second one thx.

Slokunshialgo 04-11-2008 08:44 AM

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.

TB0ne 04-11-2008 08:47 AM

Quote:

Originally Posted by lamtab (Post 3117721)
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.

Check out http://www.hotscripts.com. Lots of PHP examples there to get you going.

lamtab 04-11-2008 11:52 AM

thank you all. i guess i have to do a lot of research. i'm a novice you see :D

anupamsr 04-11-2008 12:18 PM

May be you should ask this on specialized PHP forums... that's what I do :)

graemef 04-11-2008 06:09 PM

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.

vxc69 04-11-2008 08:09 PM

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

lamtab 04-12-2008 02:43 AM

thank you. I really appreciate your help. maybe next time i can help you too :D

lamtab 04-12-2008 07:17 AM

wyzz did the job nicely. ty


All times are GMT -5. The time now is 01:49 AM.