Paul Ivanov
71d4c427c9
refactor to improve cell switching in edit mode
...
This code was repeated in both CodeCell and TextCell, both of which are
extensions of Cell, so this just unifies the logic in Cell.
TextCell had logic here to check if the cell was rendered or not, but I
don't believe it is possible to end up triggering such a code path.
(Should that be required, I can always just add back these methods to
TextCell, performing the .rendered==True check, and calling the Cell
prior to this, code mirror at_top would only return true on if the
cursor was at the first character of the top line. Now, pressing up
arrow on any character on the top line will take you to the cell above.
The same applies for the bottom line. Pressing down arrow would only go
to the next cell if the cursor was at a location *after* the last
character (something that is only possible to achieve in vim mode if the
last line is empty, for example). Now, down arrow on any character of
the last line will go to the next cell.
12 years ago
Paul Ivanov
8889a7581c
start better keyboard handling
12 years ago
Brian E. Granger
1407b4347e
Merge pull request #5268 from ellisonbg/cmd-mode
...
Refactoring Notebook.command_mode
12 years ago
MinRK
7d87978a66
fix a typo introduced by a rebased PR
...
caused heading cells to appear in both rendered and unrendered state
12 years ago
Jonathan Frederic
de9b5b907e
Fab CSS
12 years ago
juhasch
72864cc83c
append Firefox overflow-x fix
12 years ago
MinRK
54e1558c16
make trust notebook dialog a single paragraph
12 years ago
MinRK
8cd744db85
mention that Trust triggers reload
12 years ago
MinRK
9396619f9d
security.js docstrings
12 years ago
Brian E. Granger
4e0a2ee476
Make sure we are in command mode before we select a new cell.
12 years ago
MinRK
d5b0026cf1
trust via mark cells and save, rather than trust API request
12 years ago
MinRK
e7f3c05d28
remove unused get_attr_names
12 years ago
MinRK
6792d38215
log excluded untrusted output
12 years ago
MinRK
aaefc5f296
remove warning for stripped output
12 years ago
MinRK
b5c8a51331
disable trust notebook menu item on trusted notebooks
12 years ago
MinRK
1ae689f30c
Add Trust Notebook to File menu
12 years ago
MinRK
46665483ed
remove struct-returning sanitize
...
only keep str-str sanitization
12 years ago
MinRK
d4780c2cfc
remove security.is_safe
12 years ago
MinRK
d59e44a190
default to allow_css = false
12 years ago
MinRK
4d35660f3c
sanitize CSS
...
rather than removing it entirely
12 years ago
MinRK
5f7f1c51ec
remove unused security warning
12 years ago
MinRK
c49f04545a
don't use `result.safe` to communicate incomplete information
12 years ago
MinRK
028ce17c62
fix tagName comparison
12 years ago
MinRK
3897b1c39f
don't populate sanitized.safe by default
...
since it's potentially expensive.
walk nodes in is_safe
12 years ago
MinRK
6384502e47
sanitize untrusted HTML output
...
rather than checking is_safe
12 years ago
MinRK
3d0957c7bc
trust latex
...
If mathjax is insecure, we have big problems.
And we already trust mathjax in markdown cells,
so this is consistent.
12 years ago
MinRK
367b4f85c2
wrap caja.sanitizeAttribs to trust data-* attributes
12 years ago
MinRK
eec5d427a4
add cmp_tree, in case caja log can't be trusted
...
(spoiler: it can't)
12 years ago
MinRK
890c0be1dd
always sanitize markdown
...
don't check if it's safe or not
12 years ago
MinRK
2a0451fdde
use google-caja for sanitization
12 years ago
Brian E. Granger
07cdb1e195
Adding first round of security tests of is_safe.
12 years ago
Brian E. Granger
3b262912a1
Display safe HTML+SVG even if untrusted, but don't set trusted=1.
12 years ago
Brian E. Granger
31c9e08fa8
Don't render insecure Markdown and show warning.
12 years ago
Brian E. Granger
fa3f998295
Adding security.js with 1st attempt at is_safe.
12 years ago
Brian E. Granger
6f4263dc74
Removing conditionals that are not needed.
12 years ago
Brian E. Granger
e374ca5ebb
Refactoring Notebook.command_mode.
12 years ago
Brian E. Granger
92967c0baf
Addressing things in completer.js.
12 years ago
Brian E. Granger
af7dd15181
Removing old keyboard handling from IPython.utils.
12 years ago
Brian E. Granger
ec6ea72873
Adding utility functions.
12 years ago
Brian E. Granger
ff1492f8c9
Creating new base/js/keyboard.js
12 years ago
Jonathan Frederic
ede116bee7
Get cell after first conditional
12 years ago
Jonathan Frederic
479bc6b37a
Check down too.
12 years ago
Jonathan Frederic
bebe51c158
Don't allow edit mode up arrow to continue past index == 0
12 years ago
Brian E. Granger
8c5b32c987
Merge pull request #5223 from minrk/tiny-images
...
use on-load event to trigger resizable images
12 years ago
MinRK
15fac2c1d6
make input_area css generic to cells
...
removes otherwise-identical text_cell_input class in text cells
12 years ago
MinRK
983271a36f
use on-load event to trigger resizable images
...
instead of timeout, which could get incorrect size information.
closes #5219
12 years ago
Brian E. Granger
88460cd212
Merge pull request #5175 from jdfreder/html-take2
...
Audit .html() calls take #2
12 years ago
Brian E. Granger
88fc1a0737
Merge pull request #5146 from jdfreder/modal-fix
...
Dual mode bug fixes.
12 years ago
Jonathan Frederic
39d39d0ea6
s/trigger_edit_mode/edit_mode
12 years ago
Jonathan Frederic
c41fe67da2
Re-added removed refresh
12 years ago