mirror of
https://github.com/jupyter/notebook.git
synced 2025-03-13 13:17:50 +08:00
Rename texteditor files & folders to edit
This commit is contained in:
parent
6070f84c8d
commit
011beaa385
@ -17,7 +17,7 @@ class EditorHandler(IPythonHandler):
|
||||
raise web.HTTPError(404, u'File does not exist: %s' % path)
|
||||
|
||||
basename = path.rsplit('/', 1)[-1]
|
||||
self.write(self.render_template('texteditor.html',
|
||||
self.write(self.render_template('edit.html',
|
||||
file_path=url_escape(path),
|
||||
basename=basename,
|
||||
page_title=basename + " (editing)",
|
@ -199,7 +199,7 @@ class NotebookWebApplication(web.Application):
|
||||
handlers.extend(load_handlers('notebook.handlers'))
|
||||
handlers.extend(load_handlers('nbconvert.handlers'))
|
||||
handlers.extend(load_handlers('kernelspecs.handlers'))
|
||||
handlers.extend(load_handlers('texteditor.handlers'))
|
||||
handlers.extend(load_handlers('edit.handlers'))
|
||||
handlers.extend(load_handlers('services.config.handlers'))
|
||||
handlers.extend(load_handlers('services.kernels.handlers'))
|
||||
handlers.extend(load_handlers('services.contents.handlers'))
|
||||
|
@ -7,9 +7,9 @@ require([
|
||||
'base/js/page',
|
||||
'base/js/events',
|
||||
'contents',
|
||||
'texteditor/js/editor',
|
||||
'texteditor/js/menubar',
|
||||
'texteditor/js/notificationarea',
|
||||
'edit/js/editor',
|
||||
'edit/js/menubar',
|
||||
'edit/js/notificationarea',
|
||||
'custom/custom',
|
||||
], function(
|
||||
IPython,
|
@ -68,5 +68,5 @@ data-file-path="{{file_path}}"
|
||||
|
||||
{{super()}}
|
||||
|
||||
<script src="{{ static_url("texteditor/js/main.js") }}" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="{{ static_url("edit/js/main.js") }}" type="text/javascript" charset="utf-8"></script>
|
||||
{% endblock %}
|
Loading…
x
Reference in New Issue
Block a user