|
CodePress bug - no tab insertion/indention!
|
|
08-03-2008, 03:05 PM
(This post was last modified: 08-03-2008 03:42 PM by Asad_Niazi.)
Post: #1
|
|||
|
|||
|
CodePress bug - no tab insertion/indention!
It's a major headache working with templates in the adminCP without the ability to insert tab character. I have solved the issue and also added the possibility of code indention for FireFox 3.
Find in admin/jscripts/codepress/engines/gecko.js: Code: for (var i=0; i<snippets.length; i++) {Replace with: Code: // modified to insert tab on FFThis will allow you to:
If you simply want the option #2, use the following code instead: (It's a bug that I decided to fix, so MyBB should add this code at least) Code: var range = window.getSelection().getRangeAt(0);Enjoy better editing in FF3
Linux Server overloading explained Move MySQL to a second drive |
|||
|
08-03-2008, 03:40 PM
Post: #2
|
|||
|
|||
|
RE: CodePress bug - no tab insertion/indention!
Thank you Asad, I´ll watch for this carefully tomorow.
I´m using FF3 too []s, Claudio Tutorial: Jquery (by google API) with mybb (Prototype) Distinction between Paid/Free Plugins Threads |
|||
|
08-03-2008, 03:42 PM
Post: #3
|
|||
|
|||
|
RE: CodePress bug - no tab insertion/indention!
This could be nice. Noticing at the codepress site this is not a feature yet. But rather a planned feature.
Are you an avatar movie fan? |
|||
|
08-03-2008, 03:56 PM
Post: #4
|
|||
|
|||
|
RE: CodePress bug - no tab insertion/indention!
Is this actually a "bug" or a feature suggestion?
|
|||
|
08-03-2008, 03:57 PM
Post: #5
|
|||
|
|||
|
RE: CodePress bug - no tab insertion/indention!
As mentioned in the #2, it's actually a bug.
If you press TAB key on IE7, a tab character is insert (spacing) but the same isn't true for FF3. So the #2 fixes the bug, but #1 is a new feature only for FF3 (indent code over multiple lines). Linux Server overloading explained Move MySQL to a second drive |
|||
|
08-03-2008, 03:59 PM
Post: #6
|
|||
|
|||
|
RE: CodePress bug - no tab insertion/indention!
Hmm... I think the actual answer was this isn't a bug. It's a feature suggestion, moving...
|
|||
|
08-03-2008, 04:02 PM
Post: #7
|
|||
|
|||
|
RE: CodePress bug - no tab insertion/indention!
Yeah but part of it is a bug. It's a bug because it behaves differently than it's supposed to. If you press a tab key, it's supposed to add a tab character as it does in IE or older versions of FireFox, but doesn't do it in FF3.
Yeah, rest of it is an enhancement/feature. Linux Server overloading explained Move MySQL to a second drive |
|||
|
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)
Search
Member List
Calendar
Help






