Wednesday, April 09, 2008

RichTextEditor >> valid HTML output

Somehow i just know you had the problem with valid HTML coming from the Flex RichTextEditor component. I mean, as output you are getting all of those tags you don't need and you just want to have some basic functionality like bold or italic text...


Heh... No i didn't build new RichTextEditor... I just changed a few lines of code in mxml file to hide the buttons i do not need and then i am posting htmlText from the component to php file to handle the rest!
The PHP code looks something like this:

And now you will have pretty clean HTML with tags you need and you can push it in your database or what ever you want to do with it...
Yeah i know... it's not a big deal... but it works!!!

5 comments:

  1. hi!
    it wold be very useful!
    how can i get it?

    thank you!

    ReplyDelete
  2. Hi Teocomi!
    Sorry for late reply but I was quite busy these days so i didn't had a chance to answer this. I will update this post with source code included (if still needed).

    ReplyDelete
  3. Anonymous2:26 PM

    yes code please.
    does anyone know how to insert images? that is my biggest problem now.
    thanks

    ReplyDelete
  4. Anonymous1:00 PM

    Absolutely brilliant!!!
    Thank you

    ReplyDelete
  5. Anonymous1:31 AM

    Hi!!

    i am Korean!

    Please RichTextEditer Source Code~

    segunkang@gmail.com

    ReplyDelete