# Issues with TextEditor

**URL:** <https://forum.juce.com/t/issues-with-texteditor/4742>\
**Category:** General JUCE discussion\
**Created:** [January 19, 2010, 1:02am UTC](https://forum.juce.com/t/issues-with-texteditor/4742 "2010-01-19T01:02:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![RolandMR](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/rolandmr/32/641_2.png) [@RolandMR](https://forum.juce.com/u/RolandMR)\
**Post date:** [January 19, 2010, 1:02am UTC](https://forum.juce.com/t/issues-with-texteditor/4742/1 "2010-01-19T01:02:30Z")

</div>

I’m using a TextEditor as a logging output window. Not really what a TextEditor is meant for, but there is no better control. The problem is the control doesn’t have focus so the timer never starts a new transaction. insertTextAtCursor() adds to the current transaction until the process runs out of memory and crashes.

Really, it would be best if you could just disabled undo, as I don’t want the user to be able to undo anyway.

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [January 19, 2010, 9:59am UTC](https://forum.juce.com/t/issues-with-texteditor/4742/2 "2010-01-19T09:59:12Z")

</div>

Interesting point - I didn’t really design it to cope with being heavily used when not focused. Ok, I’ll figure out a way to make that safer, thanks!
