SCEditor icon indicating copy to clipboard operation
SCEditor copied to clipboard

Feature request: TAB creates tab jump (and stays in SCeditor)

Open q2apro opened this issue 7 years ago • 3 comments

Since we use SCeditor more and more for coding I would like to have an option to have TAB keys creating 4 spaces. Instead of loosing the focus.

Similar to this (see demo field and hit TAB key): http://jakiestfu.github.io/Behave.js/

Can we implement this?

PS: SCeditor/XHTML

q2apro avatar Feb 20 '18 07:02 q2apro

~~Tabs are captured when inside code BBCode tags and same inside HTML code (last I checked).~~ Sounds like a regression to me, unless I'm remembering it wrong. I do remember it working but it may be because I worked with this and phpBB's code at the same time.

Edit: http://www.try-phpbb.com/32x/posting.php?mode=post&f=2 OK, it was phpBB's code. My bad.

brunoais avatar Feb 20 '18 10:02 brunoais

@samclarke If you want to do this, check this code: https://github.com/phpbb/phpbb/blob/release-3.2.2/phpBB/assets/javascript/core.js#L1145

brunoais avatar Feb 20 '18 10:02 brunoais

I am looking for this feature too; I have been unable to create a workaround.

Melonking906 avatar Dec 11 '24 15:12 Melonking906