monaco-react icon indicating copy to clipboard operation
monaco-react copied to clipboard

placeholder is not working.

Open lin-mt opened this issue 10 months ago • 2 comments

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/

lin-mt avatar Jan 16 '25 14:01 lin-mt

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

suren-atoyan avatar Jan 17 '25 13:01 suren-atoyan

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

https://github.com/suren-atoyan/monaco-react/issues/652

lin-mt avatar Jan 19 '25 02:01 lin-mt

This issue has been marked as stale due to inactivity. It will be closed in 7 days unless further activity occurs.

github-actions[bot] avatar Jul 19 '25 00:07 github-actions[bot]

Closing due to inactivity. Feel free to reopen if needed.

github-actions[bot] avatar Jul 27 '25 00:07 github-actions[bot]