Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Data Integration / July 2005



Tip: Looking for answers? Try searching our database.

HTML Tags via a WYSIWYG Editor

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
robsoule - 26 Jul 2005 16:31 GMT
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
LuigiL - 27 Jul 2005 08:41 GMT
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.
perry - 27 Jul 2005 14:02 GMT
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

> 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.
robsoule - 27 Jul 2005 14:35 GMT
Thanks!  I'll check into that option.

-Rob
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.