0.2.7 • Published 16 days ago

@lingxiteam/monaco-editor v0.2.7

Weekly downloads
-
License
-
Repository
github
Last release
16 days ago

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}
    />
  );

在线效果图

0.2.7

16 days ago

0.2.6

1 month ago

0.2.5

1 month ago

0.2.4

1 month ago

0.2.1

1 month ago

0.2.3

1 month ago

0.2.2

1 month ago

0.2.0

1 month ago

0.1.8

2 months ago

0.1.7

2 months ago

0.1.6

4 months ago

0.1.5

4 months ago

0.1.4

4 months ago

0.1.3

4 months ago

0.1.2

4 months ago

0.1.1

4 months ago

0.1.0

4 months ago

0.0.4

4 months ago

0.0.3

5 months ago

0.0.2

5 months ago

0.0.1

5 months ago