Skip to content

Commit

Permalink
Clarify that you have to adjust the urls of the library in the docs (…
Browse files Browse the repository at this point in the history
…see #1269)
  • Loading branch information
josdejong committed Mar 20, 2021
1 parent 65bb448 commit a7291b6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,12 @@ with npm (recommended):
> Note that to use JSONEditor in Internet Explorer 11, it is necessary
> to load a polyfill for `Promise` in your application.
Alternatively, you can use another JavaScript package manager like https://yarnpkg.com/, or a CDN such as https://cdnjs.com/ or https://www.jsdelivr.com/.

## Use

> Note that in the following example, you'll have to change the urls `jsoneditor/dist/jsoneditor.min.js` and `jsoneditor/dist/jsoneditor.min.css` to match the place where you've downloaded the library, or fill in the URL of the CDN you're using.
```html
<!DOCTYPE HTML>
<html lang="en">
Expand Down
4 changes: 4 additions & 0 deletions docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ Install via npm:

npm install jsoneditor

Alternatively, you can use another JavaScript package manager like https://yarnpkg.com/, or a CDN such as https://cdnjs.com/ or https://www.jsdelivr.com/.

## Load

To implement JSONEditor in a web application, load the javascript and css file
Expand All @@ -16,6 +18,8 @@ in the head of the HTML page:
<script src="jsoneditor/dist/jsoneditor.min.js"></script>
```

Here you'll have to change the urls `jsoneditor/dist/jsoneditor.min.js` and `jsoneditor/dist/jsoneditor.min.css` to match the place where you've downloaded the library, or fill in the URL of the CDN you're using.

## Use

In the body, create a div element with an id and a size:
Expand Down

0 comments on commit a7291b6

Please sign in to comment.