angular-tools/ng-jsoneditor の JSON エディター ライブラリと角度ラッパーの使用を開始しました。
コード ビューに切り替えると、このバグは非常に厄介なようです。似たようなことあった人いますか?
その行に引用符が表示された場合にのみ発生します。これは、JSON のほぼすべての行です。
標準ライブラリを使用しても、何も変わりませんでした。私はアイデアが不足しています。
コントローラ
$scope.obj = { data: null, options: { mode: 'code' } };
$scope.onLoad = function (instance) {
instance.expandAll();
};
見る
<!DOCTYPE html>
<html ng-app="jsonapp" ng-controller="jsonController">
<head>
<meta charset="utf-8" />
<!-- when using the mode "code", it's important to specify charset utf-8 -->
<meta content="charset=utf-8">
<link href="jsoneditor/dist/jsoneditor.min.css" rel="stylesheet" type="text/css">
<script src="jsoneditor/dist/jsoneditor.min.js"></script>
</head>
<body>
<div ng-jsoneditor="onLoad" ng-model="obj.data" options="obj.options" style="height:800px"></div>
</body>
</html>