-
-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Editable prop not working #661
Comments
I have the same issue. |
The only way i was able to make it work was to do something like this: helper.ts
and then I import that object into my file and in the
|
Very Creative Workaround !! :) Another work around that was able to make to implement the Editable = false functionality was to do add a cusotm CSS class to the whole div surrounding the code editor.
This prevented me from making changes but ruined the UX a bit as user is not able to select/copy the code on their own and also the pointer does not change when you hover over it |
Nice idea. The keymap way above still allows me to select/copy etc. so maybe that will solve your current problem instead of using the |
@ianizaguirre @prem-banker I can't reproduce the error. react-codemirror/core/src/getDefaultExtensions.ts Lines 57 to 62 in e94e34c
The tests are valid and there are no issues. |
I have the same issue (using v4.23.5 version) :( |
@nicolasmuller I didn’t encounter any issues during my testing. Could you provide a reproducible example of the error? I’ll try to help troubleshoot the problem. |
Hi,
I am using React Codemirror in my next app with tailwind. For some reason, the editable prop (and read only) are not working for me. I am still able to edit the code in the editor. I checked CSS attributes and the
contenteditable
flag is also changing to false (which is how it seems to be working on the demo home page). Can you help me understand why this might be ?using new version BTW
"@uiw/react-codemirror": "^4.22.2",
The text was updated successfully, but these errors were encountered: