| Author |
adding font formatting features to jsp
|
Sankha Ray
Greenhorn
Joined: May 01, 2010
Posts: 6
|
|
Hi all,
I am new to j2ee, and i have to make a page where the text area for a field has a certain aspect. If we select some portion of the sentences that will be written in it,and click on the bold option(much like the one i am using here),that portion will be in bold letters and will be saved accordingly in database.
I have no idea about javascript and i am new to jsp.So can you give me a little outline for how to do it? i don't want spoonfeeding,just a liitle idea as i am very short on time for this one.
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56208
|
|
|
JSP will be of no help to you. You'll need to use a JavaScript rich text editor.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
Sankha Ray
Greenhorn
Joined: May 01, 2010
Posts: 6
|
|
|
may i know which rich text editor is used in javaranch?
|
 |
Jeanne Boyarsky
internet detective
Marshal
Joined: May 26, 2003
Posts: 26193
|
|
|
We don't have a rich text editor here at the Ranch. We have a plain HTML textarea along with a bunch of UBB style tags/buttons that work with pure JavaScript.
|
[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
|
 |
Hebert Coelho
Ranch Hand
Joined: Jul 14, 2010
Posts: 754
|
|
|
You could check for Primefaces that it is a component of JSF. It has a text editor.
|
[uaiHebert.com] [Full WebApplication JSF EJB JPA JAAS with source code to download] One Table Per SubClass [Web/JSF]
|
 |
Tim Holloway
Saloon Keeper
Joined: Jun 25, 2001
Posts: 14491
|
|
Another JSF solution is to use the RichFaces Editor control.
But for non-JSF pages, there's tinyMCE, which is what RichFaces builds on. There's also several other rich text editor components available, but for those I'll just have to recommend your favourite search engine.
|
Customer surveys are for companies who didn't pay proper attention to begin with.
|
 |
 |
|
|
subject: adding font formatting features to jsp
|
|
|