mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 15:36:16 -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
|
@ -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