You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
how to use monaco-editor or @monaco-editor/react in plasmo?
Is there any context that might help us understand?
I found this example is not work.
importReactfrom'react';importEditorfrom'@monaco-editor/react';import{loader}from'@monaco-editor/react';loader.config({paths: {vs: '../vs'}});functionApp(){functionhandleEditorChange(value,event){// here is the current value}functionhandleEditorDidMount(editor,monaco){console.log('onMount: the editor instance:',editor);console.log('onMount: the monaco instance:',monaco);}functionhandleEditorWillMount(monaco){console.log('beforeMount: the monaco instance:',monaco);}functionhandleEditorValidation(markers){// model markers// markers.forEach(marker => console.log('onValidate:', marker.message));}return(<Editorheight="90vh"defaultLanguage="javascript"defaultValue="// some comment"onChange={handleEditorChange}onMount={handleEditorDidMount}beforeMount={handleEditorWillMount}onValidate={handleEditorValidation}/>);}exportdefaultApp;
What is the example you wish to see?
how to use monaco-editor or @monaco-editor/react in plasmo?
Is there any context that might help us understand?
I found this example is not work.
Code of Conduct
The text was updated successfully, but these errors were encountered: