Welcome Guest. Please Login or Register  


You are here: Index > Webuzo > Suggestions > Topic : TAB in editor



Threaded Mode | Print  

 TAB in editor, Allow TAB key in any place with an editor (3 Replies, Read 13633 times)
erile
Group: Member
Post Group: Working Newbie
Posts: 64
Status:
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...
IP: --   

TAB in editor
Dhanya
Group: Member
Post Group: Working Member
Posts: 200
Status:
Hi,

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

Let us know if you have any more suggestions.
IP: --   

TAB in editor
erile
Group: Member
Post Group: Working Newbie
Posts: 64
Status:
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...
IP: --   

TAB in editor
Dhanya
Group: Member
Post Group: Working Member
Posts: 200
Status:
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.
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is March 19, 2024, 2:58 am.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.022