Path: blob/master/src/packages/frontend/editors/register-all.ts
5837 views
/*1* This file is part of CoCalc: Copyright © 2020 Sagemath, Inc.2* License: MS-RSL – see LICENSE.md for details3*/45/*6Register all the editors.78One you add a new built in editor, it should go here.9*/1011// Import each module, which loads a file editor. These call register_file_editor.12// This should be a comprehensive list of all React editors1314import "./archive/actions";15import "./stopwatch/register";16import "./media-viewer/register";1718// Raw data editors19import "./data-editor/generic";2021// All the frame-tree editors22import "../frame-editors/register";2324// Unknown files25import "./unknown/register";2627// All the non-react editors.28const { register_nonreact_editors } = require("../editor");29register_nonreact_editors();3031// Ensure that we load all the codemirror plugins, modes, etc.32import "@cocalc/frontend/codemirror/init";3334// CSS for the lightweight (< 1MB) nextjs friendly CodeEditor35// component (in components/code-editor).36// This is only for making this editor work in this frontend app.37// This dist.css is only 7K.38import "@uiw/react-textarea-code-editor/dist.css";394041