Insert / Update with the RTE editor
Contents | ||
Installing and options | Next |
First if you're not comfortable with installing extensions follow the tutorial on how to install the editor.
Ok now thats done, we have the editor embedded on a blank page, in this case I am using ASP but use PHP or whatever you want:
There are a couple of options you can set on the editor specified by the line: richedit.options, these are as follows:
Option | Options | Default | Description |
history | yes / no | yes | This option is used to turn the undo / redo feature on or off. |
source | yes / no | yes | This option allows you to turn the ability to let the user edit the source code of the document in the editor on or off. |
styleBar | yes / no | yes | This option allows the style tool bar to be enabled/disabled. The style toolbar comprises the Style, Font, Size and Colour tools. |
style | yes / no | yes | This option allows the style selector to be enabled/disabled. |
font | yes / no | yes | This option allows the font selector to be enabled/disabled. |
fontsize | yes / no | yes | This option allows the font size selector to be enabled/disabled. |
colour | yes / no | yes | This option allows the colour selector(s) to be enabled/disabled. |
All these properties are enabled by default and you must specify if you want to turn them off, seperated by a semicolon, for example I want to allow my users to edit the document but NOT be able to specify the FONT or EDIT THE HTML, I would modify the richedit.options line to read as follows.
<object id="richedit"
data="RTE_files/richedit.html"
width="100%"
height="100%"
type="text/x-scriptlet"
"viewastext">
richedit.docHtml = theForm.text.innerText; |
This will disable the features I dont want.
now thats done lets move on to putting extra fields into the rte editor.
Contents | ||
Installing and options | Next |
Bill Chalmers
Started doing sites in Frontpage about 3 years ago, progressed to ASP, Linux/Mysql, and PHP/MYSQL, currently learning LDAP, XML, XHTML, ASP.net, learning more about css, worked in Hammersmith Hospital for 8 years, Developed
www.hammersmithresearch.com
www.cafenetix.com
www.hammersmithcafe.org
Also developed the Trusts Intranet site with lots of php/asp applications built in, content management, enjoy getting paid for mucking about with stuff I do as a hobby.
Comments
Thank You !
Nice job Bill, thank you! How about another one? Mybe in combination with file upload.
Dot
RE: Thank You !
Question about other fields
RE: Question about other fields
You must me logged in to write a comment.