microsoft / monaco-editor

A browser based code editor
https://microsoft.github.io/monaco-editor/
MIT License
40.41k stars 3.6k forks source link

Readonly view with mobile #1143

Open nikhilexe opened 6 years ago

nikhilexe commented 6 years ago

I know currently Monaco editor is not supported for Mobile, https://microsoft.github.io/monaco-editor/ but I am using read only view Monaco editor and almost it works in Mobile browser except the case where it shows me Keyboard when i select something in editor as i am going to type something. Can we do something for read only mode?

rmallols commented 5 years ago

Until this feature is properly supported, for the time being you can simply deal with the inner textarea (e.g. hide it in readonly mode). The keyboard won't show up again, and you'll preserve scrolling capabilities.

Please note you won't be able to copy text from it, though.

seo-rii commented 1 year ago

Any update about this?

vijayth2-cerebras commented 2 months ago

It will be nice if readonly mode is supported in mobile devices. Currently, it displays well but while scrolling, it gets stuck in the editor.