http://osflash.org/flashtextarea

On Tue, 01 Aug 2006 11:35:49 -0300, Merrill, Jason <[EMAIL PROTECTED]> wrote:

strip them out and replace with what
you need for the corresponding styles for your site....

Right, if I follow you, that's similar to what I have tried, but I can't
get the textfield to re-render the HTML tag  - it shows the tag
literally if I use replaceText() or replaceSel().

Or how would you do it?  Have a code example?  thanks.

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

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Tom Rhodes
Sent: Tuesday, August 01, 2006 10:23 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] WSIWYG HTML text editor in Flash?

i've made some simple ones for css sites, that get their copy out of a
db. i used textformats back in the flash 6 days, then in the output
string, once you've applied the formatting in the "editor" text field,
you look for the textformat tags, strip them out and replace with what
you need for the corresponding styles for your site....

with 7 and the stylesheets support maybe it's even easier than that. I
just remember having to keep things simple in terms of editor
functionality, basically one button for each possible style....

Merrill, Jason wrote:
Two related questions.  In a nutshell, trying to make a WSIWYG HTML
text
editor for Flash 7.

Question 1:

Has anyone created an HTML text editor component or class of some
kind
in Flash?  Basically, having a textfield containing a paragraph of
text
the user can apply bold, size, font, etc. to - I assume it would use
something like:


textfield.replaceText(Selection.getBeginIndex(),Selection.getEndIndex(),
theNewString)

or something to that effect.

So to my second question, I was able to get the above working, but
the
html Textfield would not apply the new HTML tags, it would show them
literally when replaceText was used.  Initially, I set the text with
textField.htmlText = myText and renders fine with the bolding, but
textField.replaceText() seems to not allow the textfield to show the
bold tags applied - it shows the literal tag.   Any ideas?

Basically, would like to create a WSIWYG HTML text editor (flash 7),
but
from what I read in the archives, it's a lot harder than it sounds
and
maybe not even possible in Flash right now, but I don't want to give
up
too early.  It seems that all the basic methods are available, there
are
just some quirks to work out with the Textfield class.

Thanks,

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


_______________________________________________
[email protected]
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





--

__________________________________

Tom Rhodes - Developer / Composer
Wheelhouse Creative Ltd, 2 Albion Place,
Hammersmith, London. W6 0QT
Tel: 020 8748 4466  Fax: 020 8748 4850
www.wheelhousecreative.co.uk
__________________________________

_______________________________________________
[email protected]
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
_______________________________________________
[email protected]
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



--
_____________
Marcelo Volmaro
_______________________________________________
[email protected]
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