School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become an Expert!

Join 300,443 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,525 people online right now. Registration is fast and FREE... Join Now!




Text Editor

 

Text Editor

tommyflint

16 Jun, 2009 - 11:14 AM
Post #1

D.I.C Addict
Group Icon

Joined: 24 Jul, 2008
Posts: 584



Thanked: 28 times
My Contributions
Not sure what part of this forum this would be best in but her will do.

I'm building a Site in PHP and wanted to allow the Admin to change the content of each page, what i was after was some sort of simple text editor plugin? also what is the best way to store the html, would you just store it in the database?

tommyflint

User is offlineProfile CardPM
+Quote Post


BetaWar

RE: Text Editor

16 Jun, 2009 - 11:39 AM
Post #2

#include <soul.h>
Group Icon

Joined: 7 Sep, 2006
Posts: 4,729



Thanked: 269 times
Dream Kudos: 1400
My Contributions
It depends on what you are looking at doing, if you want to be able to include the files for each page, then the Admin could use something like dreamweaver (If they don't know HTML) which has a built in FTP client. If they want to edit it online then a simple text editor would be fine.

Whether or not you wan tto keep the HTML in a database depends on what type of content it is. If it is just posts, then keep use the database to hold the posts and an HTML template in a file for displaying. If it is a web based editor, you could do either. It isn't that hard to make a CMS. If it is like dreamweaver the files would be easiest to do.

Hope that makes sense.
User is offlineProfile CardPM
+Quote Post

tommyflint

RE: Text Editor

16 Jun, 2009 - 11:43 AM
Post #3

D.I.C Addict
Group Icon

Joined: 24 Jul, 2008
Posts: 584



Thanked: 28 times
My Contributions
Cheers for that Betawar smile.gif

Yeah Currently I have a kind of CMS where they can change text which is stored in the database but i wanted to allow them to be able to style the text, add tables etc.. on the actual website, is there any simple online text editors you recommend

smile.gif
tommyflint
User is offlineProfile CardPM
+Quote Post

arthurakay

RE: Text Editor

16 Jun, 2009 - 12:04 PM
Post #4

D.I.C Head
**

Joined: 17 Feb, 2009
Posts: 184



Thanked: 16 times
My Contributions
TinyMCE is one of the more popular WYSIWYG editors out there, but the idea with text editors in general (as has already been said) is that they work with a database to store the content.

If you're using static files (in PHP I'll assume), then Dreamweaver is probably your best bet... but most clients I've worked with don't want the hassle of learning something like FTP. The PHP and HTML code may also scare some clients. Lastly, do you really want to give anyone but a web developer access to the code via FTP? Unless you keep amazing backups, you're going to want to kill yourself when they accidentally screw up the code and upload changes to the server.

The bottom line is that you're trying to get CMS functionality, and the best way to implement that is via a database.

Since you're already using PHP, you might check to see if something like Joomla is an option for your situation. It solves the CMS problem for you... but you'll need to build/edit a template for the site to fit your existing design.
User is offlineProfile CardPM
+Quote Post

tommyflint

RE: Text Editor

16 Jun, 2009 - 12:14 PM
Post #5

D.I.C Addict
Group Icon

Joined: 24 Jul, 2008
Posts: 584



Thanked: 28 times
My Contributions
Cheers arthurakay.
QUOTE
Yeah Currently I have a kind of CMS where they can change text which is stored in the database but i wanted to allow them to be able to style the text, add tables etc.. on the actual website, is there any simple online text editors you recommend

I have already got a database that i'm using in the site already, so i guess ill give TinyMCE a go, i have used Joomla before and done a little bit of template design for it but it is just a little bulky for the site i'm currently doing smile.gif

tommyflint

This post has been edited by tommyflint: 16 Jun, 2009 - 12:14 PM
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/8/09 01:28AM

Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month