# Power Table - Text Area Editor for newline support

**URL:** <https://forum.inductiveautomation.com/t/power-table-text-area-editor-for-newline-support/17018>\
**Category:** Ignition\
**Tags:** ignition79, scripting\
**Created:** [February 16, 2018, 3:15pm UTC](https://forum.inductiveautomation.com/t/power-table-text-area-editor-for-newline-support/17018 "2018-02-16T15:15:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bfuson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bfuson/32/4597_2.png) [@bfuson](https://forum.inductiveautomation.com/u/bfuson)\
**Post date:** [February 16, 2018, 3:15pm UTC](https://forum.inductiveautomation.com/t/power-table-text-area-editor-for-newline-support/17018/1 "2018-02-16T15:15:58Z")

</div>

I have a Power Table that’s bound to a database table to enable simple editing of string ‘templates’.  
The strings in the table need to retain their newline characters, but when a user edits the Power Table cell, the newlines are stripped and the string becomes a single line.

I believe this is because the editor of the PT is an instance of DefaultCellEditor with a JTextField editor component, which only supports editing single text lines. The other components that DefaultCellEditor supports are the JComboBox and JCheckBox.

I think I either need to implement the TableCellEditor interface, or somehow extend DefaultCellEditor, but am unsure how to accomplish this, especially within the configureEditor PT extension function.

Any advice?
