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

import in Angular2 Appliaction

Open windischb opened this issue 10 years ago • 7 comments

Hi!

Has anybody an Idea how to use the Monaco Editor inside of an Angular2 Application?? I can't figure it out how to import the Editor using SystemJS! >.< Like "import { monaco } from 'monaco-editor/monaco'" or something similar..

Many thanks for every hint or idea!

windischb avatar Jul 06 '16 14:07 windischb

I would like to know this as well - a simple way to use this editor in a modern Typescript application would be prudent.

ghost avatar Jul 12 '16 20:07 ghost

see Matthias247 answer here: https://github.com/Microsoft/monaco-editor/issues/18#issuecomment-231788869

ebertmi avatar Jul 12 '16 20:07 ebertmi

That's acceptable for Angular, I suppose. I'm looking for something more generic; see this issue

ghost avatar Jul 12 '16 21:07 ghost

I just created an npm package for an NG2 Monaco editor component: https://github.com/0plus1/ng2-monaco-editor it works and it's ugly. Please feel free to contribute, I will actively develop this component as it's being used in a project.

0plus1 avatar Oct 21 '16 05:10 0plus1

Being able to import monaco into an Angular application would be incredibly helpful instead of having to use the workaround suggested in issue #18 . Will this feature make it into v0.9.0?

pderks avatar Feb 24 '17 23:02 pderks

There is an angular wrapper at https://github.com/atularen/ngx-monaco-editor

alexdima avatar Dec 11 '19 12:12 alexdima

We closed this issue because we don't plan to address it in the foreseeable future. If you disagree and feel that this issue is crucial: we are happy to listen and to reconsider.

If you wonder what we are up to, please see our roadmap and issue reporting guidelines.

Thanks for your understanding, and happy coding!

hediet avatar Feb 24 '23 10:02 hediet