Formatting Tags appearing in TextArea Component

I'm having an issue with TextFormat tags that are appearing
in textfields. Here's an overview of what I'm doing:
Basically, I'm trying to grab the text from a textArea
component: (myText = myTextArea.text")
Because I want to retain formatting, I have the textArea set
to be html.
Thus, myText becomes the text you see below
So the myText data is then stored in XML, but later when I
try to access it, it fills that same textArea component with the
literal code rather than the formatted text. How do I take that
TextFormat string and convert it back to it's original form? I've
tried myTextArea.htmlText but I guess that isn't it. Thanks for the
help!
Thanks!

Let me make my question easier to understand: ;-)
I've got the text formatting (below) in a string. Using that
string, how do I display the text it contains correctly?
Thanks!

Similar Messages

  • How to insert formatted text in a JTextPane component?

    Hello,
    This is my first post in a java forum so i hope to get help :)
    Anyway, i am facing some problems in developping my project , the project consists of a tool to provide text editing allowing text formatting like MS Word , it allows different font style , size , color , text alignment...etc
    My program generates .html files i.e. the text formatting is obtained using html tags ...
    My problem is when the user opens the file again , any text formatting is unsaved, meaning, he MOSt continue typing using the same font size , style...etc any change in the format is unsensed and surely not saved in the html file .
    till now i can't doubt where exactly is my problem .. but i'll be here for any attempts to help me :)
    Thnx a lot

    unfortunately it doesn't work this way(or I am doing it wrong as I don't know anything about css)
    If I set white-space: nowrap the text is displayed in one single line ( so probably I implemented it the right way)
    but with white-space:pre he still ignores all the whitespaces!
    reading the same text (from a microsoft sql server table)with a textarea component all whitespaces and line breaks are shown! there has to be a way to make the static text or label component act this way(I don't want to use the textarea component because it's ugly and doesn't serve for my purpose).
    can anybody help me?
    edit: observation:
    if I use "nowrap" for the textarea component he still keeps all whitespaces WITHIN the string but displays the whole string in one line
    but somehow he deletes white spaces in the beginning of the string
    the static text/label components delete all whitespaces before AND within the string
    Edited by: Arthur... on Feb 15, 2008 9:34 AM

  • How can i display image in mx:TextArea Component?

    I found display img tag in htmlText of mx:TextArea component
    is very difficult in Flex Air
    I new a simple air project in flex builder, put the code
    below in it, i put a glad.png file in the src folder, every thing
    is OK, when i run it, image cannot be displayed. why this happend,
    I search the google for the solution, it seems there is a bug in
    air, and told me to use mx:HTML coponent, but that component still
    can not display img tag.
    could any one help me with this?
    <mx:TextArea width="100%" height="100%">
    <mx:htmlText>
    <![CDATA[
    <a href='
    http://www.adobe.com'><img
    src='glad.png'/></a>Click the image to go to the Adobe
    home page.
    ]]>
    </mx:htmlText>
    </mx:TextArea>

    I ran into a similar problem and wasn't able to find a way to have regular Flex components (like Text and TextArea) display <img> tags in their htmlText.  Everything works find in a web-based Flex application, but once the same code was used in AIR, the images just wouldn't display.
    I changed my display to use the mx:HTML component and everything worked fine (I was using only external images).

  • A few questions about using an XML file to add text into a TextArea component set as html

    I'm using AS2 in Flash CS3.
    I have a TextArea component in the stage that's loading its text from an XML and I've been able to use the ul and li tags to create lists. However, when I try to include a nested list it just inserts a line break between the nested list and the main list rather than indent it further. Is there a solution for this issue?
    Failing that, how would I be able to add non-breaking spaces into the XML so they will render inside the TextArea component? I've tried   and &#160; without success. I scoured the net for some help with this and found some information about modifying the font embedding xml file with a new entry for the non-breaking space and that didn't work either, so that leaves me somewhat stumped.

    flash doesn't handle nested lists (as you now know).  you can work-around that limitation using css and creating your own indent styles.  css have a marginLeft property you can use.

  • HTML Tags appear in Notes : how to removing display HTML Correctly.

    Hi the Notes section of HTML CLient for service request, we are seeing HTML Tags appearing in the following format.
    <html><b>Some message/b></html>
    We want to make it appear in HTML format. Not with the HTML Tags. Is there some way to get rid of the HTML Tags ?
    Appreciate you inputs.
    Rgds

    I guess you need to explain your page structure and actions you are doing in a more detailed way. You mentioned a table Jtf_NOTES_B, is it a OAF page or a JSP page ?
    --Shiv                                                                                                                                                                                                                                                                                                                                                               

  • Can I display formated text on a TextArea

    I am developing a chat applet. I want to display texts from chatters in a TextArea with specific colour and font. But TextArea only contain a method AppendText(String) where displaying plain text is only possible. Please anyone help me to display formatted text in a TextArea(or any relavent component).
    Thank you very much.

    You will probably want to look at JEditorPane instead.

  • TextArea Component - a href will not work locally (on CDROM)

    Hi,
    I have many products out there that use a TextArea Component
    with an <a> tag that calls another url as in:
    <a href="anotherPage.html">Click Here</a>
    This functionality stop working on Flash Player 9. My old
    products are useless until Adobe fixes the bug, but now I have to
    figure out how a way to get around this.
    Any ideas?
    Thanks!!

    Thanks! That helps although the simptoms are new.
    This was working on Flash Player 8, the version in which they
    decided to bring about this sandboxes ordeal.
    And now in Flash Player 9 it still works if I tell the getURL
    to target a "_blank" page. It only breaks when I target "_self".
    Now, that's not very secure to me.
    But I wish they come up with a better solution. With the
    sandbox issue the power of Flash has been rendered useless in local
    devices. I'm think of developing in a different language just
    because of this.

  • TextArea component scrollpolicy being ignored

    The scroll policy for the textArea component appears to be "auto", and that works just fine.
    However, I want to be able to turn it off in certain situations, i.e., not have the scroll bar appear.
    I do the following which I thought would turn it off but the scroll bar still shows up.
    Any help would be appreciated.
    Code Snippet:
         myTF = new TextFormat("Arial", 10,  0xFFFFFF,false);
         myText_mc.myTextArea.setStyle("textFormat", myTF);
         myText_mc.myTextArea.verticalScrollPolicy = "OFF";
         myText_mc.myTextArea.horizontalScrollPolicy = "OFF";
    Thanks,
    Vivian

    should be all lower case
      myText_mc.myTextArea.verticalScrollPolicy = "off";

  • $_POST  textArea component font size

    I have not seen anything on this, could someone help me out.
    I have textArea component (and even tried a dynamic and input
    text field) that I input text into and
    $_POST to a php file that sends the variables to me in email.
    Simple enough, right.
    Ok, well when I send to the PHP and have it "echo" to the
    stage it's HUGE also in my email it's big.
    my other INPUT components that I have set up for name and
    such are the right size.
    I have a feeling it's nothing to do with the PHP but with the
    varible info. being sent to it
    using the textArea component. Does anybody know what's going
    on?
    Oh, the dynamic and input text fields (not components) that I
    use don't even $_POST.
    Thanks for any help.
    Sky

    We have been trying to figure this problem out. Still no answer but it appears to having nothing to do with TextArea or embedding fonts. I have an old text field which displays 10pt Arial as 10pt Arial. If I create a new text field in the same symbol, on the same layer, or another layer, with the same exact properties, 10pt Arial, the new text field displays the font in something smaller, more like 7 pt. If I copy the old text area it stays correct as 10 pt.
    Several people have looked over all properties that we can think of and as far as we can tell the two text fields are exactly the same except they display the font smaller (and it can be another font, they all come out too small). During one exploration something was done, which we can't duplicate, that "fixed" the Flash so that a new text field displayed the correct font size. We were using the same file (which we hadn't saved).
    Any help would be appreciated. I will update here if we locate the problem. Thanks!

  • Flash CS5 How does one change background color in TextArea Component

    I'm trying to change the background color of a TextArea Component.  Does anyone know how to do this?
    function processXML(e:Event):void {
      var strTextBox:String;
      myText.visible=true;
      myText.setStyle("contentBackgroundColor", 0x000000);  //Does not work..nor does   myText.setStyle("backgroundColor",0x000000);
      myXML = new XML(e.target.data);
      strTextBox = "<a href='" + myXML.Branch[0].linkURL + "'> More Info...</a>";
      myText.htmlText=strTextBox;

    for that one you have use styles:
    var newFormat:TextFormat = new TextFormat;
       newFormat.bold = true;
       newFormat.size = 18;
       newFormat.color = 0xFFFFFF;  //I'm wanting white font on black background.
       //apply the format:
    myText.setStyle("textFormat",newFormat);
       myText.visible=true;
      myText.textField.background=true;
      myText.textField.backgroundColor=0x000000;

  • How can I access the content of a textarea component?

    I'm trying to use a javascript form editor in my jsf project.
    The form editor writes to an html <textarea> component.
    The jsp page looks like this:
    <div style="height: 336px; left: 0px; top: 0px; position: absolute; width: 672px">
    <script language="javascript" type="text/javascript">
    tinyMCE.init({
    mode : "textareas",
    theme : "advanced",
    </script>
    <textarea cols="50" name="content" rows="15">This is some content that will be editable with TinyMCE.</textarea>
    </div>
    The content of the <textarea> component is changed with the editor.
    What I need to do is capture that content after it has been edited.
    How can I do that??
    Thanks

    I have a similar problem. When I try to watch the rented movie a pop up says "Cannot Open: The content is not authorized"     What exactly is the problem. I'm not in the US at the current moment. I'm in France. But that shouldn't be a problem right?

  • How do I create (or delete) a new tag for a website, so that its tag appears (or does not appear) every time I restart Firefox?

    How do I create (or delete) a new tag for a website, so that its tag appears (or does not appear) every time I restart Firefox?

    See this - https://support.mozilla.org/en-US/kb/How%20to%20set%20the%20home%20page

  • How do I keep the name tags in Picasa Web Albums from appearing on the images by default? With Explorer, name tags only appear when mousing over the image, but with Firefox, all the tags appear on the picture as soon as it is loaded, which looks messy.

    I use Picasa to create web albums, and I tag people who appear in the pictures. With Explorer, the name tags do not appear on the pictures until I mouse over a specific person, at which point the tag appears. With Firefox, the name tags appear as soon as the picture is loaded, and only disappear when you mouse over the people in the picture. This makes the picture look messy; by default, one would want to see a picture without tags all over people's faces.
    The only way to "fix" this is to disable the name tags completely (or tell people to use Explorer!), but this is not an ideal solution, since I would like to be able to share albums with people's names in them.

    I use Picasa to create web albums, and I tag people who appear in the pictures. With Explorer, the name tags do not appear on the pictures until I mouse over a specific person, at which point the tag appears. With Firefox, the name tags appear as soon as the picture is loaded, and only disappear when you mouse over the people in the picture. This makes the picture look messy; by default, one would want to see a picture without tags all over people's faces.
    The only way to "fix" this is to disable the name tags completely (or tell people to use Explorer!), but this is not an ideal solution, since I would like to be able to share albums with people's names in them.

  • TextArea component AS3

    I'm having trouble both working out or finding out how to
    apply an imported css file to the CS3 TextArea component. I've
    frequently done this in AS2 using Flash 8, but that code no longer
    works. If anyone knows could you please let me know. Here's the AS2
    code I've used previously:
    private function loadCss(){
    var myStyle = new TextField.StyleSheet();
    myStyle.load(this.CssPath+".css"); // the CssPath variable
    here was supplied within an object passed through to the
    constructor
    textArea.styleSheet = myStyle;
    loadXml();
    }

    Thank you Anirudh,
    I have been using the TextArea component because it has code to handle scrollbars, and in Flash this component is a wrapper for a TextField object. As far as I can see this is not the case in Flex, and my AS3 code sets almost all of the TextField attributes, so I probably can't use Flex and the Flash Builder anyway. At least not without throwing all my code away.
    Besides, the .swf file generated seems to be much bigger than in Flash.

  • TextArea component wont word wrap.. help!

    I cant seem to get the TextArea component in Flash 8 to word
    wrap. I've set the word wrap parameter to "true" but it will not
    word wrap. It just puts all the text in one line. How do you fix
    this? Also, is there a way to control the font size in the TextArea
    component?
    Thanks!

    ad 1. sorry but in my instance true is set by default to word
    wrap option and it works.
    ad 2 instanceName.setStyle("fontSize",24)
    u can learn more about TextArea by lookin to the script below
    ( its just an example):
    function setStyles(instance) {
    instance.setStyle("themeColor", "blue");
    instance.setStyle("color", "blue");
    instance.setStyle("fontFamily", "Courier New");
    instance.setStyle("fontSize", 12);
    instance.setStyle("fontWeight", "bold");
    instance.setStyle("backgroundColor", 0xDDE0FF);
    instance.setStyle("borderStyle", "alert");
    setStyles(myTextArea);

Maybe you are looking for

  • Sample value accuracy in sample editor

    My setup is a motu 2408mk3 into Logic Pro 6 on my G4 mac. When I open a 24 bit aiff file in the sample editor and set the sample editor to view samples on the vertical axis, it only shows a max sample value of 32767. This is the max value of 16 bit d

  • Seeing transitions, effects, presets in bins

    Hi, new user just upgraded from ELements. Loving all the new features and trying to get accustomed to the subtle differences that affect the way I work. One thing I'm wondering is there any way to have the thumbnail view (and motion preview) of the t

  • Photoshop CS4 is closing my layers windows

    As the title says, whenever I minimize PS when I maximize it (or open some PSD file) Layers are closed and I need to double click it to expand it, and that's kinda annoying :\ Are there some kind of options for setting this thing up? I have looked in

  • Change Defaults - Acrobat Pro XI 11.0.10 on Win 8.1

    90%+ of the time I am adding a text box to a PDF file it is to add a comment reflecting the payment information on a bill I have paid.  I'd like to be able to change the DEFAULT settings for color, size and font so that I don't have to go through cha

  • BEx crashes when changing variable values

    Hi all, We're having a problem with BEx. It crashes when trying to change variable values. We've been looking into syslogs and dev logs and so on, and found that the cpic connection has been disconnected before the crash. BUT we cannnot find out what