Grow your CSS skills. Land your dream job.

Rich text editor

  • asp
    # July 19, 2009 at 4:30 am

    Hi!

    I’m trying to make a form of a rich text editor. Yes it may sound a bit overvelming but I’m not trying to make the whole thing. My idea is that on a click of a button you’ll insert a <img src="" alt="" class="small" /> into your text field. Is this possible with jquery? If so, do anybody have an idea on how to do it.

    I also have another problem, when you type something in a standard textbox and save it to a database dubble brakes like this:

    Don’t appear. How can I solve this problem? At the moment I insert <p></p> by had but that’s not convenient. Does someone know how to fix these problems?

    Thank you in advance. :D

    asp
    # July 22, 2009 at 5:03 pm

    I have also tryed to use "append" to the textfield, but it did not work. Is there any other way to add stuff (text) to a textfield?

    # July 22, 2009 at 5:45 pm

    Any reason you aren’t using something prebuilt?

    For example:
    http://www.queness.com/post/212/10-jque … xt-editors
    http://tinymce.moxiecode.com/
    http://www.fckeditor.net/

    asp
    # July 23, 2009 at 9:21 am

    My first thought was to use a prebuilt. But I didn’t like the design and it didn’t fit with my theme. I also like to keep it simple and make it from scratch. ;)

    # July 23, 2009 at 4:13 pm
    "asp" wrote:
    My first thought was to use a prebuilt. But I didn’t like the design and it didn’t fit with my theme. I also like to keep it simple and make it from scratch. ;)

    In the same way that growing your own wheat and processing it into food is "simpler" than buying a box of Cheerios? :roll:

    Making from scratch is rarely simpler, quicker and cheaper than using an existing solution if that solution is of a good quality, open source and in common usage on the net.

    In addition to the above I can recommend Yahoo! Rich Text Editor. It comes in several versions including a lightweight one and is fully skin-able, like all the YUI components, so you should be able to integrate it into your site.

    asp
    # July 24, 2009 at 10:02 am
    Quote:
    In the same way that growing your own wheat and processing it into food is "simpler" than buying a box of Cheerios? :roll:

    Get your point :D I’ll see if I can’t digg in on the Yahoo solutin.

    Thanks.

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".