Using the editor in a component
From Joomla! Documentation
Revision as of 08:46, 11 September 2008 by Intertron
To get some interaction with the visitors of your website your visitors need to be able to add some content.
This article will show you how visitors can add some data using a rich text editor.
Lets start with the component created in the article Developing a Model-View-Controller Component - Part 4 - Creating an Administrator Interface which lets the administrator add new entries to the database. The component can be downloaded at: com_hello4_01
Expand the data model
The model used in the tutorial can only hold a text of 25 characters. Lets add a new field which can be used to hold a lot more text, so we can save the editor contents.
Use your favorite tool to access the php database and open the jos_hello tabel in your joomla database. Add a new field to this table by running this SQL statement:
ALTER TABLE `jos_hello` ADD `content` TEXT NOT NULL ;