<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8"/>
    <title>JSONEditor with forms</title>
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
</head>
<body>
<div class="container">
    <h1>Test</h1>
    <button id="switch-es">Switch to ES</button>
    <div id='editor-container'></div>
</div>
<script src="../../dist/jsoneditor.js"></script>
<script>
  JSONEditor.defaults.languages.es = {}

  var switchEs = document.querySelector('#switch