Disable design mode in readonly pad
This commit is contained in:
parent
ba3430ebb7
commit
e559ef5640
|
@ -848,6 +848,7 @@ function handleClientReady(client, message)
|
|||
"numConnectedUsers": pad2sessions[padIds.padId].length,
|
||||
"isProPad": false,
|
||||
"readOnlyId": padIds.readOnlyPadId,
|
||||
"readonly": padIds.readonly,
|
||||
"serverTimestamp": new Date().getTime(),
|
||||
"globalPadId": message.padId,
|
||||
"userId": author,
|
||||
|
|
|
@ -324,6 +324,10 @@ function handshake()
|
|||
pad._afterHandshake();
|
||||
initalized = true;
|
||||
|
||||
padeditor.ace.callWithAce(function (ace) {
|
||||
ace.ace_setEditable(!clientVars.readonly);
|
||||
});
|
||||
|
||||
// If the LineNumbersDisabled value is set to true then we need to hide the Line Numbers
|
||||
if (settings.LineNumbersDisabled == true)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue