all groups > flash data integration > july 2005 >
You're in the

flash data integration

group:

HTML Tags via a WYSIWYG Editor


HTML Tags via a WYSIWYG Editor robsoule
7/26/2005 12:00:00 AM
flash data integration: Hello!
I have a mostly working system for updating text in a Flash website. I am
using a javascript WYSIWYG test editor and then I save the contents of a text
field to a MySQL database.
The problem is that the free open source editor I'm using is generating
formatting tags that Flash doesn't recognize. For example, it will display
bold text in with a <strong></strong> tag, but Flash needs to see<b></b>.
Same with the italic tags. Flash doesn't read <em></em> but it does read
<i></i>.
Is there a way to make Flash read these other HTML tags? Thanks for any help!
Rob
Re: HTML Tags via a WYSIWYG Editor perry
7/27/2005 12:00:00 AM
or you use string methods to search/replace, like
yourString = yourString.split("<strong>").join("<b>");
and so on ...

take a look at string and array object for details
perry

"LuigiL" <webforumsuser@macromedia.com> schrieb im Newsbeitrag
news:dc7dre$g9q$1@forums.macromedia.com...
[quoted text, click to view]

Re: HTML Tags via a WYSIWYG Editor robsoule
7/27/2005 12:00:00 AM
Thanks! I'll check into that option.

Re: HTML Tags via a WYSIWYG Editor LuigiL
7/27/2005 7:41:34 AM
No. Flash won't read those tags. Simply not supported. A quick way to correct
this, is replacing the tags with supported ones using regular expression in
your server side script that receives the formatted text from the editor and
then save the data to the database.
AddThis Social Bookmark Button