LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 04-10-2008, 01:12 PM   #1
lamtab
Member
 
Registered: Nov 2007
Posts: 31

Rep: Reputation: 15
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.
 
Old 04-10-2008, 05:07 PM   #2
anupamsr
Member
 
Registered: Sep 2004
Location: India
Distribution: Kubuntu, Archlinux, Suse, Gentoo, Mandrake
Posts: 370

Rep: Reputation: 30
Have you tried Kate? (Just asking)
 
Old 04-10-2008, 05:53 PM   #3
graemef
Senior Member
 
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,376

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

One that is used a lot is TinyMCE
 
Old 04-11-2008, 03:29 AM   #4
lamtab
Member
 
Registered: Nov 2007
Posts: 31

Original Poster
Rep: Reputation: 15
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.
 
Old 04-11-2008, 04:10 AM   #5
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
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
 
Old 04-11-2008, 08:32 AM   #6
lamtab
Member
 
Registered: Nov 2007
Posts: 31

Original Poster
Rep: Reputation: 15
i want the second one thx.
 
Old 04-11-2008, 08:44 AM   #7
Slokunshialgo
Member
 
Registered: Jan 2006
Distribution: Ubuntu 9.04, Fedora 10
Posts: 76

Rep: Reputation: 17
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.
 
Old 04-11-2008, 08:47 AM   #8
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,186

Rep: Reputation: 2468Reputation: 2468Reputation: 2468Reputation: 2468Reputation: 2468Reputation: 2468Reputation: 2468Reputation: 2468Reputation: 2468Reputation: 2468Reputation: 2468
Quote:
Originally Posted by lamtab View Post
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.
 
Old 04-11-2008, 11:52 AM   #9
lamtab
Member
 
Registered: Nov 2007
Posts: 31

Original Poster
Rep: Reputation: 15
thank you all. i guess i have to do a lot of research. i'm a novice you see
 
Old 04-11-2008, 12:18 PM   #10
anupamsr
Member
 
Registered: Sep 2004
Location: India
Distribution: Kubuntu, Archlinux, Suse, Gentoo, Mandrake
Posts: 370

Rep: Reputation: 30
May be you should ask this on specialized PHP forums... that's what I do
 
Old 04-11-2008, 06:09 PM   #11
graemef
Senior Member
 
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,376

Rep: Reputation: 147Reputation: 147
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.
 
Old 04-11-2008, 08:09 PM   #12
vxc69
Member
 
Registered: Jul 2004
Distribution: Ubuntu
Posts: 385

Rep: Reputation: 33
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
 
Old 04-12-2008, 02:43 AM   #13
lamtab
Member
 
Registered: Nov 2007
Posts: 31

Original Poster
Rep: Reputation: 15
thank you. I really appreciate your help. maybe next time i can help you too
 
Old 04-12-2008, 07:17 AM   #14
lamtab
Member
 
Registered: Nov 2007
Posts: 31

Original Poster
Rep: Reputation: 15
wyzz did the job nicely. ty
 
  


Reply

Tags
editor, html, javascript, php, web, wysiwyg


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
text selection question in text editor olin Linux - Software 1 09-25-2007 01:25 PM
Text Editor on Fedora Core 4 in Text Mode blong4life Linux - Software 5 07-31-2006 09:07 PM
Which light text editor can copy text from file and paste in browser? davidas Linux - Software 9 03-06-2006 11:28 AM
a comfortable text editor for php jogurt666 Linux - Software 3 11-15-2003 10:52 AM
Best Text Editor? Ekim Gram Linux - Software 4 05-24-2003 12:36 PM


All times are GMT -5. The time now is 02:20 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration