>>have you tried using the unescape function?.....something like this:
>>
>>test_txt.replaceSel(unescape("<img src=\"mountains.jpg\" width=\"350\"
>>height=\"120\" />"));

That doesn't seem to work. Still shows as: 

&lt;img src=&quot;mountains.jpg&quot; width=&quot;350&quot;
height=&quot;120&quot; /&gt;

Thanks though.



Jason Merrill
Bank of America 
Learning & Organization Effectiveness - Technology Solutions 
 
 
 
 
 

>>-----Original Message-----
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of John VanHorn
>>Sent: Monday, August 07, 2006 8:43 PM
>>To: Flashcoders mailing list
>>Subject: Re: [Flashcoders] WSIWYG HTML text editor in Flash - follow
on question
>>
>>
>>On 8/7/06, Merrill, Jason <[EMAIL PROTECTED]> wrote:
>>>
>>> Oh, and to follow up with some further information:
>>>
>>> It seems to only encode those HTML entities when I use
>>> TextField.replaceSel().  If I just add the <img> tag string on to
the
>>> htmltext field value, it works:
>>>
>>> //works:
>>> test_txt.htmlText += "<img src=\"mountains.jpg\" width=\"350\"
>>> height=\"120\" />";
>>>
>>> //fails - shows literal text, and encodes entities:
>>> test_txt.replaceSel("<img src=\"mountains.jpg\" width=\"350\"
>>> height=\"120\" />");
>>>
>>> Am I left with splitting the string in two, inserting the <img> tag,
and
>>> re-assembling the string?  Or is there a way to get replaceSel() to
work
>>> with HTML tags?
>>>
>>> Thanks,
>>>
>>> Jason Merrill
>>> Bank of America
>>> Learning & Organization Effectiveness - Technology Solutions
>>>
>>>
>>>
>>_______________________________________________
>>Flashcoders@chattyfig.figleaf.com
>>To change your subscription options or search the archive:
>>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>>Brought to you by Fig Leaf Software
>>Premier Authorized Adobe Consulting and Training
>>http://www.figleaf.com
>>http://training.figleaf.com
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to