Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
rjs_json_form
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
rjs_json_form
Commits
a96c4468
Commit
a96c4468
authored
Nov 20, 2018
by
Boris Kocherov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demo/with_monaco: update monaco editor and enable enableSchemaRequest
parent
120cbfd9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
demo/with_monaco/index.html
demo/with_monaco/index.html
+1
-1
demo/with_monaco/index.js
demo/with_monaco/index.js
+4
-3
No files found.
demo/with_monaco/index.html
View file @
a96c4468
...
...
@@ -9,7 +9,7 @@
<script
src=
"../../rsvp.js"
></script>
<script
src=
"../../renderjs.js"
></script>
<script
src=
"https://unpkg.com/monaco-editor@0.1
4.3
/min/vs/loader.js"
></script>
<script
src=
"https://unpkg.com/monaco-editor@0.1
5.5
/min/vs/loader.js"
></script>
<script
src=
"index.js"
></script>
</head>
...
...
demo/with_monaco/index.js
View file @
a96c4468
...
...
@@ -19,15 +19,15 @@
*/
require
.
config
({
paths
:
{
vs
:
"
https://unpkg.com/monaco-editor@0.1
4.3
/min/vs
"
}
paths
:
{
vs
:
"
https://unpkg.com/monaco-editor@0.1
5.5
/min/vs
"
}
});
let
proxy
=
URL
.
createObjectURL
(
new
Blob
(
[
`
self.MonacoEnvironment = {
baseUrl: 'https://unpkg.com/monaco-editor@0.1
4.3
/min/'
baseUrl: 'https://unpkg.com/monaco-editor@0.1
5.5
/min/'
};
importScripts('https://unpkg.com/monaco-editor@0.1
4.3
/min/vs/base/worker/workerMain.js');
importScripts('https://unpkg.com/monaco-editor@0.1
5.5
/min/vs/base/worker/workerMain.js');
`
],
{
type
:
"
text/javascript
"
}
...
...
@@ -90,6 +90,7 @@ importScripts('https://unpkg.com/monaco-editor@0.14.3/min/vs/base/worker/workerM
monaco
.
languages
.
json
.
jsonDefaults
.
setDiagnosticsOptions
({
validate
:
true
,
enableSchemaRequest
:
true
,
schemas
:
schemas
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment