I'm trying to use the formatted text using HTML tag. I've seen on other post that Infragistics use it's own custom XML format. Where is this format define so that I would be able to see what is available or not?
Thank you
Chris
Hi,
You can check the supported tags at the following link from our online help: Formatting Text and Hyperlinks
Let me know if this is what you asked for or if you have any further questions.
Regards,
Stefaniya
Great, this is what I was desperately looking for.
However, I know from experiencing with the control that there is more attribute supported than showed in the help. For instance, "style" attribute for <p> is supported where you can add "margin", "float", "width", "height", etc. Would there be a full list of supported tag and all their attribute.
FYI The "Edit Formatted Text" designer is a great, great way to play with text formatting. Thank you Infragistics
The Docs for v10.3 have been removed, since that version is no longer supported. But the XML formatting has not changed significantly. Here's a link to the same topic for the 12.1 docs:
http://help.infragistics.com/NetAdvantage/WinForms/2012.1/CLR2.0/?page=WinFormattedLinkLabel_Formatting_Text_and_Hyperlinks.html
For future reference, all I did was change: "2010.3" to "2012.1" in the URL.
I'm not exactly sure what you are asking for. I'm not aware of any ability to assign an id to a tag, but I'm not really sure what that means, so maybe I am wrong.
I'm implementing a button that adds images in my form in UltraformattedTextEditor. I am doing it by building a string for a example: <img style="width:16px; height:16px;float:Left;" data="AAEAA..."/> that is accepted by UltraFormattedTextEditor and displays image. The problem is that I need to assign a unique id or name to this <img/>. In XML format you can assign id in image tag or name or any other attribute if needed. I was asking if <img/> tag in UtraFormattedTextEditor does have a attribute that I could assign this ID?
Okay... so it seems like what you want is to just add in some XML tags or attributes of your own that you can use but that the control ignores. Is that right?
I would think that the control would simply ignore any tags it does not recognize. So if you added in an id tag into your Img tag, it would not have any effect. And then you could parse the XML and find those tags.
Is that not the case?
I've looked into this, and it seems the editor will actually remove any tags, attributes and attribute values it doesn't recognize. This includes the id part of <img id="img1" data=... />.
It's unfortunate, as I was hoping to be able to insert tags into the XML, like "<field name="field1"/>", to be replaced with text from a database.
Regarding the original problem, you could use the "title" attribute of the <img/> tag to specify a unique name. This attribute sets the tooltip associated with an image, and is recognized by the editor, so it doesn't get removed. It's not ideal, but there it is.
There's no built-in way. But like I said, I'm pretty sure that any unrecognized tags in the XML will just be ignored by the control. So I think you could probably insert identifiers into the xml if you wanted to.
BTW, it's also possible to extract the image from the XML if that would help. There are methods to convert the image into encoded text and vice versa. I assume you must already be using the method to convert the image to a string.
Yes, thats right. I save the value (formatted text string) of UltraFormattedTextEditor to database ( together with <img/>) but because it doest assign any unique id to the image tags i cant identify them later when sending an email and embedding images. Well if there is no way to assign an unique identifier in <img> tags i have to drop this solution and look for other control to implement this feature. Thank you for your help