Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add relativ default path for loading monaco-editor #102

Closed
wants to merge 1 commit into from
Closed

add relativ default path for loading monaco-editor #102

wants to merge 1 commit into from

Conversation

loetscher
Copy link

I'm loading the ngx-monaco-editor under different root paths.
Therefore I have to configure the lib as follows:
const monacoConfig: NgxMonacoEditorConfig = { baseUrl: './assets', };
It would be nice if the default configuration in the base-editor.ts could use a relative path instead the absolut one:
const baseUrl = this.config.baseUrl || '/assets';
This way I could get rid of the configuration and use ngx-monaco-editor as is.

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants