The default behavior of the UltraFormattedTextEditor setting the text-align style is not working as expected. Another user brought this up here: http://forums.infragistics.com/forums/p/8292/33024.aspx#33024 where Matt (IG?) suggested it works the same as Word, then sort of backed off of that when he found that you can text-align individual blocks of text rather than the entire document. Rather than dredge up that 4 year old post, I'm posting my concerns here.
This is most curious behavior of the control because the bold, italic, underline, back color, and font color all work on selected text so it not like the ability to do this is out of your reach. Also, as you can see:
It
Works
Here
This is an Infragistics control I'm typing in, isn't it??? The WinForms control should work the same as the Web control and wrap the paragraphs in <p></p> instead of </br>. Then it would work the same, and behave like expected.
Boris,
Sorry for the delay in responding, I didn't get an email notification when you posted the example code.
In your example, I am assuming that you typed the <p> tags and text-align styles directly in the code, correct? If so, yes, that does work. The problem is that I want the end user, who does not know how to code HTML, to be able to set the align via a toolbar that I implement. Since the Enter key is inserting <br/> instead of <p> using the EditInfo.ApplyStyle() in code applies the style to the entire text box and not just the current block. The problem is not the text-align style, it is the lack of <p> for blocks of code.
Hello,
I am checking about the progress of this issue. Please let me know If you need any further assistance on this.
Could you please review the sample attached to this post and see if it meets your requirements.Please feel free to let me know if I misunderstood you or if you have any other questions.