Jonathan Frederic
efe654e59d
Use longer version of document.ready
11 years ago
Jonathan Frederic
6b9558c613
Be a little more clear about sizing logic.
11 years ago
Jonathan Frederic
bdd40e2734
Explicitly size codemirror editor in Edit app
11 years ago
Min RK
4335486bdc
Merge pull request #7263 from takluyver/nb-common-config
...
Add common config section for frontend config
11 years ago
Scott Sanderson
cbb196bb94
DOC: Add comment.
11 years ago
Scott Sanderson
782ac56768
BUG: Fix broken codemirror highlighting on file rename.
...
When a users uses the rename dialog in the text editor, we call
_set_mode_for_model on the returned model. The expected model to be
returned from rename has no value for mimetype, which causes us to pass
`undefined` to `CodeMirror.findModeByMIME`, which returns `undefined`
back. We then try access an attribute of the (undefined) return value,
causing an error.
This now properly checks whether the `mimetype` attribute is set on the
input model.
11 years ago
Thomas Kluyver
0c3c3b3c79
Fix instantiating config in editor and terminal
11 years ago
Thomas Kluyver
01331514bd
Load common_config, and load extensions specified therein
11 years ago
Min RK
b11fe93abb
add utils.time
...
consolidate some time-related utils, used in save widgets
11 years ago
Min RK
6c4f8de34a
wrap lines by default
...
because long lines are not handled well
11 years ago
Min RK
1e5bd77bda
s/mode/language/
...
for user-facing CodeMirror mode (hover text, language menu)
11 years ago
Min RK
c81609f5d6
redirect /edit/ to /files/ if not (utf8) text
11 years ago
Min RK
85fb8e1085
use $.map for setting cm options
11 years ago
Min RK
7ede5e291f
update mode on rename
11 years ago
Min RK
03779746ab
Toggle line numbers in menu
...
use 'Toggle' text, instead of switching between Show/Hide
11 years ago
Min RK
0b8920193f
add Mode menu to editor
11 years ago
Min RK
0cc0dead5d
add File/Rename
11 years ago
Min RK
d6282035fa
add save widget to text editor
11 years ago
Min RK
928c81df9d
setting an option to null sets the default in CodeMirror
...
matching the unset behavior in config
11 years ago
Min RK
c8a1f06179
fixup keyMap
11 years ago
Min RK
54324633ca
fixup
11 years ago
Min RK
0c42d3659e
add File/New in editor
11 years ago
Min RK
85b6b280b2
allow selecting codemirror keymap in menu
11 years ago
Min RK
776c9a0316
track dirty state in editor for onbeforeunload
11 years ago
Min RK
0efd335553
editor progress
...
- load/store codemirror config
- fill out menus a bit:
- Edit/find,replace
- View/toggle line numbers
11 years ago
Nicholas Bollweg (Nick)
c72ad2754c
more fidgeting before starting over
11 years ago
Jonathan Frederic
b53386b37b
Ran function comment conversion tool
11 years ago
Scott Sanderson
6a8dfa492e
BUG: Prevent users from undoing the initial document load with CTRL-Z.
...
Prior to this change, setting a document's initial content in the text
editor created a history entry, which meant that hitting CTRL-Z
repeatedly could clear the entire document. This change clears document
history after loading so that repeated CTRL-Z applications return the
document to its state at load time.
11 years ago
Thomas Kluyver
a5e065328b
Extensions config for text editor
11 years ago
Thomas Kluyver
011beaa385
Rename texteditor files & folders to edit
11 years ago