Disable design mode in readonly pad

pull/661/head
Egil Moeller 2012-04-23 16:41:41 +02:00
parent ba3430ebb7
commit e559ef5640
2 changed files with 6 additions and 1 deletions

View File

@ -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,

View File

@ -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)
{