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

placeholder is not working. #666

Open
lin-mt opened this issue Jan 16, 2025 · 2 comments
Open

placeholder is not working. #666

lin-mt opened this issue Jan 16, 2025 · 2 comments

Comments

@lin-mt
Copy link

lin-mt commented Jan 16, 2025

Describe the bug
placeholder is not working.

Am I missing some configuration?

To Reproduce

  1. config placeholder
  2. clean editor value.

Expected behavior
show placeholder when value is empty.

[Screenshots

Image

https://monaco-react.surenatoyan.com/

@suren-atoyan
Copy link
Owner

it's works in the playground

I guess they released that option in a newer version and the https://monaco-react.surenatoyan.com/ website uses an older version of Monaco

@lin-mt
Copy link
Author

lin-mt commented Jan 19, 2025

Yes, after i install "monaco-editor": "^0.52.2", it works.

then i config:

import * as monaco from 'monaco-editor';
import loader from "@monaco-editor/loader";

loader.config({ monaco });

this issue come out

#652

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

2 participants