Feedback on NI Community

cancel
Showing results for 
Search instead for 
Did you mean: 

Dragging toolbar buttons while composing a message

Robot winkYou know that in the "Message body" box where we compose messages there is a toolbar used to format text, add a url, an image and so on. What I noticed is that the buttons on this toolbar can be drahhed into the message text box and they appear there exactly as buttons. They are sjowed as buttons even while previewing my message: now I'm testing what happens when actually posting the message.
 
Here I added the "Insert an image" button: Insert an Image
 
 
Here the "Insert a Hyperlink":  Insert a Hyperlink
 
Here the "Insert Smileys": Insert Smilies
 
...and formatting text buttons: Bold (Ctrl-B)Italics (Ctrl-I)Underline (Ctrl-U)Strikethrough
 
 
 
Ok, in the actual message only the associated image is shown Smiley Wink.
The strange fact is that in the "Preview post" box they are still operable, while obviously the smiley in the preceding sentence is not! Last observation: in the preview the first 2 buttons emit the usual dialogues for inserting the image or the hyperlink, while all the others show the smiley box Smiley Surprised And they are somewhat operable: the smiley on the first line was added by selecting a smiley in the selection box showed by pressing the "Strikethrough" button in the preview! Smiley Surprised Smiley Surprised Smiley Surprised

 

Message Edited by Roberto Bozzolo on 02-04-2006 08:28 AM



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Message 1 of 2
(4,657 Views)

This is cool, but does not sound good! 😞

You can do an "edit as HTML" to see the code it inserts. e.g. in the case of "quote post", it generates:

<IMG onmouseup="this.className='raise';" class=depressed onmousedown="this.className='depressed'" onmouseover="this.className='raise';" onclick=quotePost(); onmouseout="this.className='norm'" height=22 alt="Quote Post" src="http://forums.ni.com/i/global/post_quote.gif" width=22 border=0>

My personal feeling is that it could be a security risk to allow code execution from a composition form (I am no expert on this, though).

 

0 Kudos
Message 2 of 2
(4,630 Views)