Gossamer Forum
Home : Products : Others : Fileman :

how can I use tabs in source editor??

Quote Reply
how can I use tabs in source editor??
I'm just wondering how to use tabs in the HTML source editor? I know this is a html problem in general, butthere's got to be a way short of cutting and pasting tabs =)

any ideaS?

thanks,

graeme
Quote Reply
Re: [boomertsfx] how can I use tabs in source editor?? In reply to
Unfortunately, Fileman does not allow to use tabs while editing in HTML editor.

B.
Quote Reply
Re: [TheStone] how can I use tabs in source editor?? In reply to
I figured out how to make tabs work (!) (with javascript) and I edited the file_editor.html template and it seems to be working well!

<script>
function inserttab (text) {
var curpos;
text.focus();
curpos = document.selection.createRange();
curpos.text = '\t';
}
</script>

and here is the event I used for the textarea:

onKeyDown="if(event.keyCode==9){inserttab(content); return false} else return true"

maybe this can be implemented as an option... I know that I always use tabs to indent my html, and it's frestrating not having tabs avail in text forms.
Quote Reply
Re: [boomertsfx] how can I use tabs in source editor?? In reply to
Thanks for the feedback, it could be added in HTML source editor.

TheStone.

B.