placeholder function

I am using codemirror 6.0 I would like to add placeholder function, can you teach me? The documentation says to introduce an extension, how to introduce this extension, please give me a sample, thank you Waiting online!