Read-only checkbox in kitchen sink

This commit is contained in:
DanyaPostfactum 2013-01-24 19:23:40 +10:00 committed by nightwing
commit 99f8aba562
3 changed files with 12 additions and 1 deletions

View file

@ -356,6 +356,9 @@ bindCheckbox("enable_behaviours", function(checked) {
bindCheckbox("fade_fold_widgets", function(checked) {
env.editor.setFadeFoldWidgets(checked);
});
bindCheckbox("read_only", function(checked) {
env.editor.setReadOnly(checked);
});
var secondSession = null;
bindDropdown("split", function(value) {

View file

@ -67,7 +67,7 @@ var docs = {
"docs/AsciiDoc.asciidoc": "AsciiDoc",
"docs/javascript.js": "JavaScript",
"docs/clojure.clj": "Clojure",
"docs/coffeescript.coffee": "Coffeescript",
"docs/coffeescript.coffee": "CoffeeScript",
"docs/coldfusion.cfm": "ColdFusion",
"docs/cpp.cpp": "C/C++",
"docs/csharp.cs": "C#",

View file

@ -249,6 +249,14 @@
<input type="checkbox" id="highlight_token">
</td>
</tr>
<tr>
<td >
<label for="highlight_token">Read-only</label>
</td>
<td>
<input type="checkbox" id="read_only">
</td>
</tr>
</table>
</td></tr>
</table>