I have an UltraTextEditor and if I paste a reasonably large amount of text into it all the text seems to disappear. I have reproduced the problem in a few of the samples (e.g. "Editor Buttons").
Is this a known issue? should I submit it as a bug?
Note: It seems like the text stops being rendered as can copy and paste into notepad fine
I think the limit is 65536 characters, which is Int16.MaxValue. I reported a related issue to Microsoft here:
Visual Studio crashes if you mouse over a text Property with more than 65535 characters. | Microsoft Connect
Same happens with TextBox control. In this case there was a sensible maxlength, so I've set that which avoids the problem. Odd that I can't seem to find anything on the wider internet about this TextBox bug, but never mind!
Hi,
How many characters are we talking about here? I'm pretty sure that this has come up before and it turned out to be a limitation in the inbox TextBox control, which is what the UltraTextEditor uses for editing.
Try copying the same text into a TextBox control and see if that works.
If it does work in the TextBox and not in UltraTextEditor, then it may be an UltraTextEditor bug.
If the TextBox fails the same way, then you might want to consider using the FormattedTextEditor control, which does not rely on the TextBox and so should not have the same limitation.