@lingxiteam/monaco-editor
TypeScript icon, indicating that this package has built-in type declarations

0.3.0-alpha.10 • Public • Published

editorview

js 编辑器,可以对代码进行提示、babel 编译

Getting Started

npm i editorview

import EditorView, { EditorImperativeHandleHandle } from 'editorview/es/EditorView';

  const editRef = useRef<EditorImperativeHandleHandle>();

  // 获取值 默认获取es6 -> es5代码
  editRef.current?.getValue();

  return (
    <EditorView
      forwardRef={editRef}
      onError={(err) => {
        console.log(err); // 代码转化失败时回调
      }}
      defaultValue={defaultEditorText}
      className={styles.editor}
    />
  );

Readme

Keywords

none

Package Sidebar

Install

npm i @lingxiteam/monaco-editor

Weekly Downloads

142

Version

0.3.0-alpha.10

License

none

Unpacked Size

2.03 MB

Total Files

298

Last publish

Collaborators

  • mishi-brother
  • babelczx
  • yaozanwen
  • duan_duan
  • wanerrr
  • goulili
  • diyc
  • cenxiaolian
  • taiyangteng
  • pengyh
  • xiaohuoni
  • wujian666
  • limanpm
  • zhang.guoyong
  • zzzzjq
  • hammersjs