Thomas Kluyver
faf648d259
Merge pull request #7756 from Carreau/common_conf
...
pass common config to contents manager
11 years ago
Matthias Bussonnier
8567deaa6f
Pass common_config to content manager.
11 years ago
Min RK
124874f115
Merge pull request #7610 from Carreau/_blank
...
make some target _blank configurable
11 years ago
Min RK
cdb5deef9a
use IPython._target in window.open
11 years ago
Min RK
23fad40f6d
add download link to editor
11 years ago
Bussonnier Matthias
4513aae2b9
[editor] mark unsaved changes
...
Put indicator before time, change title.
And cleanup implementation.
11 years ago
Min RK
1eddad8a63
Merge pull request #7578 from Carreau/moreerrors
...
Catch and/or log a bit more errors.
11 years ago
Thomas Kluyver
708088d74a
Merge pull request #7586 from Carreau/notif-editor
...
re-hook notification area for editor.
11 years ago
Min RK
b5ba6caf72
fix CodeMirror div measurement on edit page
...
was measuring the wrong elements,
causing the CM div to not fit on the page,
resulting in multiple scrollbars.
11 years ago
Bussonnier Matthias
8bc4bbab68
remove "Saving..." notification
11 years ago
Bussonnier Matthias
0118cfbd48
re-hook notification area for editor.
...
- re-order element to be the same as in notebook,
- rename events correctly.
- Add event on savign to show that save is in progress, that get
dismissed on file save
Closes #7569
11 years ago
Bussonnier Matthias
ab8290ae95
Catch and/or log a bit more errors.
11 years ago
Min RK
f499104d75
don't use flexbox to size `#site`
...
The approach in #7517 didn't work on Safari
(as in the entire page was invisible).
This is the same mechanism used to size the CodeMirror div on the edit page, and should work more reliably.
11 years ago
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
Jonathan Frederic
2c714357c4
Review comments
11 years ago
Jonathan Frederic
096b1638bf
Remove padding on editor
11 years ago
Jonathan Frederic
cda53215ba
Improve edit app
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
9a504dd7c3
basic LESS for editor
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