Pranomvignesh / constrained-editor-plugin

This project is to restrict the editable area in the monaco-editor
https://constrained-editor-plugin.vercel.app/
MIT License
99 stars 11 forks source link

Is there an implementation available for React? #24

Closed NicolaLovo closed 1 year ago

NicolaLovo commented 1 year ago

I am using Monaco editor react to use the monaco editor in my react project. I am intrested into adding freezed ranges(non-editable ranges) in my editor and I have found your plugin, however I am not able to use it in a React component. Is there a way to do that, or maybe there is another similar package?

Pranomvignesh commented 1 year ago

Hi @NicolaLovo I have updated the readme of this repository

You can find the sample code for monaco-editor/react here

You can also refer similar duplicate closed issues for monaco editor react here

Pranomvignesh commented 1 year ago

@NicolaLovo, I request you to close this issue once you are satisfied with your answer

NicolaLovo commented 1 year ago

@Pranomvignesh Thank you for the answer, sorry for having missed out that part of the documentation.