How to format the content of a textbox

Posted on 2008-10-06
Last Modified: 2013-11-07

I am developing an ( website that it takes data using a form, what I want is to make a textbox WYSIWYG, in other words, that the database stores the information plus the distribution of the text (tabs, carriage returns, etc) in order to show it as the same way that it was captured.

The purpose of this is to keep data listed correctly, like this:

and avoid something like this:

Thanks in advance.

Question by:dimensionav
  • 5
  • 4
LVL 14

Expert Comment

ID: 22651160
Well, let's use the text box used here at Experts Exchange as an example and see what it is doing ...
  • They use an IFRAME that has a property of contenteditable
  • They allow for simple modification of the text formatting, like:
    1. bold
    2. italic
    3. underline
  • The formatting is captured as HTML
Would that be what you want to do as well?

Author Comment

ID: 22651410

You´re right, that´s exactly what I want to do.

Would be possible that you bring me some code or an example for better understanting.

LVL 14

Accepted Solution

dfu23 earned 250 total points
ID: 22651520
I would suggest using a project that already does the grunt for you, like:

FCK Editor is an open source project on which has been around for a while and is rather popular. I'm sure that there are tons more out there but this would be my starting point ...

Author Comment

ID: 22651727
The product seems to be quite useful, I got an OFF Topic extra question:

Considering that the component is regulated under the GPL, LGPL and MPL, what kind of cares should I take in order to distribuite it as a part of my website applications.

Thanks again
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.


Author Comment

ID: 22819094

Any coments to my last question ?

LVL 14

Expert Comment

ID: 22822138
Ah, sorry about the delay there. I believe that there is a basic "cheat sheet" out there on what the license means concerning how it is used. Usually, the idea is that if you simply use the product and do not modify/enhance the product itself then you are not required to do anything ... and this can vary between whether or not it is used within a commercial or non-commercial application.

If there is value added to the product then it is usually requested that you share that back to the project (open source community) in some for or fashion. Does that make sense?

I'll take a closer look at the FCK site and see if I can find out for sure what they are saying about using their product.

Author Comment

ID: 22855979
Should I keep open this question or Do you believe that would be better to open a new question?
LVL 14

Expert Comment

ID: 22856983
May I ask how you are intending on using the FCK Editor in your project? Do you see the need to modify the source to pull off what you want?

If the answer to that is no then you should be just fine under their triple licensing scheme.

Author Closing Comment

ID: 31503457
Thank you very much dfu23

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: (…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now