Softaculous


Topic : TAB in editor


Posted By: erile on July 31, 2019, 11:33 am
It would be nice to allow to input <TAB> character in the Webuzo editor. Currently, if I want to enter a new line and keep the same layout with left indent in some conf files, I have to copy/paste to an external editor supporting tabulation, then copy/paste back in the Webuzo window.

-----------------------
OpenVZ VPS, CentOS 7, Webuzo Premium / Desktop and full-stack dev w/ C, C++, Python, Perl, javascript...

Posted By: Dhanya on July 31, 2019, 1:12 pm | Post: 1
Hi,

Thank you for your suggestion. We will check this and if possible add.

Let us know if you have any more suggestions.

Posted By: erile on August 1, 2019, 6:28 am | Post: 2
Cool ;) Something like this should do the job:

Code
<textarea onkeydown="if(event.keyCode===9){var v=this.value,s=this.selectionStart,e=this.selectionEnd;this.value=v.substring(0, s)+'\t'+v.substring(e);this.selectionStart=this.selectionEnd=s+1;return false;}"></textarea>

Have a good day


-----------------------
OpenVZ VPS, CentOS 7, Webuzo Premium / Desktop and full-stack dev w/ C, C++, Python, Perl, javascript...

Posted By: Dhanya on August 1, 2019, 7:40 am | Post: 3
Hi,

Thank you for providing us with the code.

We will test this and add if possible.

Let us know if you have any more suggestions.

Powered By AEF 1.0.8 © 2007-2008 Electron Inc.