UNPKG
json-editor
Version:
latest (0.7.28)
0.7.28
0.7.27
0.7.26
0.7.25
0.7.23
0.7.22
0.7.21
0.7.20
0.7.19
0.7.18
0.7.17
0.7.16
0.7.15
0.7.14
0.7.13
0.7.12
0.7.11
0.7.10
0.7.9
JSON Schema based editor
github.com/jdorn/json-editor
jdorn/json-editor
json-editor
/
src
/
templates
/
markup.js
12 lines
(10 loc)
•
255 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
JSON
Editor.
defaults
.
templates
.
markup
=
function
(
) {
if
(!
window
.
Mark
|| !
window
.
Mark
.
up
)
return
false
;
return
{
compile
:
function
(
template
) {
return
function
(
context
) {
return
window
.
Mark
.
up
(template,context); }; } }; };