microsoft / monaco-editor

A browser based code editor
https://microsoft.github.io/monaco-editor/
MIT License
40.57k stars 3.61k forks source link

import in Angular2 Appliaction #51

Closed windischb closed 1 year ago

windischb commented 8 years ago

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!

fedoranimus commented 8 years ago

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

ebertmi commented 8 years ago

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

fedoranimus commented 8 years ago

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

0plus1 commented 8 years ago

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.

pderks commented 7 years ago

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?

alexdima commented 4 years ago

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

hediet commented 1 year ago

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!