Skip to content

Commit

Permalink
为JSON数据集编辑页面引入JSON编辑器库
Browse files Browse the repository at this point in the history
  • Loading branch information
datageartech committed Aug 10, 2020
1 parent 3a6fcc9 commit f7abcc8
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 2 deletions.

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ boolean readonly 是否只读操作,默认为false
{
po.open(po.url("add"),
{
width: "85%",
<#if selectOperation>
pageParam:
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ selectOperation 是否选择操作,允许为null
{
po.open(po.url("add"),
{
width: "85%",
<#if selectOperation>
pageParam:
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ readonly 是否只读操作,允许为null
};
var languageTools = ace.require("ace/ext/language_tools");
//var JsonMode = ace.require("ace/mode/json").Mode;
var JsonMode = ace.require("ace/mode/json").Mode;
po.jsonEditor = ace.edit("${pageId}-workspaceEditor");
//po.jsonEditor.session.setMode(new JsonMode());
po.jsonEditor.session.setMode(new JsonMode());
po.jsonEditor.setShowPrintMargin(false);
po.initWorkspaceEditor(po.jsonEditor, po.element("textarea[name='value']").val());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ boolean readonly 是否只读操作,默认为false
po.open(po.url(addURL),
{
width: "85%",
<#if selectOperation>
pageParam:
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ var contextPath="${contextPath}";
<script src="${contextPath}/static/script/ace-21.02.19/ace.js?v=${_hh_Version}" type="text/javascript"></script>
<script src="${contextPath}/static/script/ace-21.02.19/mode-sql.js?v=${_hh_Version}" type="text/javascript"></script>
<script src="${contextPath}/static/script/ace-21.02.19/mode-html.js?v=${_hh_Version}" type="text/javascript"></script>
<script src="${contextPath}/static/script/ace-21.02.19/mode-json.js?v=${_hh_Version}" type="text/javascript"></script>
<script src="${contextPath}/static/script/ace-21.02.19/mode-javascript.js?v=${_hh_Version}" type="text/javascript"></script>
<script src="${contextPath}/static/script/ace-21.02.19/ext-language_tools.js?v=${_hh_Version}" type="text/javascript"></script>
<script src="${contextPath}/static/script/cometd-2.9.1/cometd.js?v=${_hh_Version}" type="text/javascript"></script>
<script src="${contextPath}/static/script/cometd-2.9.1/AckExtension.js?v=${_hh_Version}" type="text/javascript"></script>
Expand Down

0 comments on commit f7abcc8

Please sign in to comment.