JOSH KRAJNAK

Custom Rich Text Editor Component

5 Comments so far

  1. admin on April 5th, 2009

    Hi Terence,

    Lets start with your folder structure, you should have:

    src (folder)
    |
    |_ custom (folder)
    | |_ CustomRichTextEditor.as
    |
    |_ CustomRichTextEditor.mxml

    where CustomRichTextEditor.as consists of the code in my example, or in your case its the custom.as file. The code above seems to come out kinda funky in IE7, try using Firefox to make sure it looks correct. Lets test it out! Use the following code:

    CustomRichTextEditor.mxml

    I created actionscript functions to get and set the code, and on the change method of both they grab the text from each other… So when the CustomRichTextEditor changes it updates the TextArea and vice versa. Let me know if that helps.

  2. [...] de votre application pour transformer votre texte à la volée. Certains ont même vu plus loin et ont crée un composant personnalisé basé sur le RichTextEditor auquel ils ont rajouté une propriété "xhtml" qui va prendre le"htmlText" et [...]

  3. admin on May 15th, 2009

    Je suis désolé que monsieur aimable, mon Français soit pauvre. Est-ce que quoi je peux lire, je dira vous remercient ? Merci pour la lecture.

  4. Satish on January 7th, 2010

    Hi,
    I did the same as you said. Copying the mxml and as files and storing the as file in custom folder.

    As a output i get two textboxes and nothing happens if u type in it.
    There is no RichTextEditor created.

    Whats wrong with my program. Please tell. Thx for your timely support.

    Satish

  5. admin on January 8th, 2010

    Start from the begining… create a new flex app. In your “src” folder, create a new folder called “custom”. Copy and Paste this file into your “custom” folder… http://joshkrajnak.com/wp-content/uploads/CRTE/CustomRichTextEditor.as then you need to basically use that component in your main.mxml or whatever you called yours. Let me know if this helps buddy.

Leave a Reply