mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-26 10:26:15 -04:00
Hide editing buttons when in readonly mode
This commit is contained in:
parent
c173ebe197
commit
fc946ffc33
3 changed files with 24 additions and 19 deletions
|
@ -19,6 +19,9 @@ textarea {
|
|||
iframe {
|
||||
position: absolute
|
||||
}
|
||||
.readonly .acl-write {
|
||||
display: none;
|
||||
}
|
||||
#users {
|
||||
position: absolute;
|
||||
z-index: 500;
|
||||
|
@ -1560,4 +1563,4 @@ input[type=checkbox] {
|
|||
#online_count {
|
||||
line-height: 24px
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -325,6 +325,8 @@ function handshake()
|
|||
pad._afterHandshake();
|
||||
initalized = true;
|
||||
|
||||
$("body").addClass(clientVars.readonly ? "readonly" : "readwrite")
|
||||
|
||||
padeditor.ace.callWithAce(function (ace) {
|
||||
ace.ace_setEditable(!clientVars.readonly);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue