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

avoid relative path in loading codemirror #3

Closed
wants to merge 1 commit into from

Conversation

fuqiang2310
Copy link

We found the relative path does not work in some certain scenarios.

For example, when installing using bower inside codemirror, by default it will be installed under codermirror/app/components, which will make the relative path fail.

In addition, in our use case we want to install this addon as another bower components same as codemirror, using relative path prevent us from doing that.

By using absolute path, the user can define where their codemirror is installed and use that to call the requireJS API to configure the path:
requirejs.config({ paths: { codemirror: '../components/codemirror' } });

coderaiser pushed a commit that referenced this pull request Jun 15, 2017
…./lib/codemirror -> codemirror/lib/codemirror (#3)
@coderaiser
Copy link
Owner

Thank you, merged as 5e7a0af

@coderaiser coderaiser closed this Jun 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants