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

Codemirror edit INI-file

Open mche opened this issue 2 years ago • 2 comments

Hello.

Sorry but help me configure <CodeMirror value={iniFile}> that is dynamic ini-format strings.

Thanks. Regards.

mche avatar Sep 13 '23 11:09 mche

@mche You may need to look for answers here. https://discuss.codemirror.net/

jaywcjlove avatar Sep 13 '23 12:09 jaywcjlove

At now I only known with option mode

var editor = CodeMirror.fromTextArea(textarea, {
        mode:  'text/x-ini'
    });

But how to pass mode option to the react-codemirror?

mche avatar Sep 14 '23 04:09 mche