Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Entering < and > with EnableStyledText (Read 1795 times)
lennart
YaBB Newbies
*
Offline



Posts: 5
Joined: Mar 19th, 2009
Entering < and > with EnableStyledText
Mar 19th, 2009 at 1:26pm
Print Post  
Hello,

I have a problem that I hope someone can bring some light on. We have set EnableStyledText to true on our shapes, and are displaying HTML formatted text (bold, italic and underlined) in them. Works perfectly for the most part.

The problem is that the ShapeNode does not support displaying HTML encoded text. For most special characters this is not a problem since the HTML support is limited. But for the user to be able to enter the greater than (>) and lower than (<) characters in the text, the ShapeNode would need to support displaying and translating the HTML encoded elements &gt; and &lt; As it is now, there is no way to distinguish between <> characters that are part of HTML tags, and <> which are entered by the user and supposed to be displayed.

Is there some feature which I have missed, or is this a shortcoming in the styled text display?

I would be thankful for any help on this issue!

Best regards,

Lennart
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Entering < and > with EnableStyledText
Reply #1 - Mar 19th, 2009 at 2:03pm
Print Post  
Hi,

Seems you can't use <> characters with styled text at this time. We'll fix this for the next release.

Stoyan
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Entering < and > with EnableStyledText
Reply #2 - Mar 20th, 2009 at 9:02am
Print Post  
Hi,

Please check the version from the PM page. It adds support for &lt;, &gt; and &amp;.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
lennart
YaBB Newbies
*
Offline



Posts: 5
Joined: Mar 19th, 2009
Re: Entering < and > with EnableStyledText
Reply #3 - Mar 23rd, 2009 at 4:21pm
Print Post  
Hi,

Thanks for the files, this will solve our problem - works perfectly.

Do you have any idea when we can expect the next release? Thanks for your help!

When you're already in the process of adding support for encoding characters, maybe you should consider adding support for the " (&quot;) and ' (&apos;) characters also. Then you'll have what's included in XML and can in the future add support for tags with attributes, like <font> tags or what you may like. Just a thought.

Best regards,

Lennart
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Entering < and > with EnableStyledText
Reply #4 - Mar 23rd, 2009 at 6:51pm
Print Post  
We'll release 5.2.1 tomorrow or the day after. Now it's too late for adding support for &quot and &apos I'm afraid, but we'll probably implement them for 5.2.2.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint