Re: php text box toolbar



On Fri, 28 Nov 2008 16:12:48 +0900, in alt.php trookat
<trookat@xxxxxxxxxxxxx>
<492f9a01$1@xxxxxxxxxxxxxxxxx> wrote:

| trookat wrote:
| > Troy Piggins wrote:
| >> Just wondering if there is php code to use as an exampe that
| >> allows very simple text formatting. That's not the right term,
| >> I'll explain.
| >>
| >> I want to have a text box in a form for a web page that has a
| >> toolbar along the top of the textbox. The toolbar is similar to
| >> many forums etc you see that has bold, italics, underline etc
| >> buttons on it. If you highlight a word you've typed in the text
| >> box and hit the bold button, <b> html tags are automatically
| >> added each side of the selected text.
| >>
| >> I'd also like it to be able to wrap <a href=""> tags around the
| >> text. If text is selected, click the "link" toolbar button, a
| >> popup appears where you paste the url, click ok and the <a
| >> href="url"> tags are wrapped around the selected text.
| >>
| >> It's not important that the text in the text box is displayed in
| >> bold, I just want the html code inserted each side.
| >>
| >> Hope that makes sense. I would have thought this is pretty
| >> common for web forms, but I must be searching for the wrong
| >> terms.
| >>
| >
| > As rf has replied , its not a thing php can do and it involves JavaScript
| >
| > However you reminded me to try and find the one i was using years ago
| > took me a hour of digging through old code but i found it
| >
| > http://www.htmlarea.com/
| >
| > converts your ordinary text box into a rich text editor
| >
| > regards trookat
|
| now I feel silly this was stopped ages ago . you can get it here
|
| http://master.paradigmprint.com/master/default.37.37.0.0.0.0.html
|
| if that does not help , try a google like rf said
|
| I'll go hide in the corner now lol

There are other editors out there. The 2 that I know of are FCKEditor
and TinyMCE. Both can be customised as to what functionality is
available to the textarea tag.
.


Quantcast