Browse Source

toolbar style

master
KaiSD 5 years ago
parent
commit
b91e0ab008
1 changed files with 12 additions and 10 deletions
  1. +12
    -10
      ace/index.html

+ 12
- 10
ace/index.html View File

@@ -11,8 +11,12 @@
overflow: hidden;
}

#editor {
margin-top: 30px;
.toolbar {
background-color: #222;
}

.inner {
margin-top: 32px;
position: absolute;
top: 0;
bottom: 0;
@@ -22,14 +26,12 @@
</style>
</head>
<body>
<div class="wrapper">
<!--<div class="toolbar">
<button id="btnSave" class="btn btn-primary btn-xs">save</button>
<button id="btnUndo" class="btn btn-primary btn-xs">undo</button>
<button id="btnRedo" class="btn btn-primary btn-xs">redo</button>
</div>-->
<div class="inner" id="editor"></div>
<div class="toolbar">
<button id="btnSave" class="btn btn-primary btn-xs">save</button>
<button id="btnUndo" class="btn btn-primary btn-xs">undo</button>
<button id="btnRedo" class="btn btn-primary btn-xs">redo</button>
</div>
<div class="inner" id="editor"></div>
<script src="src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script>
<script>
@@ -37,7 +39,7 @@
var editor = ace.edit("editor");
editor.setOptions({
mode: "ace/mode/text",
theme: "ace/theme/twilight",
theme: "ace/theme/ambiance",
showPrintMargin: false,
wrap: true,
indentedSoftWrap: true,


Loading…
Cancel
Save