Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemathinc
GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/packages/frontend/editors/register-all.ts
5837 views
1
/*
2
* This file is part of CoCalc: Copyright © 2020 Sagemath, Inc.
3
* License: MS-RSL – see LICENSE.md for details
4
*/
5
6
/*
7
Register all the editors.
8
9
One you add a new built in editor, it should go here.
10
*/
11
12
// Import each module, which loads a file editor. These call register_file_editor.
13
// This should be a comprehensive list of all React editors
14
15
import "./archive/actions";
16
import "./stopwatch/register";
17
import "./media-viewer/register";
18
19
// Raw data editors
20
import "./data-editor/generic";
21
22
// All the frame-tree editors
23
import "../frame-editors/register";
24
25
// Unknown files
26
import "./unknown/register";
27
28
// All the non-react editors.
29
const { register_nonreact_editors } = require("../editor");
30
register_nonreact_editors();
31
32
// Ensure that we load all the codemirror plugins, modes, etc.
33
import "@cocalc/frontend/codemirror/init";
34
35
// CSS for the lightweight (< 1MB) nextjs friendly CodeEditor
36
// component (in components/code-editor).
37
// This is only for making this editor work in this frontend app.
38
// This dist.css is only 7K.
39
import "@uiw/react-textarea-code-editor/dist.css";
40
41