Brian E. Granger
bfdbdd456c
Merge pull request #5391 from jdfreder/netscape-keyboard
...
Fix Gecko (Netscape) keyboard handling
12 years ago
Jonathan Frederic
a08fbff5d9
Fix Gecko (Netscape) keyboard handling
12 years ago
Paul Ivanov
61b47695e4
renamed 'use_shortcut' method to 'handles'
12 years ago
MinRK
abe2dce926
back to dev
12 years ago
Paul Ivanov
2c9ff376a2
added new use_shortcut method to shortcuts
...
this way, you can ask if a particular event will be handled by the
shortcuts system. This takes away the need to special-case many
different possible keys which should be ignored by codemirror by
ignoring them en masse.
12 years ago
MinRK
3face719e8
setup jsversion
12 years ago
MinRK
9396619f9d
security.js docstrings
12 years ago
MinRK
e7f3c05d28
remove unused get_attr_names
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
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
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
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
fa3f998295
Adding security.js with 1st attempt at is_safe.
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
a7fb5e1e55
Merge pull request #5114 from minrk/empty-button
...
use non-breaking space for button with no description
12 years ago
Thomas Kluyver
d6986cf4ec
Merge pull request #4778 from minrk/install-nbextensions
...
add APIs for installing notebook extensions
12 years ago
MinRK
9c452998ea
add utils.escape_html
12 years ago
MinRK
8264362179
document utils.parse_url
12 years ago
MinRK
24e59106c0
add utils.parse_url
...
strip repeated '//' in url_path_join
12 years ago
MinRK
a93040e810
s/get_data/get_body_data/
12 years ago
MinRK
beaa75b416
add utils.get_data
...
for extracting *decoded* items from $('body').data
12 years ago
MinRK
f3f1695b06
add IPython.load_extensions in js
12 years ago
Brian E. Granger
5137961bf2
Protect against navigator undefined in platform.
12 years ago
Brian E. Granger
0af185787a
Added platform dep. logic.
12 years ago
MinRK
c7a3676804
allow utils.js to be loaded in node
...
where navigator is undefined
12 years ago
Brian E. Granger
06aa0d540d
Using a more specific approach for managing CM focus.
...
I used to try and enter command mode when a cell looses focus. The
problem with that is that focusing an output area would remain in
edit mode.
Now, I bind this logic to the code mirror blur event, so that
focusing the output area enters command mode.
12 years ago
Brian E. Granger
b865c98567
Removing KBN null mode and replacing with enable/disable.
12 years ago
Brian E. Granger
caffba142e
Adding keyboard manager logic.
...
This is currently very broken.
12 years ago
MinRK
1869e1a1a3
add utils.url_join_encode
...
like url_path_join, but escapes url components
12 years ago
MinRK
71d6a80629
add `setup.py jsversion`
...
for writing the IPython version to `IPython.version` in javascript.
supersedes #4357
12 years ago
Min RK
0aaafce4af
Merge pull request #4195 from minrk/widget-msg
...
IPEP 21: widget messages
12 years ago
Paul Ivanov
19a20a3c70
add Ctrl-M keyboard shortcut
12 years ago
Paul Ivanov
65810a49e4
utility functions + tests for shift- & ctrl-enter
12 years ago
Paul Ivanov
c68eaca621
added a shorthand way to trigger keyboard events
...
as suggested by @ellisonbg in #4285
12 years ago
MinRK
5c83cd3e52
move comm.js to kernel service
12 years ago
MinRK
04adce96af
add message metadata to comm and kernel.send_shell_message
12 years ago
MinRK
99680e21bd
move comm.js to base
12 years ago
MinRK
9206d1e87f
add utils.always_new
...
wrapper allows passing constructors as callbacks, where `new` is required.
12 years ago
MinRK
11013e648d
add utils.splitext to js
...
mimic Python os.path.splitext
12 years ago
MinRK
5593526108
don't let empty strings introduce extra slashes in url_path_join
12 years ago
MinRK
40f577b538
add utils.url_path_join
...
javascript equivalent of Python-side function.
12 years ago