Skip to content
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

Ability to disable Ace editor box #406

Closed
dimroc opened this issue Aug 31, 2011 · 6 comments
Closed

Ability to disable Ace editor box #406

dimroc opened this issue Aug 31, 2011 · 6 comments

Comments

@dimroc
Copy link

dimroc commented Aug 31, 2011

It would be great if we could disabled the Ace editor box with the disabled attribute, similar to what's available with a textarea:

<textarea rows="3" cols="25" disabled="disabled">
This textarea is grayed out and disabled for interaction.
</textarea>
@fjakobs
Copy link
Contributor

fjakobs commented Sep 7, 2011

The closest thing we already have in Ace is the "readonly" property (editor.setReadonly(true))

@dimroc
Copy link
Author

dimroc commented Sep 17, 2011

Thanks, that'll do.

@dimroc dimroc closed this as completed Sep 17, 2011
@jamesssss
Copy link

FYI it is editor.setReadOnly(true)

@xyzdata
Copy link

xyzdata commented Sep 29, 2018

Q: How to disable the Ace editor edit?

A: editor.setReadOnly(true);

https://stackoverflow.com/questions/24757506/how-to-disable-in-ace-editor-the-selection

@xgqfrms
Copy link

xgqfrms commented Sep 29, 2018

ContentEditable

not work for this situation?

https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/contenteditable

@gxjcoo
Copy link

gxjcoo commented Jul 22, 2020

i can't wirte but can delete text after use setReadOnly(true).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants