Skip to content
#

playground

Here are 1,905 public repositories matching this topic...

sandpack
danilowoz
danilowoz commented Feb 8, 2022

Create a piece of documentation explaining how to get the CodeMirror instance and what is the benefits, example:

const editorRef = useRef<CodeEditorRef>(null);

  useEffect(() => {
    const editorElement = editorRef.current?.getCodemirror();
    if (!editorElement) return;

    if (animationComplete && !editorElement.hasFocus) {
      editorElement.focus();

      const newState
react-view
sachdeva-shrey
sachdeva-shrey commented Mar 16, 2021

Is your feature request related to a problem? Please Describe.
I have a use-case where I wanted to disable the editing in the Editor component but currently this is not supported.

Describe the solution you'd like
A prop named enabled or something similar, that can be used to change the state of the Editor.

Improve this page

Add a description, image, and links to the playground topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the playground topic, visit your repo's landing page and select "manage topics."

Learn more